After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168068 - Maybe misuse of ngettext
Maybe misuse of ngettext
Status: RESOLVED DUPLICATE of bug 167344
Product: nautilus
Classification: Core
Component: Internationalization (i18n)
0.x.x [obsolete]
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-21 17:01 UTC by Funda Wang
Modified: 2005-02-21 17:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch against fm-directory-view.c (502 bytes, patch)
2005-02-21 17:03 UTC, Funda Wang
none Details | Review

Description Funda Wang 2005-02-21 17:01:51 UTC
Look at following entry in nautilus.po:

#: src/file-manager/fm-directory-view.c:6229
#: src/file-manager/fm-directory-view.c:6231
#: src/file-manager/fm-tree-view.c:1110
#, c-format
msgid "Open in New Window"
msgid_plural "Open in %d New Windows"

Then check your corresponding source. You'll find intltool or xgettext have 
combined two seperated string: _("Open in New Window"), ngettext("Open in New 
Window", "Open in %d New Windows").

I'm not sure it is a bug or designed feature of intltool/xggettext. But such a 
situation will confuse languages which do not have plural forms. It is obviously 
that when calling N("Open in New Window"), you'll get "Open in %d New Window", 
because there is only following items in LL.po:

msgid "Open in New Window"
msgid_plural "Open in %d New Windows"
msgstr[0] "Open in %d New Window"

Then the placeholder "%d" will appears in UI, which should not happen of course.
Comment 1 Funda Wang 2005-02-21 17:03:04 UTC
Created attachment 37748 [details] [review]
Patch against fm-directory-view.c

Apply this patch into CVS HEAD. Note, this will break string freeze.
Comment 2 Richard Hoelscher 2005-02-21 17:56:40 UTC
Thanks... Someone else noticed this a week ago and sent in a similar patch.

*** This bug has been marked as a duplicate of 167344 ***