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 123857 - Please use ngettext for handling plurals in nautilus-cd-burner
Please use ngettext for handling plurals in nautilus-cd-burner
Status: RESOLVED FIXED
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
unspecified
Other other
: Normal normal
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks: 116236
 
 
Reported: 2003-10-04 21:52 UTC by Danilo Segan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use ngettext where appropriate in make-iso.c (603 bytes, patch)
2003-10-04 21:53 UTC, Danilo Segan
none Details | Review
updated plurals patch with ngettext check (2.13 KB, patch)
2003-10-07 10:58 UTC, Bastien Nocera
none Details | Review

Description Danilo Segan 2003-10-04 21:52:22 UTC
(Following paragraphs copied from bug 116236 verbatim :-)
As mentioned in
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals,
the common way of handling plurals is broken for many locales. A way to
solve this is by using ngettext instead, as mentioned in that document.

A simple code example of code using ngettext:

  g_printf (ngettext ("Found %d file.", "Found %d files.", nbr_of_files),
nbr_of_files);



This is the relevant message.

#: make-iso.c:586
#, c-format
msgid "Not enough space to store CD image (%ld Megabytes needed)"

I'll attach a patch below.
Comment 1 Danilo Segan 2003-10-04 21:53:36 UTC
Created attachment 20469 [details] [review]
Use ngettext where appropriate in make-iso.c
Comment 2 Bastien Nocera 2003-10-07 10:58:32 UTC
Created attachment 20528 [details] [review]
updated plurals patch with ngettext check
Comment 3 Bastien Nocera 2003-10-07 11:03:16 UTC
2003-10-07  Bastien Nocera  <hadess@hadess.net>
                                                                     
          
        * configure.in: added geck for ngettext
        * make-iso.c: (make_iso): handle plural with ngettext (patch from
        Danilo Segan <segan@gmx.net>)
Comment 4 Danilo Segan 2003-10-07 11:46:53 UTC
Thanks, Serbian translation is already using it :-)