From 17b53ae7b840d629c57b0f59d49cb700efaf7efd Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 22 May 2014 10:05:53 +0400 Subject: [PATCH] fix i18n resource merging --- src/dlangui/core/i18n.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/core/i18n.d b/src/dlangui/core/i18n.d index d1d36b89..25330003 100644 --- a/src/dlangui/core/i18n.d +++ b/src/dlangui/core/i18n.d @@ -188,7 +188,6 @@ class UIStringList { } /// load strings from stream bool load(std.stream.InputStream stream) { - clear(); dlangui.core.linestream.LineStream lines = dlangui.core.linestream.LineStream.create(stream, ""); int count = 0; for (;;) { @@ -219,6 +218,7 @@ class UIStringList { /// load strings from file (utf8, id=value lines) bool load(string[] filenames) { + clear(); bool res = false; foreach(filename; filenames) { import std.stream;