Ludeon Forums

Ludeon Forums

  • December 02, 2020, 05:26:30 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [solved] how to translate mod with class name?  (Read 323 times)

yiuaaa

  • Muffalo
  • *
  • Posts: 1
  • Refugee
    • View Profile
[solved] how to translate mod with class name?
« on: June 06, 2020, 01:59:21 AM »

for example:
Code: [Select]
<def>
<defName>example</defName>
<root Class="class1">
<nodes>
<li Class="class2">
<label>example label</label>
</li>
</nodes>
</root >
</def>

I have tried these two ways and both are not working.
Code: [Select]
<example.root.nodes.0.label>translated label</example.root.nodes.0.label>
<example.0.nodes.0.label>translated label</example.0.nodes.0.label>

Could someone help me?


solved by myself.
I need to add ".slateRef" to the end of the label. I don't know the reason, it is good if someone could explain it to me.
« Last Edit: June 06, 2020, 03:37:33 AM by yiuaaa »
Logged