Skip to content

[rel/4.5] Backport release-compatible OneLoc translations (#11910) - #11973

Merged
Amaury Levé (Evangelink) merged 1 commit into
rel/4.5from
dev/amauryleve/release-4-5-localizations
Oct 16, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
rel/4.5from
dev/amauryleve/release-4-5-localizations

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Backport the release-compatible portion of #11910, OneLoc source commit 714ef0fd2f6132e51f0cb1761dea11a91bb46378, to rel/4.5 for MSTest 4.5.2 / Microsoft.Testing.Platform 2.5.2.

This is one independent commit based directly on release commit e9811507a9c73791b190188321c3511bd2e3abe4, not stacked on another backport.

Included scope

54 producer-exact target/state updates in 24 existing catalogs (54 inserted lines / 54 deleted lines):

Owning project Catalogs / locales Updates
MSTest.TestAdapter Polish PlatformAdapterResources 1
MSTest.Analyzers Czech (cs), French, Polish Resources 12
Microsoft.Testing.Extensions.AzureDevOpsReport French AzureDevOpsResources 2
Microsoft.Testing.Extensions.PackagedApp All 13 existing ExtensionResources locales 33
Microsoft.Testing.Platform Czech, French, Japanese, Polish, Turkish, Simplified Chinese PlatformResources 6

The six MTP updates translate the existing IncompleteInformationalResponse resource. No new resource IDs, neutral RESX entries, source strings, notes, code, API, SDK/dependency versions, or unrelated backports are included.

Excluded: all 150 #11910 target updates for unreleased F#/coverage resources; the MSTEST0090-only translations in #11914 and #11925; the #11916 environment fix and #11924 diagnostic links.

Generator provenance

Imported the exact producer-generated versions of the 24 catalogs from 714ef0fd2f6132e51f0cb1761dea11a91bb46378, then ran every owning project's UpdateXlf target against the unchanged release RESX files. Authoritative regeneration removed main-only units while retaining all 54 applicable OneLoc translations, including the six mixed MTP catalogs. No XLF targets were hand-edited or invented.

Used the release-pinned .NET SDK 12.0.100-alpha.1.26480.103, Arcade SDK 12.0.0-beta.26505.2, and Microsoft.DotNet.XliffTasks/12.0.0-beta.26505.2. SDK/toolset initialization used eng\common\tools.ps1 / InitializeDotNetCli / InitializeToolset; package, HTTP, scratch, and CLI-home caches were process-local under this worktree's artifacts\localization-validation, not shared caches.

Local validation

Every final command below exited 0. These are local results, not a claim that CI has passed.

Project argument ($project) Selected framework ($tfm) UpdateXlf Restore + build
src\Platform\Microsoft.Testing.Platform\Microsoft.Testing.Platform.csproj net8.0 Passed Passed
src\Platform\Microsoft.Testing.Extensions.AzureDevOpsReport\Microsoft.Testing.Extensions.AzureDevOpsReport.csproj net8.0 Passed Passed
src\Platform\Microsoft.Testing.Extensions.PackagedApp\Microsoft.Testing.Extensions.PackagedApp.csproj net8.0 Passed Passed
src\Analyzers\MSTest.Analyzers\MSTest.Analyzers.csproj netstandard2.0 Passed Passed
src\Adapter\MSTest.TestAdapter\MSTest.TestAdapter.csproj net8.0 Passed Passed

The following command templates were executed for each row, substituting its project/framework and a distinct binlog path for every invocation:

.\.dotnet\dotnet.exe msbuild $project -restore -t:UpdateXlf "-p:TargetFramework=$tfm" "-p:TargetFrameworks=$tfm" -p:Configuration=Release -m -nr:false -v:minimal "-bl:$uniqueBinlog"

.\.dotnet\dotnet.exe msbuild $project -t:Restore -p:Configuration=Release -p:SkipUapTargetFramework=true -m -nr:false -v:minimal "-bl:$uniqueBinlog"
.\.dotnet\dotnet.exe msbuild $project -t:Build "-p:TargetFramework=$tfm" -p:Configuration=Release -p:SkipUapTargetFramework=true -m -nr:false -v:minimal "-bl:$uniqueBinlog"

Restore intentionally runs without global TFM overrides so fixed-netstandard2.0 analyzer/source-generator references retain their actual target. Initial validation attempts combining targeted restore/build hit NETSDK1005; the final separate-restore commands above resolved that invocation issue without repository source changes.

The trusted localization guard was extracted to session scratch from commit 3ebfc8dc5cb48afe704cac6bce1b5ef0b834a12e, rather than backported into this release diff:

git -c core.autocrlf=false -c core.eol=lf archive --format=zip --output="$scratch\localization-guard-source-lf.zip" 3ebfc8dc5cb48afe704cac6bce1b5ef0b834a12e .github\scripts\check_localization.py .github\scripts\test_check_localization.py
Expand-Archive -LiteralPath "$scratch\localization-guard-source-lf.zip" -DestinationPath "$scratch\localization-guard" -Force
python "$scratch\localization-guard\.github\scripts\check_localization.py" --repository "$PWD"
git diff --check

Results: guard byte-for-byte provenance verified; baseline and final guard each checked 364 catalogs / 0 findings, including neutral correspondence, placeholders, and locked tokens; git diff --check passed.

Additional session-local evidence commands:

python "$scratch\verify_localization_backport.py" --verify
& "$scratch\verify_localization_satellites.ps1"

The strict XML audit verified all 54 changed targets/states exactly match the OneLoc source while every other XML node, resource ID, source, note, and tracked file remains at the release baseline. Direct ResourceReader inspection verified all 54 exact translations in 24 built satellite assemblies, without resource fallback. The audit manifest, verification scripts, and uniquely named MSBuild binlogs are retained with the session; binlogs are under artifacts\localization-validation\logs.

Limits: representative Release builds and compiled resources were checked, not a full multi-TFM solution build, NuGet pack/acceptance run, Windows app-model execution, or CI run. No product behavior or protocol changed, and no remaining producer dependency blocks these translations.

Import 54 existing-resource translations from OneLoc commit
714ef0f and regenerate catalogs against
the unchanged rel/4.5 resources with the owning projects' UpdateXlf targets.

Exclude main-only F#, coverage-threshold, and MSTEST0090 resource units.
No source strings, resource IDs, notes, SDK versions, or other backports change.

Co-authored-by: dotnet-oneloc-localization[bot] <310689744+dotnet-oneloc-localization[bot]@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9e7c078b-7665-4426-9645-862756f9d18e
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Oct 16, 2026

@github-actions github-actions Bot 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.

Note

🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.

Review outcome: No actionable findings — this is a clean, mechanical OneLoc translation backport.

Change classification

  • Localization only: 24 .xlf catalogs across MSTest.TestAdapter, MSTest.Analyzers, Microsoft.Testing.Extensions.AzureDevOpsReport, Microsoft.Testing.Extensions.PackagedApp, and Microsoft.Testing.Platform — 54 <target state="new"> → <target state="translated"> transitions with translated text (pl, cs, fr, de, es, it, ja, ko, pt-BR, ru, tr, zh-Hans, zh-Hant).

Confidence at a glance

🟢 Localization — clean
  • Why it applies: Every changed line is inside an .xlf <target> element; dimension 9 (Localization & Resources) is the only applicable dimension.
  • Evidence: Diffed every one of the 24 file patches programmatically: no <source> or <note> elements were touched in any hunk (only <target state="new">...</target> → <target state="translated">...</target> pairs), the count of removed/added <target> lines matches 1:1 in every file (54 pairs total), every {Locked="..."} token declared in the corresponding <note> occurs verbatim inside the new translated text (checked across all 54 units, e.g. DisplayName, ArgumentsDisplayName, --server, --dotnet-test-*, MSBuild, TESTINGPLATFORM_PACKAGEDAPP_LAUNCHER=never, the learn.microsoft.com link), and no malformed/unbalanced <target> tags or stray replacement characters were found.
  • Gap or disposition: This review validates XML structural integrity and locked-token preservation mechanically; it does not independently re-verify prose-level translation accuracy for languages outside reviewer fluency, consistent with the PR's own stated local-validation scope (UpdateXlf + resource-reader verification, not a full CI run).
  • Action: None required.

⚪ Not applicable: Algorithmic Correctness, Threading & Concurrency, Security & IPC Contract Safety, Public API & Binary Compatibility, Performance & Allocations, Cross-TFM Compatibility, Resource & IDisposable Management, Defensive Coding at Boundaries, Test Isolation, Assertion Quality, Flakiness Patterns, Test Completeness & Coverage, Data-Driven Test Coverage, Code Structure & Simplification, Naming & Conventions, Documentation Accuracy, Analyzer & Code Fix Quality, IPC Wire Compatibility, Build Infrastructure & Dependencies, Scope & PR Discipline, PowerShell Scripting Hygiene (no code, tests, build infra, or dependency files are touched by this PR).

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 16, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 16, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 16, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Oct 16, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit bfed640 into rel/4.5 Oct 16, 2026
20 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/release-4-5-localizations branch October 16, 2026 10:21
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Oct 16, 2026
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.

2 participants