Skip to content

chore(i18n): regenerate translation catalogs with wp i18n tooling - #128

Merged
katsar0v merged 1 commit into
mainfrom
chore/regenerate-pot
Jul 28, 2026
Merged

chore(i18n): regenerate translation catalogs with wp i18n tooling#128
katsar0v merged 1 commit into
mainfrom
chore/regenerate-pot

Conversation

@katsar0v

Copy link
Copy Markdown
Owner

Summary

Regenerates the translation catalogs with the official WP-CLI i18n tooling instead of hand edits, as a follow-up to #127:

  • mail-system.pot regenerated with wp i18n make-pot — source references now carry exact file:line numbers and entries follow source order, so future regenerations produce minimal, deterministic diffs.
  • bg_BG.po / de_DE.po synced with wp i18n update-po.
  • .mo files recompiled with wp i18n make-mo (composer translations).

What changed in the catalogs

  • No translated string was modified or removed — verified by diffing msgid/msgstr pairs against main.
  • 38 stale msgids (strings no longer present in any gettext call in the code) were dropped.
  • Strings that exist in the code but were missing from the catalogs (e.g. database-repair notices) were added as untranslated entries — they rendered in English before and still do, but are now visible to translators.
  • All 20 context-qualified status entries from fix(i18n): correct Bulgarian grammar for status labels #127 are preserved with translations intact.

Verification

  • php vendor/bin/phpunit -c tests/phpunit.xml — 274 passing (includes StatusTranslationsTest, which asserts every _x() context in the source is present and translated in all three catalogs)
  • composer phpcs — clean
  • .mo output matches wp i18n make-mo byte-for-byte (Translations workflow check)

🤖 Generated with Claude Code

Regenerate mail-system.pot with wp i18n make-pot and sync bg_BG/de_DE
with wp i18n update-po instead of hand-editing, so source references
carry exact file:line numbers and entries follow source order. Stale
strings no longer present in the code were dropped; strings that were
missing from the catalogs were added as untranslated entries. No
existing translation was changed or removed. MO files recompiled with
wp i18n make-mo.
@katsar0v
katsar0v merged commit 901e85a into main Jul 28, 2026
6 checks passed
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