MegaGlest Forum
Archives (read only) => Vanilla Glest => Translations => Topic started 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
-
Thank you for your contribution. It sounds really helpful. Will test it on GAE.
-
Thanks a lot!
It worked like a charme. It saves a lot of time! I asume this is GPL license or even more free?
-
It says
license: GPL v3
on the pastebin ;)
-
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.
-
I like the strings in same place as english so you keep the order!