Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Editor] Fix editor double translations. #96130

Closed
wants to merge 2 commits into from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Aug 26, 2024

Depends on #96105

Fixes #96105 (comment), exported project behavior should not be changed, but I'm not sure if it's the best way to handle it.

Moves localized number formatting methods from TextServer to TranslationServer.
Adds support for localized numbers pseudolocalization.
Adds editor pseudolocalization support.
@bruvzg bruvzg added this to the 4.x milestone Aug 26, 2024
Comment on lines +1306 to +1310
#ifdef TOOLS_ENABLED
if ((Engine::get_singleton()->is_editor_hint() || Engine::get_singleton()->is_project_manager_hint()) && !is_part_of_edited_scene()) {
return false;
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need auto translation in the editor.

As mentioned in #96105 (comment), to solve double translation, it's better to change most TTR calls to TTRC.

ETRs are for engine strings that could be included in the user generated POT files, like strings in file dialogs and the color picker.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, switching to TTRC is probably better, disabling atr seems to disable some of the inspector translations.

@bruvzg bruvzg closed this Aug 27, 2024
@akien-mga akien-mga removed this from the 4.x milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants