Package horizons :: Package gui :: Module i18n
[hide private]
[frames] | no frames]

Module i18n

source code

Functions [hide private]
translate_widget(untranslated, filename)
Load widget translations from file.
source code
replace_attribute(widget, attribute, text) source code
update_translations(message) source code
Variables [hide private]
  log = logging.getLogger("i18n")
  translated_widgets = {}
Function Details [hide private]

translate_widget(untranslated, filename)

source code 

Load widget translations from file. Its entries look like {element_name: (attribute, translation)}. The translation is not applied to inactive widgets. Check update_all_translations for the application.