mirror of https://github.com/buggins/dlangui.git
fix i18n resource merging
This commit is contained in:
parent
6cc3dc342d
commit
17b53ae7b8
|
@ -188,7 +188,6 @@ class UIStringList {
|
||||||
}
|
}
|
||||||
/// load strings from stream
|
/// load strings from stream
|
||||||
bool load(std.stream.InputStream stream) {
|
bool load(std.stream.InputStream stream) {
|
||||||
clear();
|
|
||||||
dlangui.core.linestream.LineStream lines = dlangui.core.linestream.LineStream.create(stream, "");
|
dlangui.core.linestream.LineStream lines = dlangui.core.linestream.LineStream.create(stream, "");
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -219,6 +218,7 @@ class UIStringList {
|
||||||
|
|
||||||
/// load strings from file (utf8, id=value lines)
|
/// load strings from file (utf8, id=value lines)
|
||||||
bool load(string[] filenames) {
|
bool load(string[] filenames) {
|
||||||
|
clear();
|
||||||
bool res = false;
|
bool res = false;
|
||||||
foreach(filename; filenames) {
|
foreach(filename; filenames) {
|
||||||
import std.stream;
|
import std.stream;
|
||||||
|
|
Loading…
Reference in New Issue