Skip to content

Plugin Directory - translation sync: save overwritten strings as old#553

Open
timse201 wants to merge 3 commits intoWordPress:trunkfrom
timse201:patch-2
Open

Plugin Directory - translation sync: save overwritten strings as old#553
timse201 wants to merge 3 commits intoWordPress:trunkfrom
timse201:patch-2

Conversation

@timse201
Copy link

@timse201 timse201 commented Feb 18, 2026

trac ticket: 6320

If we sync strings from dev to stable, the overwritten (fuzzy) string in stable will fire gp_translation_prepare_for_save again. Since there is no check for old strings, this one becomes current again because it adopts the status from the map. As a result, there are 2 current strings in stable.

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props timse201.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Fix invalid property translation_status. This prevents translations from being imported with null and the fallback by GlotPress to current.
@timse201 timse201 changed the title save old strings as old and not as current fix invalid property and save old strings as old and not as current Mar 21, 2026
@timse201 timse201 changed the title fix invalid property and save old strings as old and not as current Plugin Directory - translation sync: fix invalid property and save old strings as old Mar 25, 2026
@timse201 timse201 changed the title Plugin Directory - translation sync: fix invalid property and save old strings as old Plugin Directory - translation sync: fix invalid property and save overwritten strings as old Mar 25, 2026
@timse201 timse201 changed the title Plugin Directory - translation sync: fix invalid property and save overwritten strings as old Plugin Directory - translation sync: save overwritten strings as old Mar 25, 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.

1 participant