Changeset 719 for code/branches/FICN
- Timestamp:
- Dec 29, 2007, 1:59:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Language.cc
r715 r719 69 69 this->defaultTranslation_ = "ERROR: LANGUAGE ENTRY DOESN'T EXIST!"; 70 70 this->readDefaultLanguageFile(); 71 72 this->setConfigValues();73 71 } 74 72 75 73 void Language::setConfigValues() 76 74 { 77 SetConfigValue(language_, this->defaultLanguage_) ;75 SetConfigValue(language_, this->defaultLanguage_).description("The language of the ingame text"); 78 76 this->readTranslatedLanguageFile(); 79 77 } … … 82 80 { 83 81 static Language theOnlyLanguageObject = Language(); 82 static bool bCreatingTheOnlyLanguageObject = true; 83 84 if (bCreatingTheOnlyLanguageObject) 85 { 86 bCreatingTheOnlyLanguageObject = false; 87 theOnlyLanguageObject.setConfigValues(); 88 } 89 84 90 return theOnlyLanguageObject; 85 91 }
Note: See TracChangeset
for help on using the changeset viewer.