From 667123895db5adfd6515f630d0d6daa740b6576b Mon Sep 17 00:00:00 2001 From: mszulecki Date: Fri, 23 Feb 2007 18:39:43 +0000 Subject: Add i18n support stubs and adjust chain. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@15 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- src/helloworld.d | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/helloworld.d') 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 -- cgit v1.1-32-gdbae