News:

MegaGlests' game mods menu let's you install many new mods. Even more are available on the MegaGlest Wiki and the Mods forum.

Main Menu

new translation tool

Started by olaus, 23 December 2010, 22:46:05

olaus

 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

Yggdrasil

Thank you for your contribution. It sounds really helpful. Will test it on GAE.

titi

#2
Thanks a lot!

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




Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

It says
license: GPL v3
on the pastebin ;)
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

nebososo

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.

titi

I like the strings in same place as english so you keep the order!



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios