languagemanager

The languagemanager module provides all the translation settings and language file loading for OpenLP.

class openlp.core.utils.languagemanager.LanguageManager[source]

Bases: builtins.object

Helper for Language selection

auto_language = False
static find_qm_files()[source]

Find all available language files in this OpenLP install

static get_language()[source]

Retrieve a saved language to use from settings

static get_qm_list()[source]

Return the list of available translations

static get_translator(language)[source]

Set up a translator to use in this instance of OpenLP

Parameters:language – The language to load into the translator
static init_qm_list()[source]

Initialise the list of available translations

static language_name(qm_file)[source]

Load the language name from a language file

Parameters:qm_file – The file to obtain the name from
static set_language(action, message=True)[source]

Set the language to translate OpenLP into

Parameters:
  • action – The language menu option
  • message – Display the message option