Rockbox mail archiveSubject: Re: plugins and localization
Re: plugins and localization
From: Robert Hak <rhak_at_ramapo.edu>
Date: Mon, 25 Aug 2003 08:04:20 -0400 (EDT)
Well... I've not voice my opinion in a while.. so why not now...
Just one point of consideration. We are going to have a fair amount of
repetition amongst the language files for certain phrases etc. Might it
make sense to allow one .lang file to "include" another? (ie: #include).
That way we could have a master file with common phrases, but still the
localization to the plugin for other phrases. (with the master being
located in .rock and only being of common phrases for rocks.)
Just and brainstormed idea...
On Mon, 25 Aug 2003, Daniel Stenberg wrote:
Linus, Kjell and me sat down and had a chat about language support for the
plugins, and after having approached the problem in many different ways we
came to the conclusion that a single language file for each plugin is the
tetris.rock will then have a tetris.[fill in extension] for the plugin
localized strings. One single language file, for all supported languages for
this particular plugin. It maintains the separate and individual spirit of
both the plugins as well as the language files. Plugins can be added with our
without the language files, and plugin-languages can be updates separately
from the actual plugin code.
The plugin loader will then take care of loading the language file and set up
things so that the str() macro will use fine for plugins.
-- Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/ +-- --- --- --- --- --- --- --- --- --- --- --- --- --+ | Robert E. Hak < http://phobos.ramapo.edu/~rhak > | "Somewhere, just out of sight, the unicorns are gathering."Received on 2003-08-25