[Freeciv-Dev] Re: PL_ macro
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 21 Jan 2002, mateusz stefek wrote:
> >On Mon, Jan 21, 2002 at 01:57:46PM +0100, Pieter J. Kersten wrote:
> >> On Mon, 21 Jan 2002, Raimar Falke wrote:
> >>
> >> > On Mon, Jan 21, 2002 at 11:06:02AM +0100, Pieter J. Kersten wrote:
> >> > > Hi all,
> >> > >
> >> > > The expansion of the PL_ macro seems to be incorrect. Using
> >> > >
> >> > > make <lang>.pox
> >> > >
> >> > > never reveals the plural parts of the texts. This leads to only
> >singular
> >> > > texts in the interface which looks rather odd.
> >> > >
> >> > > I'm using an unmodified CVS version (latest).
> >> > >
> >> > > Please look into this.
> >> >
> >> > From the first email about this topic:
> >> >
> >> > On Thu, Dec 27, 2001 at 03:55:19PM +0100, mateusz stefek wrote:
> >> > ...
> >> > > Only singular form from PL_ is put into freeciv.pot and it's ok.
> >> >
> >>
> >> So? What did he say?
> >
> >The above.
> >
> >> It's alright to have only singular forms?
> >
> >It looks so.
>
> It thought that plular form is obvious, but now you are right.
>
> >> > Searching a bit further is looks like gettext 0.10.40 supports an
> >> > extended keyword syntax
> >> > <http://www.cise.ufl.edu/depot/doc/gettext/gettext_4.html#SEC20> which
> >> > may can be used to extract both singular and plural.
> >> >
> >>
> >> I tried to use --keyword=PL_:1,2 but to no avail. Still singular only.
> >
> >Also tried it: same result.
> >
> >> I'm no gettext expert, just a translator. Any further help is highly
> >> appreciated.
> >
> >Ask Mateusz. I looked at gpg, gnucash, slrn and gaim. While all of
> >them used gettext none of them used ngettext. It looks like freeciv is
> >leading edge in this aspect.
>
> msgfmt use it
>
I found the following concerning the appearance in the .po files:
Finally, the actual msgstrs for the plural forms are listed using an
indexed syntax, i.e.
msgid UNTRANSLATED-STRING-SINGULAR
msgid_plural UNTRANSLATED-STRING-PLURAL
msgstr[0] TRANSLATED-STRING-CASE-0
...
msgstr[N] TRANSLATED-STRING-CASE-N
Taking this into account, I think we are still not there.
HTH,
--
Pieter J. Kersten
Dutch translator for FreeCiv
[Freeciv-Dev] Re: PL_ macro, mateusz stefek, 2002/01/21
|
|