Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.33

10 bytes added, 19:53, 27 November 2018
Mods localization support
From 1.33 mods can add new localization strings. To do this inside directory '''/locale/$language$/''' you have to create localization module. The module file name should be called that way: '''local_module.$mod_name$.sii''' for example '''local_module.mod_awesome_jobs.sii'''. The file must define single unit of class '''localization_db'''. Example Example:
 
{{Note|$language$ should be name of the language the localization is for for example: british english is '''en_gb''', polish is '''pl_pl''' etc.}}
<pre>
</pre>
If you do so your mod should be properly localized now. {{Note|Mods localization cannot override strings. That means localization defined by mod with highest priority will be used.}}{{Tip|Our system does not fallback untranslated tokens to english so you have to define localization for all languages supported by the game. Currently game supports following list of the languages.
<pre>bg_bg, ca_es, cs_cz, da_dk, de_de, el_gr, en_gb, en_us, es_es, es_la, et_ee, eu_es, fi_fi, fr_fr, gl_es, hr_hr, hu_hu, it_it, ja_jp, ka_ge, ko_kr, lt_lt, lv_lv, mk_mk, nl_nl, no_no, pl_pl, pl_si, pt_br, pt_pt, ro_ro, ru_ru, sk_sk, sl_sl, sr_sp, sr_sr, sv_se, tr_tr, uk_uk, vi_vn, zh_cn, zh_tw</pre>
If you cannot afford translating your mod to each language we recommend to at least copy english localization to rest of them. If you do so your mod should be properly localized now. {{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

Navigation menu