GTK+: Optional translation of %d to %d or %ld breaks PO file

In gtk+ branch gtk-2-10 there is this msgid:

#. Translators: this defines whether the week numbers should use
#. * localized digits or the ones used in English (0123...).
#. *
#. * Translate to "%Id" if you want to use localized digits, or
#. * translate to "%d" otherwise.  Don't include the
#. * "calendar:week:digits|" part in the translation.
#. *
#. * Note that translating this doesn't guarantee that you get localized
#. * digits.  That needs support from your system and locale definition
#. * too.
#: ../gtk/gtkcalendar.c:1671 ../gtk/gtkcalendar.c:2089
#, c-format
msgid "calendar:week:digits|%d"

This doesn't work. If I translate to "%ld", msgfmt barfs and declares
the PO file broken. 

mathilde ~/i18n/gnome/HEAD/developer-libs/gtk+/po > msgfmt -cv nn.po
nn.po:1176: format specifications in 'msgid' and 'msgstr' for argument 1 are not the same
msgfmt: found 1 fatal error

The solution, presumably, is to mark this msgid as not c-format or use
strings like "LOCALIZED" and "UNLOCALIZED" instead.

Bug filed as #353981 in Bugzilla:

Åsmund Skjæveland {

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]