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 345163 - Use ngettext where required
Use ngettext where required
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
0.14
Other Linux
: High normal
: ---
Assigned To: planner-maint
planner-maint
Depends on:
Blocks:
 
 
Reported: 2006-06-17 08:09 UTC by Nickolay V. Shmyrev
Modified: 2006-12-15 03:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use ngettext to translate some plural (1.23 KB, patch)
2006-10-24 14:01 UTC, Arthur Petitpierre
none Details | Review

Description Nickolay V. Shmyrev 2006-06-17 08:09:27 UTC
For example, in this chunk, gettext is required to get a correct translation:

#: ../src/planner-window.c:1515
#, c-format
msgid "If you don't save, changes made the last %d hours will be discarded."
msgstr ""
"Если вы не сохраните, все изменения, сделанные за последние %d часов, будут "
"отброшены."

The "%d hours" may be "%d час" "%d часа" "%d часов" depending on the argument, to make this string translated correctly, you have to use ngettext. It is not the only place where gettext is required - there are some others.
Comment 1 Arthur Petitpierre 2006-10-24 14:01:27 UTC
Created attachment 75303 [details] [review]
Use ngettext to translate some plural

This patch should correct the bug in planner-window.c but let me know if there are other files that contain this kind of bugs.
Arthur Petitpierre.
Comment 2 Nickolay V. Shmyrev 2006-10-24 18:42:54 UTC
Nice patch Arthur, let me ping maintainer about this bug.
Comment 3 Kurt Maute 2006-12-15 03:13:51 UTC
Patch committed.
I'll close this bug - if you come across other areas where ngettext is required, please submit additional bug report(s).

tnx!