MythTV
master
|
#include <libmythbase/mythtranslation.h>
Static Public Member Functions | |
static QMap< QString, QString > | getLanguages (void) |
static void | load (const QString &module_name) |
Load a QTranslator for the user's preferred language. More... | |
static void | unload (const QString &module_name) |
Remove a QTranslator previously installed using load(). More... | |
static void | reload () |
Reload all active translators based on the current language setting. More... | |
static bool | LanguageChanged (void) |
Static Protected Attributes | |
static class MythTranslationPrivate | d |
Definition at line 10 of file mythtranslation.h.
|
static |
Definition at line 119 of file mythtranslation.cpp.
Referenced by AudioLanguage(), V2Config::GetLanguages(), LanguageSelection::Load(), and MythLanguage().
|
static |
Load a QTranslator for the user's preferred language.
The module_name indicates which .qm file to load.
Definition at line 38 of file mythtranslation.cpp.
Referenced by anonymous_namespace{mythcontext.cpp}::GUISettingsCache::clearOverrides(), MythPluginManager::init_plugin(), MythContext::Impl::LanguagePrompt(), anonymous_namespace{mythcontext.cpp}::GUISettingsCache::loadOverrides(), main(), reload(), and run_backend().
|
static |
Remove a QTranslator previously installed using load().
Definition at line 76 of file mythtranslation.cpp.
Referenced by load().
|
static |
Reload all active translators based on the current language setting.
Call this after changing the language pref in the database.
Definition at line 98 of file mythtranslation.cpp.
Referenced by reloadTheme(), and resetTheme().
|
static |
Definition at line 88 of file mythtranslation.cpp.
Referenced by reload().
|
staticprotected |
Definition at line 33 of file mythtranslation.h.
Referenced by LanguageChanged(), load(), reload(), and unload().