Ludeon Forums

Ludeon Forums

  • November 25, 2020, 09:03:39 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Translation Not Working - Unsure Of Reason  (Read 363 times)

GeodesicDragon

  • Muffalo
  • *
  • Posts: 6
  • Refugee
    • View Profile
Translation Not Working - Unsure Of Reason
« on: April 24, 2020, 02:59:52 AM »

I am attempting to translate my mod - Reverse Engineered Mechanoid Shields - into other languages, starting with French, but I've run into a problem.

From what I've seen by looking at other mods and the Example_Traits.xml file, you do something like this:

Code: [Select]
<Defs>
<ThingDef>
    <defName>ExampleDef</defName>
<label>Testing</label>
<description>Hello World!</description>
<!-- And the rest -->
</ThingDef>
</Defs>

Then to localise it you would do this:

Code: [Select]
<LanguageData>
<ExampleDef.label>Essai</ExampleDef.label>
<ExampleDef.description>Bonjour le monde!</ExampleDef.description>
</LanguageData>

For my bullet shield I have this:

Code: [Select]
<Defs>
<ThingDef ParentName="BuildingBase">
    <defName>PlayerShieldGeneratorBullets</defName>
<label>bullet shield (human made)</label>
<description>A shielding device, based on mechanoid tech, which will block incoming bullets within a certain radius. Requires power.</description>
<!-- And the rest -->
</ThingDef>
</Defs>

Code: [Select]
<LanguageData>
<PlayerShieldGeneratorBullets.label>bouclier pare-balles (fabriqué par l'homme)</PlayerShieldGeneratorBullets.label>
<PlayerShieldGeneratorBullets.description>Un dispositif de protection, basé sur la technologie mécanoïde, qui bloquera les balles entrantes dans un certain rayon. Nécessite de l'énergie.</PlayerShieldGeneratorBullets.description>
</LanguageData>

I start the game in French, load up my test save and see that while everything else about the game is translated, the shields are not.

I'm not getting any errors, so I can't for the life of me figure out what's wrong. Because I have a tendency to not notice things that are screamingly obvious to others, I know I've missed something... but what?

Any and all help is appreciated.
« Last Edit: April 24, 2020, 05:06:06 AM by GeodesicDragon »
Logged
I'm the kind of player who makes everyone else look like a gaming god.

My Mods: REMS and OPAC

TeiXeR

  • Super Tester
  • Drifter
  • ***
  • Posts: 29
  • Refugee
    • View Profile
Re: Translation Not Working - Unsure Of Reason
« Reply #1 on: May 06, 2020, 09:39:33 AM »

Have you tried the tool RimTrans?

https://ludeon.com/forums/index.php?topic=30949.0
Logged