MythTV master
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
MythTranslation Class Reference

#include <libmythbase/mythtranslation.h>

Collaboration diagram for MythTranslation:
[legend]

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 Member Functions

static void load_real (const QString &module_name)
 

Static Protected Attributes

static class MythTranslationPrivate d
 

Detailed Description

Definition at line 10 of file mythtranslation.h.

Member Function Documentation

◆ getLanguages()

QMap< QString, QString > MythTranslation::getLanguages ( void  )
static

◆ LanguageChanged()

bool MythTranslation::LanguageChanged ( void  )
static

Definition at line 88 of file mythtranslation.cpp.

Referenced by reload().

◆ load()

void MythTranslation::load ( const QString &  module_name)
static

◆ load_real()

void MythTranslation::load_real ( const QString &  module_name)
staticprotected

Definition at line 40 of file mythtranslation.cpp.

Referenced by load(), and reload().

◆ reload()

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 98 of file mythtranslation.cpp.

Referenced by load(), reloadTheme(), and resetTheme().

◆ unload()

void MythTranslation::unload ( const QString &  module_name)
static

Remove a QTranslator previously installed using load().

Definition at line 76 of file mythtranslation.cpp.

Referenced by load_real().

Member Data Documentation

◆ d

MythTranslationPrivate MythTranslation::d
staticprotected

Definition at line 35 of file mythtranslation.h.

Referenced by LanguageChanged(), load(), load_real(), reload(), and unload().


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