12 May 13:05
Re: Localization - a proposal
From: Janko Mivšek <janko.mivsek <at> eranova.si>
Subject: Re: Localization - a proposal
Newsgroups: gmane.comp.web.server.aida
Date: 2008-05-12 11:05:26 GMT
Subject: Re: Localization - a proposal
Newsgroups: gmane.comp.web.server.aida
Date: 2008-05-12 11:05:26 GMT
Rob Rothwell wrote: > Will it still be possible to work in "non-localized" mode this way? > > e: addText: 'Salut'. Yes, normal text stay same as now. You switch to "localized" text when you change it into an association. And you can do that later when you need, which is also an advantage of this approach. You can start with usual text in the code and later just change it to the association and voila, your app is internationalized! > Or, could you set a default association: > > e defaultLanguage: #fr > > Or better yet > > MyApp defaultLanguage: #fr > > Which would signal elements to use the #fr association for any > non-specified language reference? I wouldn't complicate much further. If you don't have that text associations, your text is simply part of your code. In any language you wish. But when a need arises to support more than one language, you need to upgrade that text to associations. And this upgrade is simple. 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