Skip to content

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

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

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

Conversation

@timse201
Copy link
Copy Markdown

@timse201 timse201 commented Apr 3, 2026

related to trac ticket: 6320

fixes: 8217

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.

Fix invalid property translation_status. This prevents translations from being imported with null and the fallback by GlotPress to current.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

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.

@timse201 timse201 changed the title related to trac ticket: 6320 fixes: https://meta.trac.wordpress.org/ticket/8217 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. Plugin Directory - translation sync: save overwritten strings as old Apr 3, 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