Files
WSL/tools
Ben Hillis 5bc0e0184e Use inline _locComment syntax for locked tokens in en-US WSL.adml (#40544)
The standalone <!-- {Locked="..."} --> XML comments above each <string>
are silently ignored by the POMXML parser used by TouchdownBuildTask, so
locked tokens were getting translated in every locale (NetworkingMode
values "Mirrored"/"None"/"NAT", ".wslconfig" key names, etc.).

Move the directives inside each <string> using the inline form the parser
actually honors:
  <string id="X"><!-- _locComment='{Locked="Foo"}' -->...Foo...</string>
  <string id="NetworkingModeMirrored"><!-- _locComment="{Locked}" -->Mirrored</string>

Update validate-localization.py to extract tokens from the inline form so
the baseline-token-presence check still catches authoring mistakes.

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-15 00:32:38 +00:00
..