Rockbox General > Rockbox General Discussion

How to create a new language file (.lng)

(1/5) > >>

vnt87:
Hey all,
First post here, so be gentle if my question is out of place.
Basically I wanted to create a new language file for my language (vietnamese) since it's not yet available in Rockbox repository.
I've found this page but it seems the instructions are somewhat outdated (for starters, the language files now have the .lng extension instead of .lang).
At any rate, I can't seem to be able to open these .lng using a normal text editor. I'm using Ubuntu Intrepid right now and its default editor (gedit) refuses to open .lng files, displaying some encoding setting errors or something.
I tried notepad++ (through wine) and was able to open them but the text looks messed up.
Any advice here?
trying to reduce width!

saratoga:

--- Quote from: vnt87 on February 21, 2009, 11:30:24 PM ---I've found this page but it seems the instructions are somewhat outdated (for starters, the language files now have the .lng extension instead of .lang).

--- End quote ---

No they still have a .lang extension:

http://svn.rockbox.org/viewvc.cgi/trunk/apps/lang/


--- Quote from: vnt87 on February 21, 2009, 11:30:24 PM --- At any rate, I can't seem to be able to open these .lng using a normal text editor. I'm using Ubuntu Intrepid right now and its default editor (gedit) refuses to open .lng files, displaying some encoding setting errors or something. I tried notepad++ (through wine) and was able to open them but the text looks messed up.
Any advice here?

--- End quote ---

I don't know anything about rockbox languages, but that wiki says "binary .lng file" so I'm guessing they're binary files and so cannot be viewed in a text editor.   Judging by the example command the wiki gives, I think lang files are compiled into .lng files. 

vnt87:
I see, so the .lng files are actually binaries. That explains why the editors couldn't read them. Thanks for pointing me in the right direction. Although, I'm still unsure about the compilation process, the wiki page did not mention anything about .lng files though, or did it? Suppose I have a .lang files translated and ready to go, how do I go about compiling it, does anybody know?
Regards,
NV

saratoga:

--- Quote from: vnt87 on February 22, 2009, 12:02:00 AM --- Suppose I have a .lang files translated and ready to go, how do I go about compiling it, does anybody know?

--- End quote ---

They'll get made when you compile rockbox.  Theres also some instructions on that page you linked, though I've never tried them myself. 

vnt87:
I suppose it means I'd need to compile Rockbox from source then. Hmm it's more of a hassle than I thought. I guess I'll look into it later then, thanks for your clarification.

Navigation

[0] Message Index

[#] Next page

Go to full version