Changeset 10480 for code/branches/core7/src/libraries/core/CoreConfig.cc
- Timestamp:
- May 25, 2015, 9:01:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/CoreConfig.cc
r10479 r10480 47 47 { 48 48 RegisterObject(CoreConfig); 49 this->setConfigValues(); 49 50 } 50 51 … … 114 115 { 115 116 // Read the translation file after the language was configured 116 Language::getInstance().readTranslatedLanguageFile(); 117 bool success = Language::getInstance().readTranslatedLanguageFile(this->language_); 118 if (!success) 119 { 120 // Set the language in the config-file back to the default. 121 ResetConfigValue(language_); 122 orxout(internal_info, context::language) << "Reset language to " << this->language_ << '.' << endl; 123 } 117 124 } 118 125 … … 126 133 bInitialized = true; 127 134 } 128 }129 130 //! Sets the language in the config-file back to the default.131 void CoreConfig::resetLanguage()132 {133 ResetConfigValue(language_);134 135 } 135 136
Note: See TracChangeset
for help on using the changeset viewer.