languagemanager¶
The languagemanager
module provides all the translation settings and language file loading for OpenLP.
-
class
openlp.core.common.languagemanager.
LanguageManager
[source]¶ Bases:
object
Helper for Language selection
-
auto_language
= False¶
-
static
get_translators
(language)[source]¶ Set up a translator to use in this instance of OpenLP
Parameters: language – The language to load into the translator
-
-
openlp.core.common.languagemanager.
format_time
(text, local_time)[source]¶ Workaround for Python built-in time formatting function time.strftime().
time.strftime() accepts only ascii characters. This function accepts unicode string and passes individual % placeholders to time.strftime(). This ensures only ascii characters are passed to time.strftime().
Parameters: - text – The text to be processed.
- local_time – The time to be used to add to the string. This is a time object