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

Make ploc translations predictable #16924

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Make ploc translations predictable #16924

merged 1 commit into from
Mar 25, 2024

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Mar 23, 2024

It appears as if our official ploc translations use a per-file hash
as the seed for generating random pseudo-localization characters.
This works poorly for us since we have these translations hooked up
to our CI to submit PRs with the latest changes. We do want to get
the latest proper translations but merging 1000s of lines of ploc
changes every time is unneccessary.

This PR replicates LocStudio's pseudo-localizations in PowerShell
but it uses a per-key seed for the RNG.

@lhecker lhecker added the Area-Build Issues pertaining to the build system, CI, infrastructure, meta label Mar 23, 2024
$source = Join-Path $_.Directory "../en-US/$($_.Name)"
$target = $_

$ploc = ./tools/ConvertTo-PseudoLocalization.ps1 -Path $source
Copy link
Member Author

Choose a reason for hiding this comment

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

(This file is at the very end of the diff.)

@DHowett DHowett merged commit 77d5e23 into main Mar 25, 2024
20 checks passed
@DHowett DHowett deleted the dev/lhecker/ploc branch March 25, 2024 18:42
DHowett pushed a commit that referenced this pull request Apr 16, 2024
(cherry picked from commit 77d5e23)
Service-Card-Id: 92350444
Service-Version: 1.19
DHowett pushed a commit that referenced this pull request Apr 16, 2024
(cherry picked from commit 77d5e23)
Service-Card-Id: 92350470
Service-Version: 1.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

3 participants