Skip to content

Add translator context for resource lifecycle command labels - #22632

Open
Adam Ratzman (adamint) wants to merge 1 commit into
mainfrom
adamint-command-string-translator-comments
Open

Adam Ratzman (adamint) wants to merge 1 commit into
mainfrom
adamint-command-string-translator-comments

Conversation

@adamint

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: dace96cab03f8dc00cc0179ac9125f9965928daf

Dimension Assessment Rationale
Change confidence 9/10 ↑ XLIFF generation succeeded; all 13 language files contain the four notes and review states.
↑ English strings and translation text are unchanged.
↓ Translation corrections depend on the next OneLoc sync.
Diagnosis confidence 9/10 ↑ Polish StartName is currently a noun meaning beginning; its translator note was empty.
Evidence fit 8/10 ↑ Directly addresses the reported mistranslation.
↓ Does not address the separate dashboard language-selection behavior.

Description

Resource lifecycle command labels need verb context: Polish currently translates Start as Początek (beginning). Add translator comments identifying Start, Stop, Restart, and Rebuild as imperative button labels.

Regenerate the 13 CommandStrings XLF files using the normal XLIFF target. The generated notes mark these entries needs-review-translation for the next OneLoc sync; no translations or English string values were edited. Other labels in this file and the nearby browser command resources already describe their actions unambiguously and are unchanged.

Relates to #22441. This prepares translation corrections, not a fix for the issue's separate language-selection behavior. No new dependencies.

Validation:

  • dotnet build src\Aspire.Hosting\Aspire.Hosting.csproj /t:UpdateXlf --no-restore --verbosity quiet — passed after restoring the project, and passed again on repeat generation.
  • XML comparison against HEAD before the change — passed: all four comments match generated notes in all 13 XLF files, all four entries are marked for translation review, and source/target text and unrelated entries are unchanged.
  • git diff --check -- src\Aspire.Hosting\Resources — passed.
  • Unit/scenario tests not run: translation metadata only; no runtime code or string-value changes.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22632

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22632"

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

53 / 101 PR test projects · 4 PR jobs, from 14 changed files.

Selected PR test projects (53 / 101)

Aspire.Cli.EndToEnd.Tests, Aspire.Hosting.Analyzers.Tests, Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Kusto.Tests, Aspire.Hosting.Azure.Provisioning.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Browsers.Tests, Aspire.Hosting.CodeGeneration.Go.Tests, Aspire.Hosting.CodeGeneration.Java.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.Rust.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Containers.Tests, Aspire.Hosting.DevTunnels.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.EntityFrameworkCore.Tests, Aspire.Hosting.Foundry.Tests, Aspire.Hosting.Garnet.Tests, Aspire.Hosting.Go.Tests, Aspire.Hosting.Java.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Kafka.Tests, Aspire.Hosting.Keycloak.Tests, Aspire.Hosting.Kubernetes.Tests, Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests, Aspire.Hosting.MongoDB.Tests, Aspire.Hosting.MySql.Tests, Aspire.Hosting.Nats.Tests, Aspire.Hosting.OpenAI.Tests, Aspire.Hosting.Oracle.Tests, Aspire.Hosting.Orleans.Tests, Aspire.Hosting.PostgreSQL.Tests, Aspire.Hosting.Python.Tests, Aspire.Hosting.Qdrant.Tests, Aspire.Hosting.RabbitMQ.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Redis.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests, Aspire.Hosting.Seq.Tests, Aspire.Hosting.SqlServer.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Hosting.Valkey.Tests, Aspire.Hosting.Yarp.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests, Infrastructure.Tests

Selected PR jobs (4)

cli-starter-validation, extension-e2e, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

⚠️ 51 of the 53 selected test projects come from a single change — src/Aspire.Hosting/Resources/CommandStrings.resx.

🔧 src/Aspire.Hosting/Resources/CommandStrings.resx (changed source)
→ 1 directly: Infrastructure.Tests
→ 50 via the project graph

show 50

Aspire.Hosting.Analyzers.Tests (2 hops), Aspire.Hosting.Azure.EntraId.Tests (2 hops), Aspire.Hosting.Azure.Kubernetes.Tests (2 hops), Aspire.Hosting.Azure.Kusto.Tests (2 hops), Aspire.Hosting.Azure.Provisioning.Tests (3 hops), Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Browsers.Tests (2 hops), Aspire.Hosting.CodeGeneration.Go.Tests, Aspire.Hosting.CodeGeneration.Java.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.Rust.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Containers.Tests (2 hops), Aspire.Hosting.DevTunnels.Tests (2 hops), Aspire.Hosting.Docker.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.EntityFrameworkCore.Tests (2 hops), Aspire.Hosting.Foundry.Tests (2 hops), Aspire.Hosting.Garnet.Tests (2 hops), Aspire.Hosting.Go.Tests (2 hops), Aspire.Hosting.Java.Tests (2 hops), Aspire.Hosting.JavaScript.Tests (2 hops), Aspire.Hosting.Kafka.Tests (2 hops), Aspire.Hosting.Keycloak.Tests (2 hops), Aspire.Hosting.Kubernetes.Tests (2 hops), Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests (2 hops), Aspire.Hosting.MongoDB.Tests (2 hops), Aspire.Hosting.MySql.Tests (2 hops), Aspire.Hosting.Nats.Tests (2 hops), Aspire.Hosting.OpenAI.Tests (2 hops), Aspire.Hosting.Oracle.Tests (2 hops), Aspire.Hosting.Orleans.Tests (2 hops), Aspire.Hosting.PostgreSQL.Tests (2 hops), Aspire.Hosting.Python.Tests (2 hops), Aspire.Hosting.Qdrant.Tests (2 hops), Aspire.Hosting.RabbitMQ.Tests (2 hops), Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Redis.Tests (2 hops), Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests (2 hops), Aspire.Hosting.Seq.Tests (2 hops), Aspire.Hosting.SqlServer.Tests (2 hops), Aspire.Hosting.Testing.Tests (2 hops), Aspire.Hosting.Tests (2 hops), Aspire.Hosting.Valkey.Tests (2 hops), Aspire.Hosting.Yarp.Tests (2 hops), Aspire.Playground.Tests

📦 affected project Aspire.Hosting.Dotnet
→ 2 tests: Aspire.Cli.EndToEnd.Tests, Aspire.Templates.Tests

📦 affected project Aspire.Hosting
→ 1 test: Aspire.Cli.EndToEnd.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Hosting.Redis
extension-e2e • src/Aspire.Hosting/Resources/CommandStrings.resx, src/Aspire.Hosting/Resources/xlf/CommandStrings.cs.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.de.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.es.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.fr.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.it.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.ja.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.ko.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.pl.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.pt-BR.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.ru.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.tr.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.zh-Hans.xlf, src/Aspire.Hosting/Resources/xlf/CommandStrings.zh-Hant.xlf
• affected project Aspire.Hosting
polyglot • affected project Aspire.Hosting
• affected project Aspire.Hosting.Azure.Provisioning
typescript-api-compat affected project Aspire.Hosting

Selection computed for commit dace96c.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the translator-context updates to resource lifecycle command labels.

No open issues 🎉

What changed in this PR

Adds translator context to Aspire.Hosting’s resource lifecycle command labels, preparing translation corrections related to #22441. This does not change displayed strings or address the dashboard’s separate language-selection behavior.

Changes:

  • Clarifies that Start, Stop, Restart, and Rebuild are action labels rather than nouns.
  • Propagates the notes to 13 generated XLF files and marks the affected translations needs-review-translation.
  • Preserves all English values and existing translation text pending the next OneLoc sync.
File Description
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.zh-Hant.xlf Updates Traditional Chinese translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.zh-Hans.xlf Updates Simplified Chinese translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.tr.xlf Updates Turkish translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.ru.xlf Updates Russian translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.pt-BR.xlf Updates Brazilian Portuguese translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.pl.xlf Updates Polish translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.ko.xlf Updates Korean translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.ja.xlf Updates Japanese translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.it.xlf Updates Italian translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.fr.xlf Updates French translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.es.xlf Updates Spanish translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.de.xlf Updates German translator notes and review states.
src/​Aspire.Hosting/​Resources/​xlf/​CommandStrings.cs.xlf Updates Czech translator notes and review states.
src/​Aspire.Hosting/​Resources/​CommandStrings.resx Adds source translator comments for the four lifecycle labels.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants