GNOME Bugzilla – Bug 695233
Strings require plural forms
Last modified: 2013-05-24 01:50:20 UTC
Please use plural forms for these strings: #: ../gio/gunixconnection.c:159 ../gio/gunixconnection.c:548 #, c-format msgid "Expecting 1 control message, got %d" msgstr "" #: ../gio/gunixconnection.c:190 #, c-format msgid "Expecting one fd, but got %d\n" msgstr "" https://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Created attachment 240275 [details] [review] Patch: add missing gettext calls to gunixconnection.c
Hi, Here's an attempt at solving this bug. It seems to generate a correct .pot file, but given I'm not used to sending patches and bugzilla I'll just hope I did nothing wrong ^ ^
how was it made plural?
https://live.gnome.org/TranslationProject/DevGuidelines/Plurals http://linux.die.net/man/3/ngettext
(In reply to comment #3) > how was it made plural? I'm not sure I understand the question, but in my attempt at a patch I used ngettext with the same form for singular or plural, as they are identical in english but not in some other languages (e.g. in french the translation of "got %d" might be "1 reçu" or "n reçus"). The manpage and the guidelines don't cover this particular case (where singular and plural are identical in english), but even if that means some redundancy it seemed as the more sensible thing to do.
Review of attachment 240275 [details] [review]: Looks right to me