Skip to content

Proposed fix - "Fix #456: Localize export-to-text placeholders and ad…#471

Closed
iclectic wants to merge 0 commit intoNeoCoderMatrix86:developmentfrom
iclectic:feature-branch
Closed

Proposed fix - "Fix #456: Localize export-to-text placeholders and ad…#471
iclectic wants to merge 0 commit intoNeoCoderMatrix86:developmentfrom
iclectic:feature-branch

Conversation

@iclectic
Copy link
Copy Markdown

Fixes #456: Localize export-to-text placeholders

  • Added localized placeholder entries to GenerateExportDialog.resx and GenerateExportDialog.de.resx
  • Updated GenerateExportDialog.razor to use localized placeholder keys for dropdowns
  • Added German translations for placeholder labels
  • Technical placeholder values remain unchanged for export logic

<MudMenuItem
OnClick="() => InsertCuesheetPlaceholder(placeholder.Value)"
Title="@(_localizer["Placeholder_"+placeholder.Key] + " (" + placeholder.Value + ")")">
@_localizer["Placeholder_" + placeholder.Key]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please just localize the placeholder without the preffix "Placeholder_", like for example "Artist" instead of "Placeholder_Artist".

void InsertTrackPlaceholder(string token)
{
if (exportOptions?.SelectedExportProfile != null)
exportOptions.SelectedExportProfile.SchemeTracks += token;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
exportOptions.SelectedExportProfile.SchemeTracks += token;
{
exportOptions.SelectedExportProfile.SchemeTracks += token;
}

void InsertCuesheetPlaceholder(string token)
{
if (exportOptions?.SelectedExportProfile != null)
exportOptions.SelectedExportProfile.SchemeHead += token;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
exportOptions.SelectedExportProfile.SchemeHead += token;
{
exportOptions.SelectedExportProfile.SchemeHead += token;
}

@NeoCoderMatrix86
Copy link
Copy Markdown
Owner

Please also add an End2End Test inside the AudioCuesheetEditor.End2EndTests Project IndexTests.cs, maybe inside the ChangeLanguageAsync Test.

@NeoCoderMatrix86 NeoCoderMatrix86 self-assigned this Jul 21, 2025
@iclectic iclectic closed this Aug 11, 2025
@iclectic iclectic deleted the feature-branch branch August 11, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export to text placeholders are not localized

2 participants