wesnoth/data/schema/languages.cfg
2023-05-02 21:04:41 -04:00

28 lines
683 B
INI

{./macros.cfg}
[wml_schema]
{./types/basic.cfg}
{./types/lists.cfg}
[type]
name="locale"
value=<<[a-z]{2,4}(_[A-Z]{2}|_\d{3})?(@[a-z]+)?|C>>
[/type]
[type]
name="textdir"
value="ltr|rtl"
[/type]
{LIST_TYPE locale}
[tag]
name="root"
[tag]
name="locale"
min=1
max=infinite
{REQUIRED_KEY name string}
{REQUIRED_KEY locale locale}
{REQUIRED_KEY percent unsigned}
{DEFAULT_KEY dir textdir ltr}
{SIMPLE_KEY sort_name string}
{SIMPLE_KEY alternates locale_list}
[/tag]
[/tag]
[/wml_schema]