deluge.i18n package

Submodules

deluge.i18n.languages module

deluge.i18n.util module

deluge.i18n.util.get_languages()
deluge.i18n.util.get_translations_path()

Get the absolute path to the directory containing translation files

deluge.i18n.util.set_language(lang)

Set the language to use.

gettext and GtkBuilder will load the translations from the specified language.

Parameters:

lang (str) – the language, e.g. “en”, “de” or “en_GB”

deluge.i18n.util.setup_mock_translation(warn_msg=None)
deluge.i18n.util.setup_translation()

Module contents

deluge.i18n.get_languages()
deluge.i18n.set_language(lang)

Set the language to use.

gettext and GtkBuilder will load the translations from the specified language.

Parameters:

lang (str) – the language, e.g. “en”, “de” or “en_GB”

deluge.i18n.setup_mock_translation(warn_msg=None)
deluge.i18n.setup_translation()