GNOME Bugzilla – Bug 345163
Use ngettext where required
Last modified: 2006-12-15 03:13:51 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.
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.
Nice patch Arthur, let me ping maintainer about this bug.
Patch committed. I'll close this bug - if you come across other areas where ngettext is required, please submit additional bug report(s). tnx!