Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: Buzkill on August 21, 2021, 11:56:43 PM

Title: Modifying English.lng
Post by: Buzkill on August 21, 2021, 11:56:43 PM
Threw rockbox on my old iPod 4g greyscale and So far  I've been almost 100% effective at modifying my main menu items to read as I like them (closer to stock)
By just modifying the English.lng file with the wording I like. But by doing so it seems that I've introduced/uncovered some kind of bug, because after the modification, everything reads correctly except that now any setting with Yes/No option, the word “YES" does not appear anymore. It's just a blank line. It still works abs I can highlight the option, it just seems the word "yes" is broken. Any ideas why this would happen?

Here is a list of the words changed:

Database > Music
Playlist catalogue > Playlists
Plugins > Extras
Recording >  Recordings
Title: Re: Modifying English.lng
Post by: Buzkill on August 22, 2021, 02:16:05 AM
OK by following https://www.rockbox.org/wiki/LangFiles (https://www.rockbox.org/wiki/LangFiles) I've managed to be able to get a new English.lng file created....BUT now i'm having issues figuring out which version of the original english.lang file to use.

At first i just used the most recent version but quickly realized that it has to be the exact right version. so looking on my ipod at the rockbox-info.txt  i see that its version 3.15...

Target: ipod4g
Target id: 17
Target define: -DIPOD_4G
Memory: 32
CPU: arm
Manufacturer: ipod
Version: 3.15
Binary: rockbox.ipod

BUT again that didnt work and i just get a bunch of random text everywhere.

Any ideas how to find which version i need other than trial and error??

Cheers everyone and happy listening!
Title: NOT SOLVED
Post by: Buzkill on August 22, 2021, 03:55:34 AM
And so i just resorted to manually editing the binary with a Hex-editor instead of notepad++. Worked like a charm**** The same thing happened! the word "yes" is not showing up?! wtf?

So for anyone wanting to customize their main menu or any other words, good way to do it.
Title: Re: Modifying English.lng
Post by: saratoga on August 22, 2021, 09:25:47 AM
The language file needs to match the rockbox version. Usually you build them together so that you get a new rockbox.zip containing the updated text.

If you want to avoid building rockbox, you need to download the current build for your device and the current version of english.lang. Then use those.
Title: Re: Modifying English.lng
Post by: Buzkill on August 23, 2021, 04:29:11 AM
I've done that with no success. Even if i use the 3.15V english.lang from git and compile, it doest match the one that comes with the 3.15 release.

And like I've said, I've managed to get all that working right, but for some reason the word "YES" still disappears, so I'm starting to think this is something else completely.
Title: Re: Modifying English.lng
Post by: saratoga on August 23, 2021, 10:10:26 AM
3.15 is a release from 2019. Did you actually track down a 2 year old version of english.lang? 

FWIW I don't recommend doing what you are doing. Instead I would use the current build for both the language file and rockbox.
Title: Re: Modifying English.lng
Post by: Buzkill on August 24, 2021, 09:22:38 AM
Well, for one I'm using the current build posted on the site, just happens to be 3.15...thought that was up to date? no...????.. As for daily dev builds, I havent been able to get the compiling to work on my windows machine and haven't had time to pull out another to test linux currently.

And as for the Language issue, it was just an offset error. Replaced everything with another letter or an empty space to keep all the bits lined up in the binary. Insert worked like a charm for that.


SOLVED
Title: Re: Modifying English.lng
Post by: Buzkill on August 24, 2021, 09:24:42 AM
3.15 is a release from 2019. Did you actually track down a 2 year old version of english.lang? 

FWIW I don't recommend doing what you are doing. Instead I would use the current build for both the language file and rockbox.

Where would you recommend i get a current build newer than 3.15?
Title: Re: Modifying English.lng
Post by: saratoga on August 24, 2021, 11:15:43 AM
Current build is available here:  https://build.rockbox.org/
Title: Re: Modifying English.lng
Post by: Buzkill on August 25, 2021, 11:36:43 PM
 8) Cheers!

Just very confusing considering https://www.rockbox.org/download/ (https://www.rockbox.org/download/) is still up and working.

/download is generally my first place i look for CURRENT releases  ::) (hint hint to admin)
Title: Re: Modifying English.lng
Post by: 7o9 on August 26, 2021, 01:39:17 AM
The link saratoga provided is basically the same as the 'dev builds' link at the top left of the Rockbox site.

The 'release' links points to the latest 'official' release builds, which by now are quite old. There just has not been a new 'official' release in a while.