Ludeon Forums

Ludeon Forums

  • December 18, 2018, 07:18:54 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: "gender ?" operator in ThoughtDef  (Read 274 times)

Elevator

  • Drifter
  • **
  • Posts: 65
  • Refugee
    • View Profile
"gender ?" operator in ThoughtDef
« on: October 10, 2018, 06:36:14 AM »

It would be great if conditional formatting worked with ThoughtDef objects. In this case translators can write like that:
Code: [Select]
<DivorcedMe.stages.divorced_me.label>{0_gender ? развёлся : развелась} со мной</DivorcedMe.stages.divorced_me.label>instead of:
Code: [Select]
<DivorcedMe.stages.divorced_me.label>развелся(ась) со мной</DivorcedMe.stages.divorced_me.label>This will provide cleaner thought messages and help to improve translations to different languages.
Logged

ison

  • Developer
  • Planetologist
  • *****
  • Posts: 2136
    • View Profile
Re: "gender ?" operator in ThoughtDef
« Reply #1 on: December 06, 2018, 08:58:43 AM »

Logged