The LanguageManager class provides a list of supported languages.
More...
#include "framework/translations/internal/LanguageManager.h"
|
using | LanguageCountry = std::pair< QLocale::Language, QLocale::Country > |
|
|
bool | initComplete = false |
|
int | m_index = -1 |
|
|
void | languageChanged (void) |
|
void | languageStrChanged () |
|
The LanguageManager class provides a list of supported languages.
class MyClass {
...
QStringList items = languageManager()->getBoxItems();
Definition ILanguageManager.h:28
- See also
- LanguageList
◆ getBoxItems()
QStringList LanguageManager::getBoxItems |
( |
| ) |
|
|
overridevirtual |
Returns list of human-readable items that can be added to a lists (e. g. a combo box).
Implements ILanguageManager.
◆ getLocale()
QLocale LanguageManager::getLocale |
( |
int |
index | ) |
|
|
overridevirtual |
Returns the locale at the given index in list of languages.
- Since
- Open-Typer 5.1.0
Implements ILanguageManager.
◆ init()
void LanguageManager::init |
( |
void |
| ) |
|
Initializes the language manager.
◆ instance()
◆ languageStr()
QString LanguageManager::languageStr |
( |
void |
| ) |
|
|
overridevirtual |
◆ setLanguage()
void LanguageManager::setLanguage |
( |
int |
index | ) |
|
|
overridevirtual |
◆ supportedLanguagesList
const QList< LanguageManager::LanguageCountry > LanguageManager::supportedLanguagesList |
|
staticprivate |
Initial value:= {
{ QLocale::German, QLocale::Germany },
{ QLocale::English, QLocale::UnitedStates },
{ QLocale::Slovak, QLocale::Slovakia },
{ QLocale::Russian, QLocale::Russia },
{ QLocale::Ukrainian, QLocale::Ukraine },
}
◆ languageStr
QString LanguageManager::languageStr |
|
read |
The string representation of current locale.
- Since
- Open-Typer 5.1.0
The documentation for this class was generated from the following files:
- src/framework/translations/internal/LanguageManager.h
- src/framework/translations/internal/LanguageManager.cpp