Mercurial > projects > mde
diff mde/content/Translation.d @ 156:36df0ffe34d2
Fix to reload translations.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 18 Apr 2009 21:51:03 +0200 |
parents | 0520cc00c0cc |
children | 24d77c52243f |
line wrap: on
line diff
--- a/mde/content/Translation.d Sat Apr 18 12:19:24 2009 +0200 +++ b/mde/content/Translation.d Sat Apr 18 21:51:03 2009 +0200 @@ -75,6 +75,7 @@ } private void load (char[] l10n) { + entries = null; // clear, then re-read char[][] files = [loadedL10n]; // initial locale plus dependencies size_t read = 0; // index in files of next file to read while (read < files.length) { @@ -98,11 +99,10 @@ char[] symPrefix; do { if (isSecTag) { - if (reader.section.length == 0) { + if (reader.section.length == 0) symPrefix = ""; - continue; - } - symPrefix = reader.section ~ '.'; + else + symPrefix = reader.section ~ '.'; } else { if (reader.tagType == "entry") { char[] sym = symPrefix ~ reader.tagID;