[Mono-list] Re: Resource System Proposal
Robert Deviasse
rdeviasse@hotmail.com
Thu, 15 Nov 2001 21:56:24 -0500
> > Why not consider an alternative usage that can be implemented portably:
> > class Hello
> > {
> > Delegate _ = System.I18N.GetText ;
> > public static void Main()
> > {
> > System.Console.WriteLine(_("Hello World!"));
> > }
> > }
>...
> > The disadvantage of this approach is that each object needs to
> > add one delegate.
>
>Why not `static Delegate _ = ...'?
> ^^^^^^
Of course. ;-)
I was also off when I said one per class. This delegate only had to be in
any base class. Root-based frameworks, like GTK#, may wish to make the lives
of GTK# users easier by declaring this template in their root class (i.e.
GObject).
Admittedly, it would be nice if something GetText-like were accepted into
the C# standard (or at least the free software standard). Localization and
internationalization should be made as simple, convenient, and manageable as
possible. It would happen if every project/library uses it's own scheme.
It would certainly avoid the FALSE/_FALSE/false/False/0 and
TRUE/_TRUE/true/True/0 mess that was introduced into C because
BOOLEAN/BOOLE/BOOL/bool/boole/boolean/logical/LOGICAL/Logical wasn't a C
keyword.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp