A little tool that helps to keep translations up to date

"Igx, The Dreaming Drummer..." <[email protected]>
Newsgroups gmane.games.freeciv.internationalization
Message-ID <[email protected]>
I don't know if my first message came out, since it was not sent from my 
"Freeciv" account... So I'm sending it again.
--
Hi everybody,

I developed a small bash script to help me keep the French translations 
up to date. I did not occur to me that others may benefit from it, until 
my wife took a look at my screen and was amazed how well tooled the 
Freeciv translators are ;-)

So I thought I may send it to anyone who thinks they have a use for it.

What it does :

  * Updates your sources
  * Recompiles the sources (optionally from scratch)
  * (optionally) installs one of the extracted branches
  * Tells you the current status of your translations


Requirements :

  * Linux - on Windows, recent versions of cygwin will probably run it,
    but I never checked
  * An extract of the SVN repository - at least of the branches you want
    to check
  * A little configuration within the script itself to say where you
    extracted what
  * SVN, gettext and compilation tools installed

Here's what its output looks like :

> [ven. janv. 30 - 07:51:57] [jm@angelina] ~/.freeciv
> -> LANG=C fc-upd.sh
> Freeciv 2.4 :
> - Updating... done.
> - Compiling... done.
> - Translation status :
>   - po : 7208 translated messages.
>
> Freeciv 2.5 :
> - Updating... done.
> - Compiling... done.
> - Translation status :
>   - freeciv : 6061 translated messages.
>   - nations : 1844 translated messages.
>
> Freeciv 2.6 :
> - Updating... done.
> - Compiling... done.
> - Translation status :
>   - freeciv : 6217 translated messages.
>   - nations : 1844 translated messages.
>   - ruledit : 56 translated messages.
>
> Trunk :
> - Updating... done.
> - Compiling... done.
> - Translation status :
>   - freeciv : 6667 translated messages.
>   - nations : 1844 translated messages.
>   - ruledit : 55 translated messages.
>
>
> [ven. janv. 30 - 07:52:58] [jm@angelina] ~/.freeciv
> ->

(The LANG=C is only here to have messages in English - I guess most of 
you don't speak French)

It also accepts the following command-line arguments :

  * -c : do a distclean and an autogen before recompiling
  * -i <version> : install version (with sudo) after compiling (useful
    to test your translations... and play a little :-) ). Requires you
    to type your password when prompted.

At the moment, I'm not joining the script to this message, since I don't 
know whether anyone will be interested in it, and also because it relies 
heavily on my own environment (personal environment variables such as 
NB_PROCS that keeps track of the number of processors in the machine to 
speed up compilation, and so on...)

So... if anyone is interested... let me know :-) There will most 
certainly be a little work to make it portable... but it may be worth 
the effort.

Best regards,

-- 
------------------------------------------------------------------------
*Igx, The Dreaming Drummer...*([email protected] <mailto:[email protected]>)
Freeciv French translator

_______________________________________________
Freeciv-i18n mailing list
Freeciv-i18n-8nu/[email protected]
https://mail.gna.org/listinfo/freeciv-i18n
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.