godot_dialogue_manager icon indicating copy to clipboard operation
godot_dialogue_manager copied to clipboard

Expressions do not support translations.

Open IgorShmoops opened this issue 6 months ago • 1 comments

Expressions in {{curvy brackets}} do not evaluate if a translation CSV is used.

  • Dialogue Manager version: v3.6.3
  • Godot version: 4.5

Expected behavior Evaluation should work in translated text: こんにちは, {{Localization.PRONOUN.JA.HESHE}} - これが主人公への呼びかけ方です! Result: Variable is not evaluated (output is the same)

To fix that, in resolved_godo_data.gd, line 55: replace elif title.begins_with("{{"): with elif title.find("{{") != -1:

IgorShmoops avatar Jun 10 '25 08:06 IgorShmoops

For expressions to be resolved in translated dialogue they need to exist in the base dialogue.

What does your dialogue file look like?

nathanhoad avatar Jun 12 '25 11:06 nathanhoad

I've updated the runtime to now automatically parse expressions when the base dialogue was empty.

nathanhoad avatar Jun 21 '25 03:06 nathanhoad