11 May 19:35
Re: Aida-Localization
From: Janko Mivšek <janko.mivsek <at> eranova.si>
Subject: Re: Aida-Localization
Newsgroups: gmane.comp.web.server.aida
Date: 2008-05-11 17:35:50 GMT
Subject: Re: Aida-Localization
Newsgroups: gmane.comp.web.server.aida
Date: 2008-05-11 17:35:50 GMT
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
_______________________________________________
Aida mailing list
Aida <at> aidaweb.si
http://lists.aidaweb.si/mailman/listinfo/aida
RSS Feed