Skip to content

i18n(tr/cs): fix format-string errors — clear mismatched fuzzy msgstrs#12988

Merged
mekarpeles merged 2 commits into
masterfrom
i18n/fix-errors-tr-cs-pl-uk
Jun 22, 2026
Merged

i18n(tr/cs): fix format-string errors — clear mismatched fuzzy msgstrs#12988
mekarpeles merged 2 commits into
masterfrom
i18n/fix-errors-tr-cs-pl-uk

Conversation

@mekarpeles

Copy link
Copy Markdown
Member

Summary

Fixes format-string validation errors in the tr and cs locales by clearing fuzzy msgstr entries whose placeholder sets don't match their msgid. These errors cause the i18n-messages validate check to fail and can break string interpolation on the live site.

pl and uk were also audited — both validate cleanly on current master (stale error counts in our state file).

Changes

Locale Errors cleared Before After
tr 1 7 errors 0 errors ✓
cs 1 5 errors 0 errors ✓
pl 0 already clean
uk 0 already clean

Cleared msgstrs are left as empty (untranslated) so they fall back to English, which is safe. A native speaker can supply a correct translation in a follow-up.

Validation

  • i18n-messages validate tr — 0 errors ✓
  • i18n-messages validate cs — 0 errors ✓
  • test_po_files.py -k "tr" — 2529 passed ✓
  • test_po_files.py -k "cs" — 146 passed ✓
  • pre-commit clean on both files ✓

🤖 Fix applied by Slater, via PAM (Open Library's Project AI Manager)

@mekarpeles
mekarpeles marked this pull request as ready for review June 19, 2026 17:32
@mekarpeles
mekarpeles merged commit 483c633 into master Jun 22, 2026
7 of 8 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