LocalizationInfo Class Reference

Public Member Functions

void fromString (const QString &str)
 
bool isValid () const
 
bool operator!= (const LocalizationInfo &o2) const
 
bool operator== (const LocalizationInfo &o2) const
 
QString toString () const
 

Static Public Member Functions

static LocalizationInfo findBestMatch (const QList< LocalizationInfo > &candidates, const QString &localeName)
 

Public Attributes

QString countryCodeName
 The same as code used for country flags in IP2C.
 
QString localeName
 Compliant with language_country standard. See QLocale::name()
 
QString niceName
 Name that will be displayed to user.
 

Static Public Attributes

static const LocalizationInfo PROGRAM_NATIVE
 
static const LocalizationInfo SYSTEM_FOLLOW
 

Detailed Description

Definition at line 30 of file localizationinfo.h.

Member Data Documentation

QString LocalizationInfo::countryCodeName

The same as code used for country flags in IP2C.

Definition at line 48 of file localizationinfo.h.

QString LocalizationInfo::localeName

Compliant with language_country standard. See QLocale::name()

Definition at line 53 of file localizationinfo.h.

QString LocalizationInfo::niceName

Name that will be displayed to user.

Definition at line 57 of file localizationinfo.h.

const LocalizationInfo LocalizationInfo::PROGRAM_NATIVE
static
Initial value:
= {
"GBR", "en", "English"
}

The default localization - English - is hardcoded into the program and we don't need to have it in any .def file.

Definition at line 42 of file localizationinfo.h.

const LocalizationInfo LocalizationInfo::SYSTEM_FOLLOW
static
Initial value:
= {
"", "system", "system default"
}

Not a real localization, but a special value that tells the program to try to always follow the current language of the OS.

Definition at line 37 of file localizationinfo.h.


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