The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+3 votes

Is it possible to display translations inside the editor?
Right now it seems they are displayed only when running the game.

in Engine by (262 points)

It would also be very useful to display translations inside the inspector.

2 Answers

+2 votes
Best answer

After looking into this, I found that the TranslationServer (as of now) seems to be always disabled in the editor.

This is because in editor_node.cpp there is a call: TranslationServer::get_singleton()->set_enabled(false)

After commenting that out and rebuilding Godot I am now able to see translations. I'm not sure why it has to be disabled in the editor though.

UPDATE: I found out that Label's set_text method instead of storing the key will store the translation. This means with the above modification, Labels will lose the correct key value in their text property and change it into the translated value. This is why the TranslationServer is disabled in the editor. The better solution though would be to have Label store the key and only translate when rendering (or possibly have a local cache of the translation)

by (262 points)
edited by
+1 vote

Pretty old question, but is the first page that appears on my searchs when I need something related to "translations" and "editor" in godot.

I made this plugin that simulates translation server in editor:

by (16 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.