GNOME Bugzilla – Bug 167344
singular and plural form of "Open in New Window" is invalid(?)
Last modified: 2005-05-21 14:25:48 UTC
Please describe the problem: in chinese, korean, and japanese "Open in New Window" & "Open in %d New Windows" translate incorrectly. it seems invalid usage of gettext. see http://ftp.mizi.com/~ganadist/nau1.png Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? yes Other information:
More description: The problem is, nautilus is using the same msgid in c-format string and non-c-format ones. This conflict was possible because the singular form had no format specifier. ("Open in New Window") But in some langauges there's no distinction between singular/plural ones in general, so their translations always contain the format specifier (%d). When the translated strings are used in non-c-format case, the format specifier will be displayed as-is, like the above screenshot.
Created attachment 37607 [details] [review] Avoid msgid conflict around ngettext() 2005-02-18 Changwoo Ryu <cwryu@debian.org> * src/file-manager/fm-directory-view.c (real_update_menus) (real_update_menus): Fixed a string conflict between the c-format plural string and non-c-format strings. Bug #167344. In the patch, "Open in %d New Window" string is not user-visible (selection_count is never 1), but is required to use ngettext().
*** Bug 168068 has been marked as a duplicate of this bug. ***
Comitted on HEAD, thank you.
This is a critial i18n bug for the languages without plural forms, such as CJK. So, I would suggest committing it into gnome-2-10 branch, even it might introduce a string breakage.
I've requested a string freeze break to get this into the stable branch. Thanks for the notice.