-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Better support for unicode strings in TTR #78909
Conversation
If we go with this solution, it likely also needs an equivalent for |
That reminds me, could we replace uses of |
I think we could, at least for untranslated strings. |
I guess we can also add an extra case here to handle |
Ok I pushed other methods and also simplified the implementation. |
Yeah, that's technically more portable. As |
godotengine/godot-editor-l10n#6 should be sufficient to fix this I believe. |
Yeah, closing. |
This string
godot/editor/plugins/editor_resource_tooltip_plugins.cpp
Line 109 in 4642448
is not included in translation files, because U breaks the regex. The U is necessary to make the string parsed as unicode, because TTR converts it automatically to String.
I came up with as solution that involves the least changes - I just added an overload for TTR that takes
char *
and automatically interprets it as UTF-8. This probably means that all translated strings will now be parsed as unicode, not sure if brings any drawbacks (maybe it's slower than just making a String, idk).