|
MythTV
0.26-pre
|
#include <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. | |
| static void | unload (const QString &module_name) |
| Remove a QTranslator previously installed using load(). | |
| static void | reload () |
| Reload all active translators based on the current language setting. | |
| static bool | LanguageChanged (void) |
Static Protected Attributes | |
| static class MythTranslationPrivate | d |
Definition at line 10 of file mythtranslation.h.
| QMap< QString, QString > MythTranslation::getLanguages | ( | void | ) | [static] |
Definition at line 122 of file mythtranslation.cpp.
Referenced by LanguageSelection::Load(), and MythLanguage().
| void MythTranslation::load | ( | const QString & | module_name | ) | [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 MythContextPrivate::Init(), MythPluginManager::init_plugin(), main(), reload(), run_backend(), and MythContextPrivate::TempMainWindow().
| void MythTranslation::unload | ( | const QString & | module_name | ) | [static] |
Remove a QTranslator previously installed using load().
Definition at line 77 of file mythtranslation.cpp.
Referenced by load().
| void MythTranslation::reload | ( | ) | [static] |
Reload all active translators based on the current language setting.
Call this after changing the language pref in the database.
Definition at line 99 of file mythtranslation.cpp.
Referenced by reloadTheme(), and resetTheme().
| bool MythTranslation::LanguageChanged | ( | void | ) | [static] |
Definition at line 89 of file mythtranslation.cpp.
Referenced by reload().
MythTranslationPrivate MythTranslation::d [static, protected] |
Definition at line 33 of file mythtranslation.h.
Referenced by LanguageChanged(), load(), reload(), and unload().
1.7.6.1