Mercurial > projects > mde
diff mde/lookup/Translation.d @ 103:42e241e7be3e
ContentList content type; getting content items/lists from Options generically via content.Items, and a new addContent widget function. Several improvements to generic handling of content. New button-with-text widget.
Some tidy-up.
Some name changes, to increase uniformity.
Bug-fix: floating widgets of fixed size could previously be made larger than intended from config dimdata.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 18:01:44 +0000 |
parents | 49e7cfed4b34 |
children | 20f7d813bb0f |
line wrap: on
line diff
--- a/mde/lookup/Translation.d Sat Nov 22 20:59:36 2008 +0000 +++ b/mde/lookup/Translation.d Tue Nov 25 18:01:44 2008 +0000 @@ -225,8 +225,8 @@ // Hack a specific locale... // Also to allow unittest to run without init. - char[] currentL10n = miscOpts.L10n; - miscOpts.L10n = "test-1"; + TextContent realL10n = miscOpts.L10n; + miscOpts.L10n = new TextContent ("L10n", "test-1"); Translation transl = load ("unittest/Translation"); @@ -245,7 +245,8 @@ // Only check extra entries are allowed but ignored. // Restore - miscOpts.L10n = currentL10n; + delete miscOpts.L10n; + miscOpts.L10n = realL10n; logger.info ("Unittest complete."); }