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

Add Node.translation_domain #11610

Open
Synzorasize opened this issue Jan 19, 2025 · 0 comments
Open

Add Node.translation_domain #11610

Synzorasize opened this issue Jan 19, 2025 · 0 comments

Comments

@Synzorasize
Copy link

Describe the project you are working on

I am using Translations as a resource in my project.

Describe the problem or limitation you are having in your project

This was inspired by godotengine/godot#99258.

If a user wants to split their Translation resources by topic or want to be able to access two Translations of the same locale, then they can use TranslationDomains. However, currently, they can only set a Node to use a specific domain through code, which may be inefficient for some workflows.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

If it is able to be set in the inspector, then that would save the user from having to do it in code since it would be accessible in the inspector.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

There is already _translation_domain, but that can't be used directly, of course. Therefore, if translation_domain is added, then it can be set whenever _translation_domain is changed and it would automatically be seen in the inspector.

If this enhancement will not be used often, can it be worked around with a few lines of script?

You can use _get_property_list for this, but it would be too complex for some workflows.

Is there a reason why this should be core and not an add-on in the asset library?

TranslationDomains were originally created for editor plugins to use, but I think it could be useful outside of there, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants