|
|
Proposal for making the plugins localizableThis 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![]() Source filesThis 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.Binary language filesThe core has one for each language, plugins could use one of the following (further suggestions?)
Loading languagesEach 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?r3 - 02 Apr 2021 - 20:46:07 - UnknownUser
Copyright © by the contributing authors.
|