-
-
Notifications
You must be signed in to change notification settings - Fork 7
Text localizations (libx files)
kromster80 edited this page Jan 5, 2025
·
6 revisions
Knights Province features new text localization format (libx files).
New features include:
-
#
- optional comments -
abc123:
- alphanumeric keys -
[domain.system.etc]
- optional hierarchical categories
Allowed characters for keys are 0..9
, a..z
, A..Z
, _
and .
. Keys are case-insensitive.
Simple style with plain keys:
armory_desc:In here a carpenter will make wooden shields for your warriors
armory_name:Armory workshop
Simple style with nested keys:
armory.desc:In here a carpenter will make wooden shields for your warriors
armory.name:Armory workshop
Simple style with backwards-compatible numeric keys:
1:In here a carpenter will make wooden shields for your warriors
2:Armory workshop
Example with comment and tree-like categories:
#Knights Province localization file
#Padding is purely visual thing. Format does not care about it
[category]
[category.subcategory]
desc:Blacksmith forges iron armor elements for your army
name:Armor smithy
[category.subcategory]
desc:In here a carpenter will make wooden shields for your warriors
name:Armory workshop