Changeset 847 for code/branches/core/src/orxonox/core/Language.h
- Timestamp:
- Mar 3, 2008, 1:49:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/Language.h
r845 r847 51 51 #include "OrxonoxClass.h" 52 52 53 54 #define AddLanguageEntry(label, fallbackstring) \ 55 orxonox::Language::getLanguage().addEntry(label, fallbackstring) 56 57 #define GetLocalisation(label) \ 58 orxonox::Language::getLanguage().getLocalisation(label) 59 60 53 61 namespace orxonox 54 62 { … … 78 86 { return this->fallbackEntry_; } 79 87 88 /** 89 @brief Sets the label of this entry. 90 @param label The label 91 */ 92 inline void setLabel(const LanguageEntryLabel& label) 93 { this->label_ = label; } 94 95 /** 96 @brief Returns the label of this entry. 97 @return The label 98 */ 99 inline const LanguageEntryLabel& getLabel() const 100 { return this->label_; } 101 80 102 private: 81 std::string fallbackEntry_; //!< The default entry: Used, if no translation is available or no language configured 82 std::string localisedEntry_; //!< The localised entry in the configured language 83 bool bLocalisationSet_; //!< True if the translation was set 103 LanguageEntryLabel label_; //!< The label of the entry 104 std::string fallbackEntry_; //!< The default entry: Used, if no translation is available or no language configured 105 std::string localisedEntry_; //!< The localised entry in the configured language 106 bool bLocalisationSet_; //!< True if the translation was set 84 107 }; 85 108 … … 118 141 } 119 142 120 #define AddLanguageEntry(label, fallbackstring) \121 orxonox::Language::getLanguage().addEntry(label, fallbackstring)122 123 #define GetLocalisation(label) \124 orxonox::Language::getLanguage().getLocalisation(label)125 126 143 #endif /* _Language_H__ */
Note: See TracChangeset
for help on using the changeset viewer.