--- "Alejandro F. Reimondo" > >NOTICE THE (self msgAt:
'Kom0002')!
> I prefer:
>       'Kom0002' translated
> then you only have to change String and not Object
> 
> If you don't want to change any base class please
>  use expresssions like:
>       translator @ 'Kom0002'
> ( translator is an instance of a LanguageTranslator
>  class known in any swiki context)

Well, 2 things.  I think that
WhatEverReceiverInstanceOrClass mstAt: 'Kom0002'
is more natural than #translated.  Reminds of the
MessageCatalog in VisualWorks and all the NLS stuff of
VA.

Second it allows for other kinds of keys without any
change.  Keys could be integers or symbols for
performance issues and it would have zero effect on
the code.

A good compromise to avoid "it's called from
everywhere so we'll dump it in Object" would be to
make this a class method.  MessageCatalog msgAt:
'Kom0002' would be logical I think.

=====
Benoit St-Jean
[EMAIL PROTECTED]
http://cactus.swiki.net

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to