diff mde/i18n/I18nTranslation.d @ 19:db0b48f02b69

Minor changes regarding logging and unittests. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 21 Mar 2008 12:31:21 +0000
parents 5f90774ea1ef
children 838577503598
line wrap: on
line diff
--- a/mde/i18n/I18nTranslation.d	Tue Mar 18 17:51:52 2008 +0000
+++ b/mde/i18n/I18nTranslation.d	Fri Mar 21 12:31:21 2008 +0000
@@ -216,8 +216,8 @@
         
         // Hack a specific locale...
         // Also to allow unittest to run without init.
-        char[] currentL10n = options.L10n;
-        options.L10n = "test-1";
+        char[] currentL10n = Options.misc.L10n;
+        Options.misc.L10n = "test-1";
         
         I18nTranslation transl = load ("i18nUnitTest");
         
@@ -235,6 +235,9 @@
         // No checks for version info since it's not functionality of this module.
         // Only check extra entries are allowed but ignored.
         
+        // Restore
+        Options.misc.L10n = currentL10n;
+        
         logger.info ("Unittest complete.");
     }
 }