Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 839 for code/branches/core/src


Ignore:
Timestamp:
Feb 27, 2008, 6:46:20 PM (17 years ago)
Author:
landauf
Message:

added two macros to Language.h

Location:
code/branches/core/src/orxonox/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/ConfigValueContainer.cc

    r838 r839  
    948948        {
    949949            this->description_ = std::string("ConfigValueDescription::" + this->classname_ + "::" + this->varname_);
    950             Language::getLanguage().addEntry(this->description_, description);
     950            AddLanguageEntry(this->description_, description);
    951951            this->bAddedDescription_ = true;
    952952        }
     
    959959    std::string ConfigValueContainer::getDescription() const
    960960    {
    961         return Language::getLanguage().getLocalisation(this->description_);
     961        return GetLocalisation(this->description_);
    962962    }
    963963}
  • code/branches/core/src/orxonox/core/Language.h

    r838 r839  
    122122}
    123123
     124#define AddLanguageEntry(label, fallbackstring) \
     125    orxonox::Language::getLanguage().addEntry(label, fallbackstring)
     126
     127#define GetLocalisation(label) \
     128    orxonox::Language::getLanguage().getLocalisation(label)
     129
    124130#endif /* _Language_H__ */
Note: See TracChangeset for help on using the changeset viewer.