Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: PL_ macro
Home

[Freeciv-Dev] Re: PL_ macro

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Pieter J. Kersten" <kersten@xxxxxxxxxx>
Cc: mateusz stefek <matusik_s@xxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: PL_ macro
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jan 2002 18:13:08 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Jan 21, 2002 at 05:34:50PM +0100, Pieter J. Kersten wrote:
> 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.

xgettext from plain gettext-0.10.39 and gettext-0.10.40 both work with
the s/_PL/_PL:1,2/ change from above:

#: server/unittools.c:1916
#, c-format
msgid "Game: You lost %d unit to an attack from %s's %s%s."
msgid_plural "Game: You lost %d units to an attack from %s's %s%s."
msgstr[0] ""
msgstr[1] ""

The RH version gettext-0.10.35-23 doesn't work.

So it looks like we have to ask all translators to install 0.10.39 or
above.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Understanding is a three-edged sword; 
  your side, their side, and the truth."
    -- a well-known Vorlon



[Prev in Thread] Current Thread [Next in Thread]