#include <language.hpp>
Public Member Functions | |
wxString | getName () const |
Gets the name of the language. | |
wxString | getShortName () const |
Gets the main language short name. | |
wxArrayString | getShortNames () const |
Gets the language shorts names. | |
wxString | getTranslatedName () const |
Gets the translated name of the language. | |
wxString | getTranslatorName () const |
Gets the name of the translator (in latin-1 characters). | |
wxString | getTranslatorNameInLocale () const |
Gets the name of the translator in the language. | |
Language (const wxString &langName, const wxString &langNameTranslated, const wxArrayString &shortNames, const wxArrayInt &id, const wxString &locName, const wxString &translatorLat, const wxString &translatorLocale) | |
Constructor. | |
Language (const wxString &langName, const wxString &langNameTranslated, const wxString &shortName, const int id, const wxString &locName, const wxString &translatorLat, const wxString &translatorLocale) | |
Constructor. | |
bool | setLocale (wxLocale &loc, const wxString &shortName) const |
Changes the locale of the application with the given language. | |
bool | setLocale (wxLocale &loc, const int language) const |
Changes the locale of the application with the given language. | |
Protected Attributes | |
wxArrayInt | ids |
Identifiers for the languages. | |
wxString | localeName |
Name of the locale (compiler dependant). | |
wxString | name |
Name of the language. | |
wxString | nameTranslated |
Name of the language (translated). | |
wxArrayString | shorts |
Short names that can be used for the language. | |
wxString | translator |
Name of the translator (in latin-1 characters). | |
wxString | translatorLoc |
Name of the translator (in UTF-8 charset). | |
Private Member Functions | |
Language () | |
Default constructor. |
Never pass an instance of this class by value, always pass by reference or by adress.
Definition at line 65 of file language.hpp.
|
Default constructor.
Definition at line 78 of file language.hpp. |
|
Constructor.
Definition at line 71 of file language.cpp. References ids, localeName, name, nameTranslated, shorts, translator, and translatorLoc. |
|
Constructor. Caller must provide one or more short names and one or more language ids. This is not verified by this constructor.
Definition at line 105 of file language.cpp. References ids, localeName, name, nameTranslated, shorts, translator, and translatorLoc. |
|
Gets the name of the language.
Definition at line 189 of file language.cpp. References name. |
|
Gets the main language short name.
Definition at line 225 of file language.cpp. References shorts. |
|
Gets the language shorts names.
Definition at line 213 of file language.cpp. References shorts. |
|
Gets the translated name of the language.
Definition at line 201 of file language.cpp. References nameTranslated. |
|
Gets the name of the translator (in latin-1 characters).
Definition at line 237 of file language.cpp. References translator. |
|
Gets the name of the translator in the language.
Definition at line 249 of file language.cpp. References translatorLoc. |
|
Changes the locale of the application with the given language. The locale is changed only if the given short name is present in this language instance.
Definition at line 165 of file language.cpp. References ids, localeName, name, setLocale(), and shorts. |
|
Changes the locale of the application with the given language. The locale is changed only if the given language id is present in this language instance.
Definition at line 135 of file language.cpp. References ids, localeName, name, setLocale(), and shorts. Referenced by setLocale(). |
|
Identifiers for the languages.
Definition at line 71 of file language.hpp. Referenced by Language(), and setLocale(). |
|
Name of the locale (compiler dependant).
Definition at line 72 of file language.hpp. Referenced by Language(), and setLocale(). |
|
Name of the language.
Definition at line 68 of file language.hpp. Referenced by getName(), Language(), and setLocale(). |
|
Name of the language (translated).
Definition at line 69 of file language.hpp. Referenced by getTranslatedName(), and Language(). |
|
Short names that can be used for the language.
Definition at line 70 of file language.hpp. Referenced by getShortName(), getShortNames(), Language(), and setLocale(). |
|
Name of the translator (in latin-1 characters).
Definition at line 73 of file language.hpp. Referenced by getTranslatorName(), and Language(). |
|
Name of the translator (in UTF-8 charset).
Definition at line 74 of file language.hpp. Referenced by getTranslatorNameInLocale(), and Language(). |