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

Support multiple translations (plug-in and documentation) #252

Open
SettingSail opened this issue Apr 5, 2024 · 4 comments
Open

Support multiple translations (plug-in and documentation) #252

SettingSail opened this issue Apr 5, 2024 · 4 comments
Labels
kind/enhancement New feature or request
Milestone

Comments

@SettingSail
Copy link

Description

Hello! I am a beginner who does not understand code and have used UE Blueprint. UE Blueprint supports Chinese, but UE Engine is not friendly for small independent games. Therefore, I have a liking for Godot Engine. However, I think learning code takes a long time, so I chose visual development. However, it seems that the Orchestrator script developed by your team does not support Chinese. I hope it would be great if you and your team could produce Simplified Chinese. Thank you!

Implementation ideas

No response

@Naros
Copy link
Member

Naros commented Apr 5, 2024

Hi @SettingSail, I just wish to confirm that you're requesting the plug-in to be translated and not the documentation, correct?

@Naros
Copy link
Member

Naros commented Apr 6, 2024

So, from an editor plug-in perspective, there are some Godot Editor problems.

First, after the Godot Editor loads its translations, the TranslationServer service is immediately disabled. This prevents any further translations from being possible. What makes matters worse is that there is no way from GDScript, C#, or GDExtension to turn the TranslationServer service back on when the editor disables it.

Usually, in Godot engine code, one would use tr("text") or tr_n("text", "plural text"), where tr and tr_n are special functions that handle the localization concerns; however, with how these functions are written combined with the disabling of the server that is responsible for translations, this normal approach isn't possible.

The only solution that I can see works is that we explicitly write our own TranslationServer implementation that loads our .po file based on the editor locale setting and then at each call site, rather than relying on tr and tr_n, we'd need to write our own glue to interface directly with the loaded Translation resource. While doable, this is a substantial undertaking, and it completely goes against what Godot should allow editor plug-ins to do.

I've raised this concern on the Godot Rocket.Chat in the #editor channel. Let's see what reaction we get and if there is possibly a workaround that isn't immediately obvious other than what I just outlined above.

@Naros
Copy link
Member

Naros commented Apr 7, 2024

We need to test KoBeWi's work on godotengine/godot/pull/77104 to see if this satisfies our needs.

@Naros Naros changed the title We need a Chinese translation, thank you! Support multiple translations (plug-in and documentation) Apr 7, 2024
@Naros Naros transferred this issue from CraterCrash/godot-orchestrator Apr 15, 2024
@Naros Naros transferred this issue from CraterCrash/godot-orchestrator-docs Apr 15, 2024
@Naros
Copy link
Member

Naros commented Apr 15, 2024

So we the new documentation at https://github.com/Vahera/godot-orchestrator-docs, we can now begin the translation step to Chinese. Would you be able to help with that translation effect @SettingSail ?

@Naros Naros added this to the 2.1 milestone Apr 15, 2024
@Naros Naros added the kind/enhancement New feature or request label Apr 15, 2024
@Naros Naros modified the milestones: 2.1, 2.2 Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants