diff options
Diffstat (limited to 'src/helloworld.d')
-rwxr-xr-x | src/helloworld.d | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helloworld.d b/src/helloworld.d index f2f328b..05ed01b 100755 --- a/src/helloworld.d +++ b/src/helloworld.d @@ -2,9 +2,15 @@ import config; import testlibrary; import testshlibrary; import std.stdio; +import catalog; void main(char[][] args) { + // Internationalization Example + Catalog.Init("i18n","./locale"); + + writefln(Catalog.GetString("Hello!")); + writefln(HelloWorldFactory.getName() ~ ", " ~ HelloWorldSharedObjectFactory.getVersion() ~ " " ~ config.VERSION); // auto type inference and built-in foreach |