Table Of Contents

Previous topic

ed_glob

Next topic

LangListCombo

This Page

phoenix_title ed_i18n

This file is a module for managing translations and the internationalization of the program.

METHODS:
  • GetAvailLocales: Returns a list of canonical names of available locales

  • GetLocaleDict: Returns a dictionary consisting of canonical names for

    keys and language ids for values.


class_hierarchy Inheritance Diagram

Inheritance diagram for module ed_i18n

Inheritance diagram of ed_i18n


function_summary Functions Summary

GetAvailLocales Gets a list of the available locales that have been installed
GetLangId Gets the ID of a language from the description string. If the
GetLocaleDict Takes a list of cannonical locale names and by default returns a

class_summary Classes Summary

LangListCombo Combines a langlist and a BitmapComboBox

Functions



GetAvailLocales()

Gets a list of the available locales that have been installed for the editor. Returning a list of strings that represent the canonical names of each language.

Returns:list of all available local/languages available


GetLangId(lang_n)

Gets the ID of a language from the description string. If the language cannot be found the function simply returns the default language

Parameters:lang_n – Canonical name of a language
Returns:wx.LANGUAGE_*** id of language


GetLocaleDict(loc_list, opt=OPT_NO_OP)

Takes a list of cannonical locale names and by default returns a dictionary of available language values using the canonical name as the key. Supplying the Option OPT_DESCRIPT will return a dictionary of language id’s with languages description as the key.

Parameters:
  • loc_list – list of locals
  • opt – option for configuring return data
Returns:

dict of locales mapped to wx.LANGUAGE_*** values