Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
I18N Class Reference

The I18N singleton class handles detection and loading of translation files. More...

#include <I18N.h>

Inheritance diagram for I18N:
Collaboration diagram for I18N:

Signals

void languageChanged (const QString language)
 languageChanged Emitted when the current language changes
void langaugesChanged (const QStringList languages)
 langaugesChanged Emitted when the detected languages changes

Static Public Member Functions

static I18Ninstance ()
static QStringList detectedLanguages ()
 detectedLanguages
static QString currentLanguage ()
 currentLanguage
static void setLanguage (const QString &langName)
 setLanguage Sets the current language
static void reDetectLanguages ()
 detectLanguages Detect new language files

Detailed Description

The I18N singleton class handles detection and loading of translation files.

Member Function Documentation

◆ 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
languagesThe 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
languageThe 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
langNameThe language name must be an is 639-1 name

The documentation for this class was generated from the following files: