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 314764 - Use gettext's plural feature
Use gettext's plural feature
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Internationalisation
unspecified
Other All
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-08-29 13:08 UTC by Clytie Siddall
Modified: 2005-09-01 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Clytie Siddall 2005-08-29 13:08:26 UTC
Version details: Gnome HEAD

1.
I strongly suggest using gettext's plural capabilities for strings like these:

#: ../libgimp/gimpprocbrowserdialog.c:457
msgid "1 procedure matches your query"

#: ../libgimp/gimpprocbrowserdialog.c:460
#, c-format
msgid "%d procedures match your query"

because then, the plurals header for each language will ensure the translator has the appropriate 
number of field to fill in. In my case, there are zero plurals fields, in some European languages, there 
are several.

Please see the gettext manual, especially this node on plural forms:

http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#SEC150

from Clytie, Vietnamese translator
Comment 1 Sven Neumann 2005-08-29 14:18:33 UTC
If you could provide a patch, that would it make it more likely that we would do
such a change.
Comment 2 Sven Neumann 2005-09-01 16:36:20 UTC
I have done this change now. If you find other places that need a similar
change, please let us know.

2005-09-01  Sven Neumann  <sven@gimp.org>

	* app/dialogs/quit-dialog.c
	* libgimp/gimpprocbrowserdialog.c: use ngettext() for plural forms
	(bug #314764).