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 i18n in AudioStreamInteractive transition editor #91693

Merged
merged 1 commit into from
May 8, 2024

Conversation

timothyqiu
Copy link
Member

  • Don't translate user-defined clip names.
  • Add missing i18n for some UI strings.
  • Also fixed error when selecting top-right "From/To" cell.
  • Also removed unused header includes.

Comment on lines -223 to +226
txt += TTR(L"⮕ Same");
to_time = TTR("Same", "Transition Time Position");
} break;
case AudioStreamInteractive::TRANSITION_TO_TIME_START: {
txt += TTR(L"⮕ Start");
to_time = TTR("Start", "Transition Time Position");
} break;
case AudioStreamInteractive::TRANSITION_TO_TIME_PREVIOUS_POSITION: {
txt += TTR(L"⮕ Prev");
to_time = TTR("Prev", "Transition Time Position");
Copy link
Member Author

@timothyqiu timothyqiu May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. U"" literals are used instead of L"" literals throughout the codebase.
  2. Using L"" literal inside TTR() is not supported by extraction scripts.
  3. Moved into a separate format string below so strings are easier to translate.

- Don't translate user-defined clip names.
- Add missing i18n for some UI strings.
- Also fixed error when selecting top-right "From/To" cell.
- Also removed unused header includes.
@akien-mga akien-mga merged commit f349418 into godotengine:master May 8, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the interactive-editor branch May 8, 2024 10:38
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.

None yet

2 participants