The I18N singleton class handles detection and loading of translation files.
More...
#include <I18N.h>
|
| void | languageChanged (const QString language) |
| | languageChanged Emitted when the current language changes
|
| void | langaugesChanged (const QStringList languages) |
| | langaugesChanged Emitted when the detected languages changes
|
The I18N singleton class handles detection and loading of translation files.
◆ currentLanguage()
| QString I18N::currentLanguage |
( |
| ) |
|
|
static |
currentLanguage
- Returns
- The current language string (native name: English, Español etc..)
◆ detectedLanguages()
| QStringList I18N::detectedLanguages |
( |
| ) |
|
|
static |
detectedLanguages
- Returns
- List of detected languages (native names: English, Español etc..)
◆ instance()
| I18N * I18N::instance |
( |
| ) |
|
|
static |
◆ langaugesChanged
| void I18N::langaugesChanged |
( |
const QStringList | languages | ) |
|
|
signal |
langaugesChanged Emitted when the detected languages changes
- Parameters
-
| languages | The current list of languages (native names i.e English, Español..) |
◆ languageChanged
| void I18N::languageChanged |
( |
const QString | language | ) |
|
|
signal |
languageChanged Emitted when the current language changes
- Parameters
-
| language | The current language (native name, i.e English, Español) |
◆ reDetectLanguages()
| void I18N::reDetectLanguages |
( |
| ) |
|
|
static |
detectLanguages Detect new language files
◆ setLanguage()
| void I18N::setLanguage |
( |
const QString & | langName | ) |
|
|
static |
setLanguage Sets the current language
- Parameters
-
| langName | The language name must be an is 639-1 name |
The documentation for this class was generated from the following files: