WordPress / WordPress/pattern-directory

Remove Translation strings when pattern is unpublished

Open
#452 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

i18n
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

Describe the bug
When a pattern is unpublished, strings are not updated to remove the reference to the pattern, and strings that are unique to the pattern are not obsoleted.

To Reproduce
Steps to reproduce the behavior:

  1. Unpublish a pattern that's been translated
  2. Observe strings within the GlotPress project

Expected behavior
Unsure....

Unpublished Patterns should have their strings removed from GlotPress either...

  • Immediately
  • After xx days

I'm not sure how often patterns will be unpublished, and expected to be re-instated, but removing the string immediately might cause more effort for translators.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue by unpublishing a translated pattern and observing the strings in the GlotPress project. Resolve whether strings should be removed immediately or after a delay, then identify the pattern-unpublishing flow and its GlotPress integration. Done means the agreed policy is implemented and pattern-specific strings no longer retain an invalid reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
localization
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.