Module localization

Module localization 

Source
Expand description

Validate .yml localization files

StructsΒ§

LanguageIter
An iterator over the variants of Language
Languages
LocaEntry
One parsed key: value line from the localization values.
Localization
Database of all loaded localization keys and their values, for all supported languages.

EnumsΒ§

Language
List of languages that are supported by the game engine.
LocaValue
MacroValue

ConstantsΒ§

LATIN_SCRIPT_LANGS πŸ”’
These are the languages in which it’s reasonable to present an ascii name unchanged.

StaticsΒ§

LANG_LIST πŸ”’
L_LANGS πŸ”’

FunctionsΒ§

get_file_lang πŸ”’
is_builtin_macro πŸ”’
List of known built-in keys used between $...$ in any localization. This list is used to avoid reporting false positives.
is_replace_path πŸ”’
It’s been tested that localization/replace/english and localization/english/replace both work
normal_capitalization_for_name πŸ”’
Check that the string only has capital letters at the start or after a space or hyphen
only_latin_script πŸ”’
Return true iff langs only contains languages in which it’s reasonable to present an ascii name unchanged.