Rockbox General > Rockbox General Discussion

How to create a new language file (.lng)

<< < (2/5) > >>

yapper:
http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling
http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform

Lear:
The binary .lng files are created by the Perl script genlang, found in tools, so you shouldn't need to do a full compile just to be able to test a new translation. The somewhat tricky part is the -t argument; I'm not quite sure what will happen if you don't specify it. Hopefully you'll just get a somewhat larger file than usual (containing strings that aren't relevant for your target).

antisa:
Hi guys! Thanks for creating this great software!

Okay, so I'm almost finished with the croatian translation of Rockbox, but before posting it as a patch to Fyspray (that is what one does, right?), I'd like to be able to test it out.

The above command doesn't seem to work anymore because there's a new script called genlang. I've tried to create a .lng file using that command like this:


--- Code: ---perl genlang -e=english.lang -t=sansafuze:features.txt -i=28 -b=hrvatski.lng hrvatski.lang
--- End code ---

This command creates a .lng file, but it doesn't work in Rockbox. I don't understand the part with the "features" and argument "-i" which stands for id number. Where can I find this number? There is a wiki page that talks about translating, and it says that this number is found in the configure script in svn tools/ directory or something like that. I tried running that script in terminal (I use Ubuntu 10.04) but I get this message:


--- Code: ---antisa@antisa-desktop:~$ ./configure
Using temporary directory /tmp
WEEEEEEEEP. Don't run this configure script within the tools directory.
It will only cause you pain and grief. Instead do this:

 cd ..
 mkdir build-dir
 cd build-dir
 ../tools/configure

Much happiness will arise from this. Enjoy

--- End code ---

So if someone can please give me the correct command to execute with genlang that would be great. I have a Sansa Fuze v2.

Thanks in advance!

P.S. I'll be donating some money for this great project, so consider yourselves bribed for an answer ;) :D ;D

Keep up the good work!

LambdaCalculus:
For the original poster: this link may be of good use to you.

http://www.rockbox.org/wiki/LangFiles

antisa:
I read that several times, but I don't really get it. Anyone else?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version