The LanguageEntry class stores the default- and the translated string of a given entry in the language file.
More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/Language.h>
The LanguageEntry class stores the default- and the translated string of a given entry in the language file.
This class belongs to the Language class.
| orxonox::LanguageEntry::LanguageEntry |
( |
const std::string & |
fallbackEntry | ) |
|
|
explicit |
Constructor: Sets the default entry.
- Parameters
-
| fallbackEntry | The default entry |
| const std::string& orxonox::LanguageEntry::getDefault |
( |
| ) |
|
|
inline |
Returns the default entry.
- Returns
- The default entry
Returns the label of this entry.
- Returns
- The label
| const std::string& orxonox::LanguageEntry::getLocalisation |
( |
| ) |
|
|
inline |
Returns the localised entry in the configured language.
- Returns
- The translated entry
| void orxonox::LanguageEntry::setDefault |
( |
const std::string & |
fallbackEntry | ) |
|
Sets the default entry.
- Parameters
-
| fallbackEntry | The default entry |
Sets the label of this entry.
- Parameters
-
| void orxonox::LanguageEntry::setLocalisation |
( |
const std::string & |
localisation | ) |
|
Sets the localisation of the entry.
- Parameters
-
| localisation | The localisation |
| bool orxonox::LanguageEntry::bLocalisationSet_ |
|
private |
True if the translation was set.
| std::string orxonox::LanguageEntry::fallbackEntry_ |
|
private |
The default entry: Used, if no translation is available or no language configured.
| std::string orxonox::LanguageEntry::localisedEntry_ |
|
private |
The localised entry in the configured language.
The documentation for this class was generated from the following files: