Author Topic: new translation tool  (Read 4939 times)

olaus

  • Guest
new translation tool
« 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
« Last Edit: 23 December 2010, 22:49:33 by olaus »

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: new translation tool
« Reply #1 on: 29 December 2010, 17:15:02 »
Thank you for your contribution. It sounds really helpful. Will test it on GAE.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,224
    • View Profile
    • http://www.titusgames.de
Re: new translation tool
« Reply #2 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?

« Last Edit: 2 January 2011, 11:44:50 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: new translation tool
« Reply #3 on: 3 January 2011, 04:18:30 »
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

  • Guest
Re: new translation tool
« Reply #4 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.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,224
    • View Profile
    • http://www.titusgames.de
Re: new translation tool
« Reply #5 on: 16 January 2011, 02:26:42 »
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