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



On Sat, 2006-09-02 at 11:57 -0400, �mund Skj�land wrote:
> 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. 

You need a newer version of gettext.  1.14.1 is known to work, as well
as 1.15.0

behdad

> 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:
> http://bugzilla.gnome.org/show_bug.cgi?id=353981
> 
-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



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