Changeset 6536 for code/trunk/src/libraries/core/Language.h
- Timestamp:
- Mar 16, 2010, 11:22:36 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gamestate (added) merged: 6430-6432,6437,6439-6440
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/Language.h
r6417 r6536 52 52 #include <cassert> 53 53 #include "util/Singleton.h" 54 55 #define AddLanguageEntry(label, fallbackstring) \56 orxonox::Language::getInstance().addEntry(label, fallbackstring)57 58 #define GetLocalisation(label) \59 orxonox::Language::getInstance().getLocalisation(label)60 61 54 62 55 namespace orxonox … … 140 133 static Language* singletonPtr_s; 141 134 }; 135 136 //! Shortcut function for Language::addEntry 137 inline void AddLanguageEntry(const LanguageEntryLabel& label, const std::string& fallbackString) 138 { 139 Language::getInstance().addEntry(label, fallbackString); 140 } 141 142 //! Shortcut function for Language::getLocalisation 143 inline const std::string& GetLocalisation(const LanguageEntryLabel& label) 144 { 145 return Language::getInstance().getLocalisation(label); 146 } 142 147 } 143 148
Note: See TracChangeset
for help on using the changeset viewer.