Rockbox General > Rockbox General Discussion

How to create a new language file (.lng)

<< < (3/5) > >>

Domonoky:
To get the right feature string and the correct id for your target its best to take a look at the .rockbox/rockbox-info.txt file on your mp3player.

It contains all the info you need, the target id in this file is the id you need for the -i parameter.
And the string under Features should be given to the -t parameter. For the -t parameter you also need to add the player name.
So you command should look similar to this:

perl genlang -e=english.lang -t=sansafuze:accessory_supply:alarm:albumart:backlight_brightness:backlight_fade_int:crossfade:dircache:disk_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:lcd_sleep:morse_input:pitchscreen:quickscreen:radio:recording:recording_swcodec:recording_linein:rtc:scrollwheel:serial_port:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:usb_power:usbstack:usb_hid:usb_hid_mouse:wheel_acceleration:lineout_poweroff:large_plugin_buffer -i=28 -b=hrvatski.lng hrvatski.lang

hope this helps.

antisa:
That's it! It works now!

Thanks, a lot. Someone should put this information on that wikipage that describes the translation method.

After I finish the translation, I'll put it up as a patch.

Cheers!

Chronon:
I added a note about rockbox-info.txt to that page.

antisa:
Hm, I ran into a weird problem. I just finished the translation and when I make the .lng file and put it into .rockbox/langs directory on my player some translated strings are shown in wrong places.

For instance, in System menu where you can see the Rockbox info, battery status etc., there are strings from other parts of the translation, that is I don't see the translation for "Battery" which should be in that menu, I see the translated "Buffer" string.

Am I doing something wrong or...?

torne:
Your translation is probably not based on exactly the same version of the Rockbox code as the binary installed on your player. You need to use the same build.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version