Add a "Correct translation" menu item to EditorHelp#116352
Add a "Correct translation" menu item to EditorHelp#116352Rindbee wants to merge 1 commit intogodotengine:masterfrom
EditorHelp#116352Conversation
| if (p_option == MENU_CORRECT_TRANSLATION) { | ||
| StringBuilder sb; | ||
| sb.append("https://hosted.weblate.org/translate/godot-engine/godot-class-reference/"); | ||
| sb.append(TranslationServer::get_singleton()->get_locale()); |
There was a problem hiding this comment.
Will this be affected by the editor language setting? I'm not familiar with the internals of the engine language setting and how it's used for that side
There was a problem hiding this comment.
Yes, the locale tag obtained here is consistent with that displayed by interface/editor/editor_language. Because the tag for Simplified Chinese is zh_Hans (not zh_CN) now.
There was a problem hiding this comment.
And it's not based on the locale of the machine but instead on that setting?
There was a problem hiding this comment.
When interface/editor/editor_language is set to auto, it is based on the locale of the machine.
There was a problem hiding this comment.
TranslationServer::get_singleton() is current locale of editor (or running project), OS::get_locale() is locale of the system.
There was a problem hiding this comment.
I think I'm not making myself clear:
If you set interface/editor/editor_language to something other than auto, does TranslationServer::get_singleton()->get_locale() return the assigned value in that property, or the locale?
This menu item will search for the selected text on weblate to help users easily correct/improve the translation of class references.
936b9f6 to
0482677
Compare
This menu item will search for the selected text on weblate to help users easily correct/improve the translation of class references.
Peek.2026-02-16.20-46.mp4
Note that the selected text does not contain bbcode. It's best to avoid searching for text that has been modified with bbcode.
Translation also requires user participation to improve it. Using it in combination with #116007 might make it easier to contribute translations.