Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Internationalization
Home

Re: [Freeciv-Dev] Internationalization

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Nicolas Brunel <brunel@xxxxxxxxxxxxxxxxxxxx>
Cc: David Pfitzner <dwp@xxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx, Denis Bodor <linuxredac@xxxxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Internationalization
From: David Pérez Serrada <dperezs@xxxxxxxxxxxxxxx>
Date: Thu, 15 Jul 1999 11:05:29 +0200


Nicolas Brunel escribió:

> Hello David Perez Serrada,

Hello everyone:

>   I understand one wants to be perfectionnist. But, I don't think that's
> the good approach for I18n

Sorry very much, but I thought that my code isn't really for release, and
still I think so, but you are right cvs is for developing so I have just
upload
my patch to ftp in directory incoming. It is a really big patch 200 k bziped
If you have any problem please email me.


> . Here is attached Denis Bodor translation of
> the gtk client.

I merged it in my patch, I change some parts of this (adding macros and
somethings
like this). Thanks a lot Denis.



>   The most important is that people have shown interest to I18n. They do
> want to participate.

If someone wants to participate this are the things that he/she have to do:

 - If you want to modify some translations done:

   Enter in po directory, edit the po file (ej: if you want to modify the
spanish translation
modifiy the es.po file) and then remake.

- If you want to add new string for translations:

   Check if the file load config.h, if not add it:

   #ifdef HAVE_CONFIG_H
   #include "config.h"
   #endif

   check if the file load fcintl.h, if not add it:

   #include "fcintl.h"


   Mark the strings for transation:

   (ej: Modify the following line:

    char *str = "new string";

    to

    char *str = _("new string");

   )
   Please take a look to gettext info file for futher information.

   Check if the modify file is listed in po/POTFILES.in if not add it.

   Change to po directory, and do a make the temporary po files.

  (ej: to make the temporary po file for spanish
    make es.pox
   )

  Search for "new string" in es.pox and translate it.

  Then copy es.pox in es.po (in other word pass the temporay po file to a real
po file)

   Remake.


- If you like to add translation for another language:

   In configure.in add your language in the variable ALL_LINGUAS

  (ej: to add Polish to language, change
   ALL_LINGUAS = "es fr"
   to
   ALL_LINGUAS = "es fr pl"
  )

  run autoconf  and ./configure

  Create temporary pox files to this language in po directory

  (ej:
   make pl.pox
  )

  Edit it and translate all strings

  Then copy pl.pox in pl.po (in other word pass the temporay po file to a real
po file)

  and remake all.


  By the way: If you want translations to work you have to define the local
variable LANG, for example if you want to see freeciv displaying text in
spanish, then :

 $ export LANG=es





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