Wiki > Main > LocalizablePlugins (compare)
Difference: LocalizablePlugins (r2 vs. r1)
This page was created to collect all the details on implementing a system for localization of the plugins in RockBox. The following is my suggestion for how it could be done, comments, suggestions etc. are of course welcome
This is pretty much covered by the LangV2 format, plugin strings are added to the existing .lang files using the 'user' field to describe which plugin uses them. Will probably need implementation/adjustment of the genlang script.
The core has one for each language, plugins could use one of the following (further suggestions?)
* Plugin strings in the same file as the core strings, changing the core loader/file format so that only what's necessary is loaded by the core. (I vote for this)
* One file per Since plugins are separate units, I think it should be possible to make a 'cut' at least at the plugin and language, probably level. I.e. I'd be for the simplest solution variants 2 or 3 but would create far too many files. clearly against 1. --Sam Katz, March 26, 2008
* Combination files for each language or each plugin, less files but would be as complicated as only one file.
Each plugin provides the necessary buffer to store all the strings in memory and calls a loader function either in the plugin lib or the core with some plugin ID. The loader function fills the buffer and an array of pointers just like the core loading works now. Possibly each plugin also has a compiled in language (English) do we need this?
r2 - 26 Mar 2008 - 19:14:46 - SamuelKatzRevision r2 - 26 Mar 2008 - 19:14 - SamuelKatz
Revision r1 - 26 Mar 2008 - 18:37 - NilsWallmenius
Copyright © by the contributing authors.