Module localization

Source
Expand description

§Syntax of paradox localization file

Paradox mainly uses yml as the format of their localizaiton files. However, there is a weird syntax in files. Specifically, the ‘:’ might be followed with a number. For example: ABC:0 "This is ABC". I haven’t worked out the meaning of the number, however, it adds no difficulty to the parser. Here the parser just gives an ambiguous result.

Modules§

types
Expose the types (LocList, Loc, Entry) to the outside. For convenience.

Structs§

Entry
Entry, e.g., ABC:0 "This is ABC".
Loc
Language, e.g., l_english:.
LocList
A localization file. Begin with a language specifier, following with a list of localization entries.

Functions§

parse_file
Parse a given paradox file.