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 translation domain #95787

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Add translation domain #95787

merged 3 commits into from
Sep 20, 2024

Commits on Sep 17, 2024

  1. Add translation domain

    timothyqiu committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    68d494e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5d147b View commit details
    Browse the repository at this point in the history
  3. Make editor use translation domains

    How editor plugins use this feature:
    1. Pick a unique translation domain name.
    2. `_enter_tree()`: load translations into that translation domain.
    3. Call `set_translation_domain()` for its root UI node.
    4. `_exit_tree()`: remove that translation domain.
    
    Plugins can also set the translation domain to `godot.editor` for
    nested nodes that should use editor translations. `EditorFileDialog`
    automatically does this.
    timothyqiu committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    818acb4 View commit details
    Browse the repository at this point in the history