comparison mde/i18n/I18nTranslation.d @ 16:9cb7b9310168

Improvements to Options and Init. Revamped Options with sections and auto saving/loading. Moved some of init's functions outside the module. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 15 Mar 2008 11:56:13 +0000
parents 4608be19ebe2
children 5f90774ea1ef
comparison
equal deleted inserted replaced
15:4608be19ebe2 16:9cb7b9310168
77 */ 77 */
78 static I18nTranslation load (char[] name) 78 static I18nTranslation load (char[] name)
79 { 79 {
80 bool[ID] loadedSecs; // set of all locales/sections loaded; used to prevent circular loading 80 bool[ID] loadedSecs; // set of all locales/sections loaded; used to prevent circular loading
81 ID[] secsToLoad // locales/sections to load (dependancies may be added) 81 ID[] secsToLoad // locales/sections to load (dependancies may be added)
82 = [cast(ID) options.L10n]; // start by loading the current locale 82 = [cast(ID) Options.misc.L10n]; // start by loading the current locale
83 83
84 I18nTranslation transl = new I18nTranslation (name, options.L10n); 84 I18nTranslation transl = new I18nTranslation (name, Options.misc.L10n);
85 85
86 IReader reader; 86 IReader reader;
87 try { 87 try {
88 reader = dataDir.makeMTReader ("L10n/"~name, PRIORITY.HIGH_LOW); 88 reader = dataDir.makeMTReader ("L10n/"~name, PRIORITY.HIGH_LOW);
89 /* Note: we don't want to load every translation section depended on to its own class 89 /* Note: we don't want to load every translation section depended on to its own class