• 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?
 

mate0815

Field Marshal
62 Badges
Feb 2, 2007
3.165
259
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Sengoku
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Prison Architect
  • Europa Universalis III
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • East India Company
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
- 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:

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
  • 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.
 

Dibujor

Sergeant
91 Badges
Jan 10, 2014
93
24
www.dibujor.com
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Stellaris: Nemesis
  • BATTLETECH: Season pass
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Megacorp
  • Stellaris: Lithoids
  • Europa Universalis IV
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Europa Universalis IV: Pre-order
  • BATTLETECH - Backer
  • BATTLETECH
  • Crusader Kings II
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Colonel
  • Shadowrun: Dragonfall
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Stellaris: Galaxy Edition
  • Pillars of Eternity
  • Cities: Skylines
  • Age of Wonders III
  • Age of Wonders: Planetfall Sign Up
  • Europa Universalis IV: Mandate of Heaven
  • Tyranny - Bastards Wound
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rights of Man
  • BATTLETECH - Beta Backer
  • Europa Universalis IV: Dharma
  • BATTLETECH: Heavy Metal
  • Prison Architect
  • Crusader Kings II: Charlemagne
  • Warlock: Master of the Arcane
  • Europa Universalis IV: El Dorado
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
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...