()
| 100 | DEFAULT_LOCALE = "en_GB" |
| 101 | |
| 102 | def parse_dictionaries(): |
| 103 | tree = ET.parse("res/values/dictionaries.xml") |
| 104 | root = tree.getroot() |
| 105 | return set(( it.text for it in root.findall('*[@name="dictionaries_locale"]/item') )) |
| 106 | |
| 107 | # Available dictionares of the form "de" or "de_CH". |
| 108 | available_dictionaries = parse_dictionaries() |