#include <ApplicationLanguageManager.h>
|
| | ApplicationLanguageManager () |
| |
| | ~ApplicationLanguageManager () |
| |
| bool | Init () |
| |
| bool | SetGlobalLanguage (const QString &language) |
| | SetGlobalLanguage - method sets desired language as current global (startup) language. More...
|
| |
| bool | SetTemporaryLanguage (const QString &language) |
| | SetTemporaryLanguage - method sets desired language as temporary language Temporary language is used for temporary language changes (single translation or multiple translations within defined code section). Primary use is for printed texts (printed ticket), where it is demanded to use default application language. When application changes its application states (and its UI widgets), global language is intended to use for this. More...
|
| |
| bool | ResetTemporaryLanguageToGlobal () |
| | ResetTemporaryLanguageToGlobal - method resets previously set temporary language back to global language. More...
|
| |
| QStringList | GetSupportedLanguages () const |
| | GetSupportedLanguages - returns currently supported languages. More...
|
| |
| bool | IsLanguageSupported (const QString &language) const |
| | IsLanguageSupported - returns if desired language is suported or not. More...
|
| |
| void | LogLanguageSupport () const |
| | LogLanguageSupport - method writes supported and default language to application logs. More...
|
| |
| ApplicationLanguageManager::ApplicationLanguageManager |
( |
| ) |
|
| ApplicationLanguageManager::~ApplicationLanguageManager |
( |
| ) |
|
| QStringList ApplicationLanguageManager::GetSupportedLanguages |
( |
| ) |
const |
GetSupportedLanguages - returns currently supported languages.
- Returns
- QStringList of supported languages (languages are represented by 2 character abbreviations (en, sk,.ru, ...) exception is "default" language)
| bool ApplicationLanguageManager::Init |
( |
| ) |
|
| bool ApplicationLanguageManager::IsLanguageSupported |
( |
const QString & |
language | ) |
const |
IsLanguageSupported - returns if desired language is suported or not.
- Parameters
-
| language | - language which will be considered if supported |
- Returns
- true if language is supported, false otherwise
| void ApplicationLanguageManager::LogLanguageSupport |
( |
| ) |
const |
LogLanguageSupport - method writes supported and default language to application logs.
| bool ApplicationLanguageManager::ResetTemporaryLanguageToGlobal |
( |
| ) |
|
ResetTemporaryLanguageToGlobal - method resets previously set temporary language back to global language.
- Returns
- - true on success, false otherwise
| bool ApplicationLanguageManager::SetGlobalLanguage |
( |
const QString & |
language | ) |
|
SetGlobalLanguage - method sets desired language as current global (startup) language.
- Parameters
-
| language | - language to be set as global language |
- Returns
- - true on success, false otherwise
| bool ApplicationLanguageManager::SetTemporaryLanguage |
( |
const QString & |
language | ) |
|
SetTemporaryLanguage - method sets desired language as temporary language Temporary language is used for temporary language changes (single translation or multiple translations within defined code section). Primary use is for printed texts (printed ticket), where it is demanded to use default application language. When application changes its application states (and its UI widgets), global language is intended to use for this.
- Parameters
-
| language | - language to be set as temporary language |
- Returns
- - true on success, false otherwise
| const QString ApplicationLanguageManager::DEFAULT_APPLICATION_LANGUAGE = "default" |
|
static |
The documentation for this class was generated from the following files: