summaryrefslogtreecommitdiffstats
path: root/src/helloworld.d
diff options
context:
space:
mode:
authorGravatar mszulecki2007-02-23 18:39:43 +0000
committerGravatar mszulecki2007-02-23 18:39:43 +0000
commit667123895db5adfd6515f630d0d6daa740b6576b (patch)
treef7aa932112fe75e31532549d6885bc46d2824685 /src/helloworld.d
parente871e41637d8c511a0cf0379c5e4ca872f6cf469 (diff)
downloaddskel-667123895db5adfd6515f630d0d6daa740b6576b.tar.gz
dskel-667123895db5adfd6515f630d0d6daa740b6576b.tar.bz2
Add i18n support stubs and adjust chain.
git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@15 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
Diffstat (limited to 'src/helloworld.d')
-rwxr-xr-xsrc/helloworld.d6
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