#include "CorePrereqs.h"
#include <map>
#include <string>
#include <cassert>
Namespaces | |
namespace | orxonox |
Classes | |
class | orxonox::Language |
The Language class manges the language files and entries and stores the LanguageEntry objects in a map. More... | |
class | orxonox::LanguageEntry |
The LanguageEntry class stores the default- and the translated string of a given entry in the language file. More... | |
Defines | |
#define | AddLanguageEntry(label, fallbackstring) orxonox::Language::getLanguage().addEntry(label, fallbackstring) |
#define | GetLocalisation(label) orxonox::Language::getLanguage().getLocalisation(label) |
The Language class is used, to get a localisation of a string in the configured language. The string is identified by another string, the label of the entry. If the translation in the configured language isn't available, the default entry, defined in the code, is used.
Usage:
#define AddLanguageEntry | ( | label, | |||
fallbackstring | ) | orxonox::Language::getLanguage().addEntry(label, fallbackstring) |
#define GetLocalisation | ( | label | ) | orxonox::Language::getLanguage().getLocalisation(label) |