|
|
Rockbox mail archiveSubject: Re: multi-language rockbox versionFrom: Daniel Stenberg (daniel_at_haxx.se) Date: 2002-09-03
On Tue, 3 Sep 2002, JOSE MARIA GARCIA VALDECASAS BERNAL wrote:
> I believe there are multiple ways of choosing the language, but i thought
You mean in the style...
get_string(HELLO_WORLD_ID)
...that returns the translated string for "hello world" ? Yes, I believe that
This could be fixed right now, and have the get_string() a macro similar to
#define get_string(x) x
It would prepare the code and add no additional run-time penalty.
(Yes, they should probably have better names but you might get my drift
> The same way, i have changed all text strings at the code into macros, and
My opinion:
The translated strings should be in in some kind of meta-data file that the
I've already suggested my meta-file format.
> Changing each string (just those that need to be translated)
All strings (that are not pure debug strings) that are english today should
> in the code is a really *boring* work, but once you've done it, you can add
The changed code should be language-agnostic and again, we should not write
-- Daniel "Bagder" Stenberg -- http://rockbox.haxx.se/
Page was last modified "Mar 9 2008" The Rockbox Crew |