Operating system or device - Godot version:
Fedora 24 - 64 Bits. Godot 2.1
Issue description (what happened, and what was expected):
What happened: Label's text was changed by translation string with these key.
What was expected: Label text was changed by a number (or by any other string).
Steps to reproduce:
Umm... that's a feature actually :smile: Not sure if there is any way to get it off though.
I think that it'd be better if the API allow me to decide when get the translation and put it in to a control and when set a string directly in to this. I need to implement a countdown whit strings numbers, i'll put numbers on translations sheet and implement a matching logic between the number and the key but i don't think that it is the best solution. Thanks a lot!
IMO it should stay as it us unless an override is added (like raw_set). The main benefit of the translation system in godot is that it replaces all matches with essentially no setup needed ahead of time. If you don't want it replaced then it shouldn't be in the translations :-p
I understand your point of view but i'm implementing translations keys with numbers. In this case i need to set numbers 3, 2 and 1 in a label control (countdown). Should i change my translations keys? i don't know... IMO this feature decreases cohesion of GUI components that has to worry about translations responsibilities.
First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about it here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.
This just needs better documentation. It can't be changed because otherwise it's impossible to use translated text when setting via editor. You would have to set via script to be able to translate, making it very cumbersome.
Moved the documentation need to godotengine/godot-docs#1932.
Most helpful comment
Umm... that's a feature actually :smile: Not sure if there is any way to get it off though.