Skip to content

fix(i18n): repair corrupted Romanian catalog so it parses again - #41467

Merged
sfirke merged 1 commit into
masterfrom
fix/i18n-ro-corruption
Jun 27, 2026
Merged

fix(i18n): repair corrupted Romanian catalog so it parses again#41467
sfirke merged 1 commit into
masterfrom
fix/i18n-ro-corruption

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

The Romanian catalog (ro/LC_MESSAGES/messages.po) is corrupted on master with hard syntax errors:

  • Four msgstr values end in a stray double quote, e.g. msgstr "Indicator salvat"", msgstr[2] "Șterse %(num)d de teme"". The unescaped quote terminates the string early.
  • A duplicate msgid "Color Metric" definition (identical msgstr).

polib.pofile() raises on the first of these, which is what broke the translation-index builder (it aborted the whole build on this one file), and msgfmt/pybabel reject it too. This removes the four stray quotes and the duplicate entry. The catalog now parses cleanly with polib and compiles with pybabel.

Found while running the AI backfill tooling — ro was silently excluded from every other language's translation context because it couldn't be parsed.

Out of scope (intentionally): with the syntax errors gone, strict msgfmt --check-format now surfaces a handful of pre-existing plural format-spec mismatches (msgstr[0] dropping the %s/%(num)d count). That's a separate, non-fatal class already present in pl, pt_BR, zh, and zh_TW, and is left for a dedicated cleanup rather than mixed into this corruption fix.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A (translation catalog)

TESTING INSTRUCTIONS

Before, this raises OSError: unescaped double quote found:

python -c "import polib; polib.pofile('superset/translations/ro/LC_MESSAGES/messages.po')"

After, it parses (4462 entries) and pybabel compile -i superset/translations/ro/LC_MESSAGES/messages.po -o /tmp/ro.mo no longer errors on syntax.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

ro/LC_MESSAGES/messages.po had four msgstr values ending in a stray double
quote (e.g. "Indicator salvat"") and a duplicate "Color Metric" message
definition. These are hard syntax errors: polib.pofile() raises on them, which
broke the translation index builder, and they fail msgfmt/pybabel parsing.

Remove the trailing quotes and the duplicate entry. The catalog now parses
cleanly. (Strict `msgfmt --check-format` still reports pre-existing plural
format-spec mismatches, the same non-fatal class already present in pl, pt_BR,
zh, and zh_TW; those are left for a separate cleanup.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the i18n Namespace | Anything related to localization label Jun 26, 2026
@bito-code-review

bito-code-review Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #eb2202

Actionable Suggestions - 0
Filtered by Review Rules

Bito filtered these suggestions based on rules created automatically for your feedback. Manage rules.

  • superset/translations/ro/LC_MESSAGES/messages.po - 1
Review Details
  • Files reviewed - 1 · Commit Range: df0eea8..df0eea8
    • superset/translations/ro/LC_MESSAGES/messages.po
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@netlify

netlify Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit df0eea8
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a3f12770b675f0008abf202
😎 Deploy Preview https://deploy-preview-41467--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.45%. Comparing base (d8bcc66) to head (df0eea8).
⚠️ Report is 36 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #41467    +/-   ##
========================================
  Coverage   64.44%   64.45%            
========================================
  Files        2662     2663     +1     
  Lines      145828   145997   +169     
  Branches    33645    33665    +20     
========================================
+ Hits        93979    94098   +119     
- Misses      50147    50182    +35     
- Partials     1702     1717    +15     
Flag Coverage Δ
hive 39.22% <ø> (-0.01%) ⬇️
mysql 57.97% <ø> (+0.03%) ⬆️
postgres 58.04% <ø> (+0.03%) ⬆️
presto 40.80% <ø> (-0.01%) ⬇️
python 59.47% <ø> (+0.02%) ⬆️
sqlite 57.67% <ø> (+0.01%) ⬆️
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sfirke
sfirke merged commit 21999bb into master Jun 27, 2026
61 checks passed
@sfirke
sfirke deleted the fix/i18n-ro-corruption branch June 27, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Namespace | Anything related to localization size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants