[aida] Aida-Localization
Janko Mivšek
janko.mivsek at eranova.si
Sun May 11 19:35:50 CEST 2008
Michael Rueger wrote:
>> 1. use symbols instead of string for any text, for example:
>> a addText: #welcome instead of a addText: 'Welcome'
>> 2. store language mappings for each view of each App and not globally
>> for a whole site
>
> What I thought about for localization (for UIs) was to use strings, but
> allow for scoping.
> Just as an idea:
>
> '#fr.#appContext.the string to translate with %arg1' printf: {123. }
>
> and then look up the translation by original language (fr) and context
> (appContext). The extra (optional?) language parameter would allow to
> have the original strings in languages other then English.
>
> I generally don't like to have any data in methods, be it images or
> translation dictionaries. Doubles the needed space and bloats source
> code repositories.
Michael, can you provide an example how would you do that in Smalltalk
or Aida case?
Janko
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
More information about the Aida
mailing list