Open main menu

Changes

Games/ETS2/Modding guides/1.33

571 bytes added, 19:48, 27 November 2018
Mods localization support
<code>
SiiNunit
{
localization_db : .localization
{
key[]: "chassis" # This is localization token, you can use it by typing @@chassis@@.
val[]: "Chassis" # This is its value in the language. For every language this value can be different.
 
key[]: "truck_cabin" # Another localization token.
val[]: "Cabin" # And its value - as you can notice its always pair of key and val attributes.
# ...
}
}
 
</code>
{{Tip|$language$ should be name of the language the localization is for for example: british english is '''en_gb''', polish is '''pl_pl''' etc.}}
{{Note|Mods localization cannot override strings. That means localization defined by mod with highest priority will be used.}}
developer
1,626
edits