MythTV
master
|
#include <mythlocale.h>
Public Member Functions | |
MythLocale (const QString &localeName=QString()) | |
void | ReInit () |
QString | GetCountryCode () const |
QString | GetCountry () const |
ISO3166 2-letter. More... | |
QString | GetNativeCountry () const |
Name of country in English. More... | |
QString | GetLanguageCode () const |
Name of country in the native language. More... | |
QString | GetLanguage () const |
ISO639 2-letter. More... | |
QString | GetNativeLanguage () const |
Name of language in English. More... | |
QString | GetLocaleCode () const |
Name of language in that language. More... | |
QLocale | ToQLocale () const |
bool | LoadDefaultsFromXML (void) |
void | SaveLocaleDefaults (bool overwrite=false) |
void | ResetToLocaleDefaults (void) |
void | ResetToStandardDefaults (void) |
QString | GetLocaleSetting (const QString &key) |
Private Types | |
using | SettingsMap = QMap< QString, QString > |
Private Member Functions | |
void | Init (const QString &localeName=QString()) |
Private Attributes | |
QString | m_localeCode |
bool | m_defaultsLoaded {false} |
QLocale | m_qtLocale |
SettingsMap | m_globalSettings |
SettingsMap | m_hostSettings |
Definition at line 12 of file mythlocale.h.
|
private |
Definition at line 45 of file mythlocale.h.
|
explicit |
Definition at line 16 of file mythlocale.cpp.
void MythLocale::ReInit | ( | ) |
Definition at line 52 of file mythlocale.cpp.
Referenced by MythCoreContext::ReInitLocale().
QString MythLocale::GetCountryCode | ( | ) | const |
Definition at line 57 of file mythlocale.cpp.
Referenced by AddCertifications(), DLNA::DLNAProfileName(), GetCountry(), GetNativeCountry(), MythBDBuffer::OpenFile(), ScanCountry::ScanCountry(), ScanNetwork::ScanNetwork(), and MetaGrabberScript::SetDefaultArgs().
QString MythLocale::GetCountry | ( | ) | const |
ISO3166 2-letter.
Definition at line 64 of file mythlocale.cpp.
Referenced by MythTranslation::getLanguages().
QString MythLocale::GetNativeCountry | ( | ) | const |
Name of country in English.
Definition at line 69 of file mythlocale.cpp.
Referenced by MythTranslation::getLanguages().
QString MythLocale::GetLanguageCode | ( | ) | const |
Name of country in the native language.
Definition at line 74 of file mythlocale.cpp.
Referenced by GetLanguage(), and GetNativeLanguage().
QString MythLocale::GetLanguage | ( | ) | const |
ISO639 2-letter.
Definition at line 81 of file mythlocale.cpp.
Referenced by MythTranslation::getLanguages().
QString MythLocale::GetNativeLanguage | ( | ) | const |
Name of language in English.
Definition at line 86 of file mythlocale.cpp.
Referenced by MythTranslation::getLanguages().
|
inline |
Name of language in that language.
Definition at line 27 of file mythlocale.h.
Referenced by MythCoreContext::InitLocale(), MythCoreContext::ReInitLocale(), and MythCoreContext::SaveLocaleDefaults().
|
inline |
Definition at line 29 of file mythlocale.h.
Referenced by MythCoreContext::GetQLocale(), MythCoreContext::InitLocale(), PrevRecordedList::LoadDates(), and MythCoreContext::ReInitLocale().
bool MythLocale::LoadDefaultsFromXML | ( | void | ) |
Definition at line 91 of file mythlocale.cpp.
Referenced by GetLocaleSetting(), and SaveLocaleDefaults().
Definition at line 171 of file mythlocale.cpp.
Referenced by ResetToLocaleDefaults(), and MythCoreContext::SaveLocaleDefaults().
void MythLocale::ResetToLocaleDefaults | ( | void | ) |
Definition at line 193 of file mythlocale.cpp.
void MythLocale::ResetToStandardDefaults | ( | void | ) |
Definition at line 198 of file mythlocale.cpp.
QString MythLocale::GetLocaleSetting | ( | const QString & | key | ) |
Definition at line 205 of file mythlocale.cpp.
Referenced by LanguageSelection::Load().
|
private |
Definition at line 21 of file mythlocale.cpp.
Referenced by MythLocale(), and ReInit().
|
private |
Definition at line 41 of file mythlocale.h.
Referenced by GetCountryCode(), GetLanguageCode(), Init(), and LoadDefaultsFromXML().
Definition at line 42 of file mythlocale.h.
Referenced by GetLocaleSetting(), LoadDefaultsFromXML(), and SaveLocaleDefaults().
|
private |
Definition at line 43 of file mythlocale.h.
Referenced by Init().
|
private |
Definition at line 46 of file mythlocale.h.
Referenced by GetLocaleSetting(), LoadDefaultsFromXML(), and SaveLocaleDefaults().
|
private |
Definition at line 47 of file mythlocale.h.
Referenced by GetLocaleSetting(), LoadDefaultsFromXML(), and SaveLocaleDefaults().