MegaGlest Forum

Archives (read only) => Vanilla Glest => Translations => Topic started by: olaus on 23 December 2010, 22:46:05

Title: new translation tool
Post by: olaus on 23 December 2010, 22:46:05
 hi,

just wrote a tool a perl-script to include new variables in the master language-file (usually english) to all other languages plus a comment line, that it has to be translated. this saves the work if to manually check which new variables have been introduced f.e. in MG 3.4.0 and insert them into each language file. works also for scenrios and tutorials. it can be downloaded there:

http://pastebin.de/13202

You need perl installed (haven't tried it on windows but should work with active-state-perl, just google it up). call it from the directory with the language-files with 2 parameters:
1. name of directory to create where the new files good (old ones stay untouched)
2. name of the master-language-file

now search for all line which need translation, do it and remove the comment-line afterwards.

i tested it on megaglest, but should work for any version of glest.

regards
olaus
Title: Re: new translation tool
Post by: Yggdrasil on 29 December 2010, 17:15:02
Thank you for your contribution. It sounds really helpful. Will test it on GAE.
Title: Re: new translation tool
Post by: titi on 2 January 2011, 11:38:16
Thanks a lot!

It worked like a charme. It saves a lot of time! I asume this is GPL license or even more free?

Title: Re: new translation tool
Post by: tomreyn on 3 January 2011, 04:18:30
It says
license: GPL v3
on the pastebin ;)
Title: Re: new translation tool
Post by: nebososo on 11 January 2011, 00:20:57
Ha, works great. Thanks.

I think appending all the new strings to the end of the file could be helpful, so you wouldn't have to /needs trans a lot.

Well, anyway, I successfully updated a mega glest translation with it  :P.
Title: Re: new translation tool
Post by: titi on 16 January 2011, 02:26:42
I like the strings in same place as english so you keep the order!