You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~ this_is_a_node_title
Nathan: Hi! here is {{Globalscript.hello("Planet")}} (and its broken when translated) [ID:t48df5178b2]
Nathan: This should always work though: {{Globalscript.hello()}} [ID:tb303d056d4]
=> END
where Globalscript is a global with the following script:
all lines in the dialogue work fine when not translated. (here locale en)
when a translation (e.g. de) is loaded, the first line will display the raw text from the dialogue line.
the second line works fine
Affected version
Dialogue Manager version: v2.44.2
Godot version: 4.3 stable
To Reproduce
Steps to reproduce the behavior:
download the minimal project
this project doesn't contain any scenes, so open the dialogue file
launch the dialogue tester via "Test Dialogue" Button
you should run into the bug on the first dialogue line right away as the testing locale is set to "de" in project settings.
set the testing locale setting to en (internationalization/locale/test)
now launch the dialogue tester again
see that without translation the content of the {{}} brackets is replaced as expected in the first dialogue line
Expected behavior
The content of the {{}} brackets is replaced as expected in any language even if it contains quotes
It looks like the issue was that the translation file had special quotes in it instead of regular quotes. I've added support for detecting special quotes in #729 if you wanted to give it a try.
Describe the bug
(minimal project attached below)
consider this dialogue file:
where Globalscript is a global with the following script:
all lines in the dialogue work fine when not translated. (here locale en)
when a translation (e.g. de) is loaded, the first line will display the raw text from the dialogue line.
the second line works fine
Affected version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The content of the {{}} brackets is replaced as expected in any language even if it contains quotes
minimal project
dialogue-translation-bug.zip
The text was updated successfully, but these errors were encountered: