Language.h File Reference

Definition of the Language and the LanguageEntry class. More...

#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)


Detailed Description

Definition of the Language and the LanguageEntry class.

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 Documentation

#define AddLanguageEntry ( label,
fallbackstring   )     orxonox::Language::getLanguage().addEntry(label, fallbackstring)

#define GetLocalisation ( label   )     orxonox::Language::getLanguage().getLocalisation(label)


Generated on Tue Jul 28 16:21:09 2009 for Orxonox by  doxygen 1.5.6