Mercurial > projects > mde
diff mde/mde.d @ 12:bff0d802cb7d
Implemented some internationalization support.
Implemented i18n.I18nTranslation class to load strings and descriptions from files (with unittest).
MTUnknownTypeException removed: its pointless since it's always ignored without even any message.
A few fixes to mde.mergetag.read.Reader regarding partial reading.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 22 Feb 2008 11:52:20 +0000 |
parents | b940f267419e |
children | 4608be19ebe2 |
line wrap: on
line diff
--- a/mde/mde.d Thu Feb 21 09:05:33 2008 +0000 +++ b/mde/mde.d Fri Feb 22 11:52:20 2008 +0000 @@ -9,7 +9,7 @@ import global = mde.global; import mde.events; import mde.scheduler; -import mde.options; // greeting message +import mde.i18n; // greeting message import mde.exception; import mde.input.input; @@ -44,7 +44,9 @@ } ); //END Initialisation - logger.info (options.greeting); + /* Log a greeting message. Just a little test really, but it can stay until i18n finds a proper use. */ + I18nTranslation transl = I18nTranslation.load ("mde"); + logger.info (transl.getEntry ("greeting")); while (global.run) { Scheduler.run (Clock.now());