View Single Post
Old 09-08-2008, 12:04 AM   #64
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
(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.
Attached Files
File Type: zip Localize_Reader_En_Fr_Es_De_It_Ru_Pl_Uk_Cz_Nl_Hr_Lt_Bg.zip (242.5 KB, 450 views)
porkupan is offline   Reply With Quote