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 272567 - Evolution message needs ngettext support
Evolution message needs ngettext support
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other All
: Normal minor
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks: 236276 327508 327510
 
 
Reported: 2005-02-13 22:48 UTC by Christian Rose
Modified: 2010-04-01 17:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Translator comment added. (1.27 KB, patch)
2006-09-28 09:05 UTC, ushveen kaur
rejected Details | Review

Description Christian Rose 2005-02-13 22:48:55 UTC
#: mail/mail-errors.xml.h:53
msgid "Are you sure you want to open {0} messages at once?"

This message no doubt needs ngettext() support
(http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals).
I realize that this may currently not be possible since this string is
stored in an XML file, but still, somehow this message needs to have
ngettext support arranged, even if it means having to move it to a C file.
Comment 1 André Klapper 2005-02-14 11:53:38 UTC
adding dependency
Comment 2 Not Zed 2005-08-19 04:15:26 UTC
actually i dont think it does, it only occurs for n >= 10.
Comment 3 Danilo Segan 2005-08-19 16:43:26 UTC
It does, please see:
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals

Quoting:

So use ngettext even for situations where you know the number will always be
greater than one, or even much greater than one, as in the example below.

     g_printf (ngettext ("You tried to move %d folder at once. You can't move
more than 256 folders at once.",
                         "You tried to move %d folders at once. You can't move
more than 256 folders at once.",
                         nbr_of_folders),
               nbr_of_folders);
   

This example, and the extra piece of code involved, probably looks both weird
and unnecessary to most people that are accustomed to the English way of using
plural, but please keep in mind that you, as pointed out above, cannot assume
anything about what type of plural will be used in other languages even in these
cases, so use of ngettext is still required here.

--
(well, since my language requires this, I can give you more practical examples,
but this should suffice)
Comment 4 André Klapper 2005-08-26 09:54:37 UTC
the problem is that there are languages that do not use the plural form when
there's n >= 2, but for example n >= 5 or stuff like that (hmm... iirc there was
something with russian around or so, don't remember exactly).

even if it only occurs for n >= 10 there should be a translator comment :-)

still valid in 2.3.8/cvs, targetting to 2.5, adding string keyword
Comment 5 Danilo Segan 2005-08-26 13:02:08 UTC
Andre: actually (if you really care about details :), it usually depends on the
last digit or last two digits of a number. So 4, 74, 104, 1754 all use one form,
while 1, 71, 101, 1751 use another, etc.
Comment 6 André Klapper 2006-06-14 14:13:19 UTC
removing old target milestone.
Comment 7 ushveen kaur 2006-09-28 09:05:41 UTC
Created attachment 73541 [details] [review]
Translator comment added.

ngettext support is not required here coz this warning message is not displayed when only one message is opened.
Comment 8 André Klapper 2006-09-28 12:54:11 UTC
ushveen, did you read the comments at all? if so, re-read them.
this NEEDS gettext support.
NEEDS.
a translator comment is totally useless and a waste of time, to a translator it's more than obvious what that message means.
Comment 9 Milan Crha 2010-04-01 17:23:21 UTC
Created commit 0d66851 in evo master (2.31.1+)