i18n
Stewart Gordon
smjg_1998 at yahoo.com
Thu Feb 2 11:40:07 PST 2012
On 02/02/2012 18:48, xancorreu wrote:
> Hi,
>
> Is there any way for localizate and internationalizate messages?
> I were shocked if D has something like Fantom
> [http://fantom.org/doc/docLang/Localization.html]. Gettext is pretty ugly ;-)
Is this just about supporting different human languages in your app?
You can put the strings output by your app in a separate file or in a section within the
code file to which they apply, and use either version blocks (compile-time) or arrays
(run-time) to choose between them.
Under Windows, you can use a stringtable resource. It's possible to make resources
language-specific, but I don't know how.
Stewart.
More information about the Digitalmars-d-learn
mailing list