- Timestamp:
- Aug 19, 2010, 2:14:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Language.cc
r6417 r7186 36 36 #include <fstream> 37 37 #include "util/Debug.h" 38 #include "util/StringUtils.h" 38 39 #include "Core.h" 39 40 #include "PathConfig.h" … … 169 170 @return The localisation 170 171 */ 171 const std::string& Language::getLocalisation(const LanguageEntryLabel& label ) const172 const std::string& Language::getLocalisation(const LanguageEntryLabel& label, bool bError) const 172 173 { 173 174 std::map<std::string, LanguageEntry*>::const_iterator it = this->languageEntries_.find(label); 174 175 if (it != this->languageEntries_.end()) 175 176 return it->second->getLocalisation(); 176 else 177 else if (bError) 177 178 { 178 179 // Uh, oh, an undefined entry was requested: return the default string … … 180 181 return this->defaultLocalisation_; 181 182 } 183 else 184 return BLANKSTRING; 182 185 } 183 186
Note: See TracChangeset
for help on using the changeset viewer.