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

Fix float constant descriptions not translating on macOS. #101592

Merged

Conversation

Ivorforce
Copy link
Contributor

This should fix float descriptions (PI, E etc.) not translating properly on macOS.
The reason is that TTR is called statically, at a time where the translation server is not yet started. This leads to TTR returning the input string unchanged.

I discovered it while working on #101547, where it caused an actual problem (because at the time of TTR call, not even the StringName table is initialized).

@Ivorforce Ivorforce force-pushed the float-constant-defs-translate-macos branch from 5fe132d to 2766543 Compare January 17, 2025 08:33
@Repiteo Repiteo merged commit 7b1ed52 into godotengine:master Jan 17, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 17, 2025

Thanks!

@Ivorforce Ivorforce deleted the float-constant-defs-translate-macos branch January 17, 2025 23:16
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.

4 participants