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.