Public Member Functions | |
LocalizationInfo | coerceBestMatchingLocalization (const QString &localeName) const |
const LocalizationInfo & | currentLocalization () const |
bool | isCurrentlyLoaded (const QString &localeName) const |
QList< LocalizationInfo > | loadLocalizationsList (const QStringList &definitionsFileSearchDirs) |
bool | loadTranslation (const QString &localeName) |
Static Public Member Functions | |
static Localization * | get () |
Public Attributes | |
QList< LocalizationInfo > | localizations |
Definition at line 33 of file localization.h.
LocalizationInfo Localization::coerceBestMatchingLocalization | ( | const QString & | localeName | ) | const |
Find best matching locale from currently loaded translations. Falls back to LocalizationInfo::PROGRAM_NATIVE if no match is found.
Definition at line 85 of file localization.cpp.