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

2006-09-02 Thread Behdad Esfahbod
On Sat, 2006-09-02 at 18:00 -0400, Åsmund Skjæveland wrote:
> > > 877 translated messages, 2 untranslated messages.
> > > *
> > > *** ERROR MESSAGE FROM Gnome Translation Team ***
> > > *
> > > You are trying to commit an invalid .po file!
> > > Please verify it first with msgfmt. Any problems
> > > please contact .
> > > 
> > > nn.po:1169: 'msgstr' is not a valid C format string, unlike 'msgid'
> > > nn.po:1185: 'msgstr' is not a valid C format string, unlike 'msgid'
> > > msgfmt: found 2 fatal errors
> > > cvs server: Pre-commit check failed
> > > cvs [server aborted]: correct above errors first!
> > > 
> > > I use gettext 0.14.5. I don't know what GNOME CVS uses.
> > 
> > Check my comment in the bug:
> > 
> >   http://bugzilla.gnome.org/show_bug.cgi?id=312694
> 
> Bug 312694  Character popup is inaccessible using twm
> 
> I've read it three times now, and I can't see how this is relevant.

Sorry, copy/paste messup.  I meant the bug you opened yourself:

  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"

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread Åsmund Skjæveland
> > 877 translated messages, 2 untranslated messages.
> > *
> > *** ERROR MESSAGE FROM Gnome Translation Team ***
> > *
> > You are trying to commit an invalid .po file!
> > Please verify it first with msgfmt. Any problems
> > please contact .
> > 
> > nn.po:1169: 'msgstr' is not a valid C format string, unlike 'msgid'
> > nn.po:1185: 'msgstr' is not a valid C format string, unlike 'msgid'
> > msgfmt: found 2 fatal errors
> > cvs server: Pre-commit check failed
> > cvs [server aborted]: correct above errors first!
> > 
> > I use gettext 0.14.5. I don't know what GNOME CVS uses.
> 
> Check my comment in the bug:
> 
>   http://bugzilla.gnome.org/show_bug.cgi?id=312694

Bug 312694  Character popup is inaccessible using twm

I've read it three times now, and I can't see how this is relevant.



-- 
Åsmund Skjæveland {
kaffi();
}
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread Behdad Esfahbod
On Sat, 2006-09-02 at 14:15 -0400, Åsmund Skjæveland wrote:
> On Sat, Sep 02, 2006 at 07:49:11PM +0300, [EMAIL PROTECTED] wrote:
> > On 2006-09-02T18:57:41+0300, [EMAIL PROTECTED] wrote:
> > > #. 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
> > >
> > > This doesn't work. If I translate to "%ld", msgfmt barfs and declares
> > > the PO file broken. 
> > 
> > It is %Id not %ld (a big 'i', not a small 'l'). Maybe this helps you?
> 
> Good point. When I put "%Id", my msgfmt accepted the file. However, I
> believe the bug still is real, since GNOME CVS refuses my file:
> 
> 877 translated messages, 2 untranslated messages.
> *
> *** ERROR MESSAGE FROM Gnome Translation Team ***
> *
> You are trying to commit an invalid .po file!
> Please verify it first with msgfmt. Any problems
> please contact .
> 
> nn.po:1169: 'msgstr' is not a valid C format string, unlike 'msgid'
> nn.po:1185: 'msgstr' is not a valid C format string, unlike 'msgid'
> msgfmt: found 2 fatal errors
> cvs server: Pre-commit check failed
> cvs [server aborted]: correct above errors first!
> 
> I use gettext 0.14.5. I don't know what GNOME CVS uses.

Check my comment in the bug:

  http://bugzilla.gnome.org/show_bug.cgi?id=312694

-- 
behdad
http://behdad.org/

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

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread Behdad Esfahbod
On Sat, 2006-09-02 at 11:57 -0400, Åsmund Skjæveland 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"

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread Åsmund Skjæveland
On Sat, Sep 02, 2006 at 07:49:11PM +0300, [EMAIL PROTECTED] wrote:
> On 2006-09-02T18:57:41+0300, [EMAIL PROTECTED] wrote:
> > #. 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
> >
> > This doesn't work. If I translate to "%ld", msgfmt barfs and declares
> > the PO file broken. 
> 
> It is %Id not %ld (a big 'i', not a small 'l'). Maybe this helps you?

Good point. When I put "%Id", my msgfmt accepted the file. However, I
believe the bug still is real, since GNOME CVS refuses my file:

877 translated messages, 2 untranslated messages.
*
*** ERROR MESSAGE FROM Gnome Translation Team ***
*
You are trying to commit an invalid .po file!
Please verify it first with msgfmt. Any problems
please contact .

nn.po:1169: 'msgstr' is not a valid C format string, unlike 'msgid'
nn.po:1185: 'msgstr' is not a valid C format string, unlike 'msgid'
msgfmt: found 2 fatal errors
cvs server: Pre-commit check failed
cvs [server aborted]: correct above errors first!

I use gettext 0.14.5. I don't know what GNOME CVS uses.


-- 
Åsmund Skjæveland {
kaffi();
}
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread tvainika
On 2006-09-02T18:57:41+0300, [EMAIL PROTECTED] wrote:
> #. 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
>
> This doesn't work. If I translate to "%ld", msgfmt barfs and declares
> the PO file broken. 

It is %Id not %ld (a big 'i', not a small 'l'). Maybe this helps you?

-- 
Tommi Vainikainen
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


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

2006-09-02 Thread Åsmund Skjæveland
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:
http://bugzilla.gnome.org/show_bug.cgi?id=353981

-- 
Åsmund Skjæveland {
kaffi();
}
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n