MCPcopy Create free account
hub / github.com/Julow/Unexpected-Keyboard / parse_dictionaries

Function parse_dictionaries

gen_method_xml.py:102–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100DEFAULT_LOCALE = "en_GB"
101
102def 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".
108available_dictionaries = parse_dictionaries()

Callers 1

gen_method_xml.pyFile · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected