GNOME Bugzilla – Bug 659469
Missing plural handling for several strings
Last modified: 2011-11-07 17:55:41 UTC
Several strings are missing ngettext support - See https://live.gnome.org/TranslationProject/DevGuidelines/Plurals #: ../pgp/seahorse-pgp-commands.c:179 msgid "Are you sure you want to permanently delete %d keys and identities?" -- #: ../pgp/seahorse-pgp-commands.c:181 msgid "Are you sure you want to permanently delete %d keys?" -- #: ../pgp/seahorse-pgp-commands.c:183 msgid "Are you sure you want to permanently delete %d identities?" -- #: ../ssh/seahorse-ssh-commands.c:121 msgid "Are you sure you want to delete %d secure shell keys?"
All of these are only used for numbers higher that one. Nevertheless I've added ngettext. If I've done it wrong somehow, then please reopen with a patch. Thanks.
(In reply to comment #1) > All of these are only used for numbers higher that one. Proper plural handling is way more than just "1 and the other numbers". Please take a look at https://live.gnome.org/TranslationProject/DevGuidelines/Plurals and enjoy languages with four different plural forms, or with one form for 1, 11, 21, 31, ... :-)
Right, thanks for the link. It's just not clear to me what to put in the singular argument to ngettext, when the prompt doesn't make sense for singular. I just duplicated the plural text in the english singular in both arguments to ngettext, and I guess it'll do the right thing for other languages.