(1) Added Bulgarian and (2) made some rather important fixes for the Russian letter book sorting. I also (3) incorporated Damas's Lithuanian translation, which seemed a bit more thorough than the one from stasys.
As far as paring down the locales. It is really very simple as the locales are limited to:
main.xml
(1) The switch statement that switches between locales when pushing the number 1 in the About screen. This can be easily cut to only do English and one locale - this way there will be no annoying switching through many languages. If this code is pared down, the rest of the locale-specific code is harmless and can stay as is. In fact, in PRSCustomizer you could make checkbox-type selection of included locales, and enable the ones selected, while the rest of them just cannot be activated (although the locale-specific code is still present in the firmware).
(2) The if/else sequence, where I set some variables to be used as messages
(3) The 2 long JS functions per locale parsing Titles and Menu items.
(4) The getTitle, where we call getTitleXx
(5) The getValue, where we call getValueXx
in starageMain.xml there is one if/else sequence.
The JS code is rather primitive, should be very easy to understand.
|