A forum about programs for W:A and WWP.
http://lookias.worms2d.info/forum/

Translations How To
http://lookias.worms2d.info/forum/viewtopic.php?f=9&t=23
Page 1 of 1

Author:  lookias [ Sat Jan 03, 2009 4:55 pm ]
Post subject:  Translations How To

ok this little how to, describes the process of translating the wheat snooper.
this is very easy and if you are fast you can do it in about 2 hours. you must translate every string from inside the snooper.

in the snooper version 1.2 and higher is a folder named translations. this folder includes a file named The_Wheat_Snooper_v1.2_empty_translation.ts
files with the suffix ts, are readable by QtLinuguist.
download it here: http://code.google.com/p/qtlinguistdownload/
or directly: http://qtlinguistdownload.googlecode.co ... taller.exe
now open the ts file with qtlinguist.

you see now a very easy interface where you can browse all the translatable strings from the snooper. and you can translate the strings directly.
translate some strings, just to see the result in the snooper.

to see the results, click on the file menu. there are two important actions. one is save, that saves your work into the ts file. and in the file menu you can also release the ts file.

releasing the file means that qtlinguist builds a qm file from it. the snooper uses this qm files to translate the program. so safe the qm file to the translations folder and restart the snooper.

if you rightclick the trayicon from the snooper now you can change the translation directly. switch to your translation now and watch the result.

If you see a %1 or %2 ... %n string you must include it in your translation too.
i wish you a happy translating.

if your done with translating and you want now offer the translation to everyone, you should rename the qm file to a clever name like:
snooper_english_v1.2_by_username.qm
v1.2 tells us the snooper version number.
and in this case rename the ts file to:
snooper_english_v1.2_by_username.ts

then just post it into this thread or open an own one.

ok, why do we still need the ts file?
the ts file is very important because it can be updated when the snooper changes its own strings in newer versions. that means if the snooper changes i can simply update the ts file and someone can then translate the changes.

greetz lookias

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/