• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

PsyKzz

Recruit
16 Badges
May 13, 2016
6
0
  • Magicka
  • Teleglitch: Die More Edition
  • War of the Vikings
  • Cities: Skylines
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Magicka 2
  • Cities: Skylines - After Dark
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • BATTLETECH
  • Surviving Mars
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • BATTLETECH: Flashpoint
  • Prison Architect
I just can't work out how to use localisation accurately. I can't work out what my .yml filename should be or what my source key should be.

So far i understand it as

Filename
mod_name_l_english.yml

Contents
l_english:
source_key:0 "Translation text"

With the number after the source_key being the number of parameters to interpret within the string.


What am i missing?
 
- without the first line, you need a space in every following line at beginning.
- make sure, that the format of the file is UTF-8-BOM
- its highly recommend to use notepad++ for working in yml-files, other editors tend to include hidden signs which breaks the syntax and/or use a wrong fileformat
- the l in l_english (filename and first line) is a small letter L, not a big i.

the number after stringname is a marker for p´dox translation tool and is only necessary for picking the correct arguments by the game. which number you use in your mod is your choice, it has no function and is only a placeholder.
 
Last edited:
  • Just to be sure in the other files its a single space, which is what i've done.
  • I'll double check the BOM mark but i should be using a copy of the original files with the other entries stripped for just my own (its just how i started)
  • I'm using sublime text 3, should be capable
  • Yup its a small L not a big i.
 
I had that problem. And now it seems to have resolved itself...sorta. I've made a flags "mod" and to add a new category I had to add it to l_spanish.yml, as I have the game in that language (and it seems the yml files for other languages are a bit finnicky).

If I kept the file as is with my line of code added, it worked flawlesly. If I deleted everything minus the

Code:
l_spanish:
FLAG_CATEGORY_test:0 "Test"

It didn't work, and yeah that was keeping the 1 space before the FLAG.

After seeing this post I've tried saving again the "barebones" .yml file with sublime and, know what? it worked!

Seems Atom does strange things, as mate0815 mentioned...