Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 831 vs 832 for /trunk/Source Code/Utility/Localization.cpp

Diff revisions: vs.
  @@ -11,7 +11,9 @@
11 11 static bool g_initialized = false;
12 12
13 13 bool init(const stringImpl& newLanguage) {
14 - changeLanguage(newLanguage);
14 + clear();
15 +
16 + g_localeFile = newLanguage;
15 17 // Use SimpleIni library for cross-platform INI parsing
16 18 g_languageFile.SetUnicode();
17 19 g_languageFile.SetMultiLine(true);
  @@ -52,9 +54,7 @@
52 54 /// language changes
53 55 void changeLanguage(const stringImpl& newLanguage) {
54 56 /// Set the new language code
55 - g_localeFile = newLanguage;
56 - /// And clear the table for the old language
57 - clear();
57 + init(newLanguage);
58 58 }
59 59
60 60 const char* get(U64 key, const char* defaultValue) {