It is currently Tue Mar 19, 2024 7:43 am




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Translations How To
PostPosted: Sat Jan 03, 2009 4:55 pm 
Site Admin

Joined: Fri Dec 14, 2007 1:37 pm
Posts: 51
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


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron