LanguageSettings Class Reference

#include <langsettings.h>

List of all members.


Detailed Description

Definition at line 6 of file langsettings.h.


Static Public Member Functions

static void load (QString module_name)
 Load a QTranslator for the user's preferred language.
static void unload (QString module_name)
 Remove a QTranslator previously installed using load().
static void prompt (bool force=false)
 Ask the user for the language to use.
static void reload ()
 Reload all active translators based on the current language setting.
static QStringList getLanguages ()
 List the languages supported by Myth.
static void fillSelections (SelectSetting *widget)
 Fill out a settings widget with the supported language settings.

Static Protected Attributes

static class
LanguageSettingsPrivate 
d

Member Function Documentation

void LanguageSettings::load ( 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 71 of file langsettings.cpp.

Referenced by MythPluginManager::init_plugin(), main(), mythplugin_init(), reload(), and MythContextPrivate::TempMainWindow().

void LanguageSettings::unload ( QString  module_name  )  [static]

Remove a QTranslator previously installed using load().

Definition at line 89 of file langsettings.cpp.

Referenced by load().

void LanguageSettings::prompt ( bool  force = false  )  [static]

Ask the user for the language to use.

If a language was already specified at the last load(), it will not ask unless force is set.

Definition at line 101 of file langsettings.cpp.

Referenced by main(), and MythContextPrivate::TempMainWindow().

void LanguageSettings::reload ( void   )  [static]

Reload all active translators based on the current language setting.

Call this after changing the language pref in the database.

Definition at line 118 of file langsettings.cpp.

Referenced by reloadTheme(), and LangEditorSetting::save().

QStringList LanguageSettings::getLanguages ( void   )  [static]

List the languages supported by Myth.

The list will always be an even number of items; the language name precedes its language code.

Definition at line 138 of file langsettings.cpp.

Referenced by fillSelections().

void LanguageSettings::fillSelections ( SelectSetting widget  )  [static]

Fill out a settings widget with the supported language settings.

Convenience wrapper around getLanguages() functionality.

Definition at line 183 of file langsettings.cpp.

Referenced by LangEditorSetting::load(), and MythLanguage().


Member Data Documentation

Definition at line 38 of file langsettings.h.

Referenced by load(), prompt(), reload(), and unload().


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

Generated on Sat Dec 18 05:16:04 2010 for MythTV by  doxygen 1.5.5