comparison mde/lookup/Translation.d @ 127:3328c6fb77ca

2 fixes for ldc - not that I was able to compile anyway (x86_64).
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 08 Jan 2009 20:09:46 +0000
parents 6acd96f8685f
children 41582439a42b
comparison
equal deleted inserted replaced
126:c9843fbaac88 127:3328c6fb77ca
77 * 77 *
78 * On errors, a message is logged and the function continues, likely resulting in some 78 * On errors, a message is logged and the function continues, likely resulting in some
79 * symbol names being untranslated. */ 79 * symbol names being untranslated. */
80 Translation get (char[] section) { 80 Translation get (char[] section) {
81 if (sections is null || loadedL10n !is miscOpts.L10n()) { 81 if (sections is null || loadedL10n !is miscOpts.L10n()) {
82 if (sections) { // Clear entries hash-map, but re-use classes 82 if (sections.length) { // Clear entries hash-map, but re-use classes
83 foreach (s; sections) 83 foreach (s; sections)
84 s.entries = null; 84 s.entries = null;
85 } 85 }
86 loadedL10n = miscOpts.L10n(); 86 loadedL10n = miscOpts.L10n();
87 debug logger.trace ("Loading L10n: "~loadedL10n); 87 debug logger.trace ("Loading L10n: "~loadedL10n);