Changeset 7284 for code/trunk/src/libraries/core/Language.h
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/Language.h
r6536 r7284 116 116 117 117 void addEntry(const LanguageEntryLabel& label, const std::string& entry); 118 const std::string& getLocalisation(const LanguageEntryLabel& label ) const;118 const std::string& getLocalisation(const LanguageEntryLabel& label, bool bError = true) const; 119 119 120 120 private: … … 145 145 return Language::getInstance().getLocalisation(label); 146 146 } 147 148 //! Shortcut function for Language::getLocalisation without printing an error in case the label doesn't exist 149 inline const std::string& GetLocalisation_noerror(const LanguageEntryLabel& label) 150 { 151 return Language::getInstance().getLocalisation(label, false); 152 } 147 153 } 148 154
Note: See TracChangeset
for help on using the changeset viewer.