#include <language.hpp>
Public Member Functions | |
int | getLanguageIndexByShortName (const wxString &shortName) const |
Gets the index of language with the given short name. | |
wxString | getLanguageName (const int index) const |
Gets the language name at the given index. | |
int | getLanguagesCount () const |
Gets the number of available languages. | |
wxString | getLanguageShortName (const int index) const |
Gets the language short name at the given index. | |
wxString | getLanguageTranslatedName (const int index) const |
Gets the language translated name at the given index. | |
wxString | getLanguageTranslatorName (const int index) const |
Gets the name of the translator (in latin-1 characters) at the given index. | |
wxString | getLanguageTranslatorNameInLocale (const int index) const |
Gets the name of the translator in the language at the given index. | |
Languages () | |
Default constructor. | |
bool | setLocale (wxLocale &loc, const int language) const |
Changes the locale of the application with the given language. | |
bool | setLocale (wxLocale &loc) const |
Changes the locale of the application. | |
~Languages () | |
Destructor. | |
Static Public Attributes | |
const int | LANGUAGE_UNKNOW = -1 |
Identifier for an unknown language. | |
Protected Member Functions | |
bool | readLanguagesSettings (const wxString &langFileIni) |
Reads languages settings from a configuration file. | |
WX_DEFINE_ARRAY (Language *, LanguagesList) | |
List of languages. | |
Protected Attributes | |
LanguagesList | languages |
List of languages. |
Never pass an instance of this class by value, always pass by reference or by adress.
For adding a language, see the comments of the default constructor.
Definition at line 53 of file language.hpp.
|
Default constructor. For adding a language:
Definition at line 286 of file language.cpp. References APP_AUTHOR, languages, and readLanguagesSettings(). |
|
Destructor.
Definition at line 312 of file language.cpp. References languages. |
|
Gets the index of language with the given short name.
Definition at line 453 of file language.cpp. References getLanguageIndexByShortName(), LANGUAGE_UNKNOW, and languages. Referenced by dlgConfigure::createControls(), and getLanguageIndexByShortName(). |
|
Gets the language name at the given index.
Definition at line 401 of file language.cpp. References getLanguageName(), getLanguagesCount(), and languages. Referenced by dlgConfigure::createControls(), and getLanguageName(). |
|
Gets the number of available languages.
Definition at line 387 of file language.cpp. References languages. Referenced by dlgConfigure::createControls(), dlgAbout::createControls(), getLanguageName(), getLanguageShortName(), getLanguageTranslatedName(), getLanguageTranslatorName(), and getLanguageTranslatorNameInLocale(). |
|
Gets the language short name at the given index.
Definition at line 435 of file language.cpp. References getLanguagesCount(), getLanguageShortName(), and languages. Referenced by dlgAbout::createControls(), getLanguageShortName(), and frmSums::itmToolsConfigureClick(). |
|
Gets the language translated name at the given index.
Definition at line 418 of file language.cpp. References getLanguagesCount(), getLanguageTranslatedName(), and languages. Referenced by dlgConfigure::createControls(), and getLanguageTranslatedName(). |
|
Gets the name of the translator (in latin-1 characters) at the given index.
Definition at line 483 of file language.cpp. References getLanguagesCount(), getLanguageTranslatorName(), and languages. Referenced by dlgAbout::createControls(), and getLanguageTranslatorName(). |
|
Gets the name of the translator in the language at the given index.
Definition at line 500 of file language.cpp. References getLanguagesCount(), getLanguageTranslatorNameInLocale(), and languages. Referenced by dlgAbout::createControls(), and getLanguageTranslatorNameInLocale(). |
|
Reads languages settings from a configuration file.
Definition at line 517 of file language.cpp. References APP_AUTHOR, APP_NAME, languages, readLanguagesSettings(), and UTF8toLocal(). Referenced by Languages(), and readLanguagesSettings(). |
|
Changes the locale of the application with the given language.
Definition at line 365 of file language.cpp. References languages, and setLocale(). |
|
Changes the locale of the application.
Definition at line 332 of file language.cpp. References AppPrefs::get(), languages, AppPrefs::readString(), and setLocale(). Referenced by CkSumsApp::InitLocale(), and setLocale(). |
|
List of languages.
|
|
Identifier for an unknown language.
Definition at line 274 of file language.cpp. Referenced by getLanguageIndexByShortName(). |
|
List of languages.
Definition at line 120 of file language.hpp. Referenced by getLanguageIndexByShortName(), getLanguageName(), getLanguagesCount(), getLanguageShortName(), getLanguageTranslatedName(), getLanguageTranslatorName(), getLanguageTranslatorNameInLocale(), Languages(), readLanguagesSettings(), setLocale(), and ~Languages(). |