Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] patch: registry improvements (PR#98)
Home

Re: [Freeciv-Dev] patch: registry improvements (PR#98)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Freeciv-Dev] patch: registry improvements (PR#98)
From: David Perez Serrada <dperezs@xxxxxxx>
Date: Mon, 9 Aug 1999 18:36:28 +0100 (GMT-1)

-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 9 Aug 1999, David Pfitzner wrote:

> I don't really understand your explanation, could you 
> try again?
I'll try to do my best with my poor english :(

In your patch, you mark multiline and i18n strings in the
following way:

- -------- a ruleset file -----
wellcome=_("This is Freeciv
 version 2.3 :-)")
- -----------------------------

wich is parsed by freeciv, to one line string, as:

wellcome=_("This is Freeciv\nversion 2.3 :-)")

then the translatable string is fetch by xgettext and added to
freeciv.pot file as following:

msgid="This is Freeciv"

¿What has happend?. xgettext fetch the string from the ruleset
file, and takes a new line as an end of a string, so only the first
line of a multiline string is get. 

Try it. Add this string in a ruleset file, add the ruleset file
in the POTFILES.in, and do a 'make' in the po directory. Then take a look
at po/freeciv.pot:

- ----- freciv.pot ----

msgid="This is freeciv"

- ----------------------

> Or better, can you say how such strings should appear in 
> the ruleset file (and/or be handled by the registry parser,
> if thats the problem) to work well with gettext?
Freeciv should write multines strings as same as do gettext.
So in the previous example, should be done as following:

- ----- a ruleset file ----

wellcome= _("This is Freeciv "
            "version 2.3 :-)")

- --------------------------

That sould be parsed as:

wellcome=_("This is Freeciv version 2.3 :-)")

by freeciv, when parsing the ruleset file. This is, the same string as
fetched by xggetext program.

Try it. Add the new wellcome string to a ruleset file, add the file
to po/POTFILES.in and parse it with xgettext. Then take a look to
po/freeciv.pot:

msgid="This is Freeciv version 2.3 :-)"

I hope this would be enough.

                      Ta otra....        David


+--------------- David Pérez Serrada <dperezs@xxxxxxx>   -----------------+
|        Hay que ser lúcido para ser fuerte, fuerte para ser útil         |
|                       y útil para ser feliz.   - Spinoza                |
+---- Visit http://dirac.dec.cie.uva.es/~dperezs/  also for PGP key   ----+

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN68RqlBVY5Voa3sZAQGJagP/etSaOg2e9kKSZW4suKA5+MTauTik0KNH
2Lt4XmP9V0ABv7i7BTYEhfrNj27CxPjQixAWc1qOHOZhmfRwC1AH64X5gjcjDBMc
qVZvqB7dqnfzgloU8xLdfrxiJ2Lmk+DPNxXbrdwDawYQ5RTs8lhW/bkAdOAjuNwP
zBeXYMLiql0=
=PsRm
-----END PGP SIGNATURE-----


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