Rockbox mail archive
Subject: Re: multi-language rockbox version
From: perterm (perterm_at_vce.de)
Date: 2002-09-03
Daniel Stenberg wrote:
> #define HELLO_WORLD_ID "hello world"
> #define BYE_BYTE_WORLD_ID "bye bye world"
Do you think it might be a good idea to make a rule that each of these
macros should have a defined prefix like
#define STR_HELLO_WORLD_ID "hello world"
#define STR_BYE_BYTE_WORLD_ID "bye bye world"
That might make it easier to write template generators for the
language-meta-files from the source code.
> My described system is also open for further modifications of the format, as
> we might need to introduce "maximum string length" for specific strings etc
> in the future.
In characters or in pixel? I see the necessity but with propfonts that
will be a difficult task. A simple editable text file will be not an
option any more. It might be necessary to write an
translation-editor-application that can calculate the real string widths
as they would appear on the Jukebox. That's a bit of overkill
considering that this translation-editor will be used only every now and
than when a new string/language is added to rockbox.
Phil
Page was last modified "Mar 9 2008" The Rockbox Crew
|