Skip to content

Refresh bundled translations from translate.wordpress.org - #3803

Draft
NathanaelJonesIreland wants to merge 2 commits into
masterfrom
chore/refresh-bundled-translations
Draft

NathanaelJonesIreland wants to merge 2 commits into
masterfrom
chore/refresh-bundled-translations

Conversation

@NathanaelJonesIreland

@NathanaelJonesIreland NathanaelJonesIreland commented Dec 2, 2026 •

Copy link
Copy Markdown

The five translation files bundled in languages/ date from 2018. WordPress loads a translate.wordpress.org language pack first when one exists. Four of these locales have no pack, so these old files are the only Formidable translations those sites get.

Locale Before (bundled 2018 file) After Change
ro_RO 401 strings 1,428 (50%) rebuilt from translate.wordpress.org
nb_NO 463 1,031 (36%) rebuilt from translate.wordpress.org
az 322, never loaded 360 (12%) renamed: WordPress's code for Azerbaijani is az, not az_AZ
hu_HU 59 243 (8%) rebuilt from translate.wordpress.org
sr_RS 586 removed its language pack (98%) always loads first, so this file was never used

The rebuilt files contain only strings already approved on translate.wordpress.org. Where an approved string is missing, the 2018 file fills the gap if it has that string (35 strings in total).

No code changes. formidable.pot is untouched.

Counts are strings in the compiled .mo. A few plural strings ("days", "weeks" …) have only their first form translated on translate.wordpress.org, so they stay in English until the plural forms are filled in there: az 22, hu_HU 21, nb_NO 4, ro_RO 6.

🤖 Generated with Claude Code

The five bundled .po/.mo files date from 2018. These locales have no
WordPress.org language pack (apart from Serbian), so the bundled files
are the only translations their sites get, and they cover 2-20% of
today's strings.

- hu_HU, nb_NO and ro_RO are rebuilt from the approved strings on
  translate.wordpress.org, with the 2018 file filling any gaps.
- az_AZ is replaced by az, the code WordPress uses for Azerbaijani;
  the az_AZ file was never loaded.
- sr_RS is removed: its language pack (98%) always loads first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@deepsource-io

deepsource-io Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 3630854...9757ae2 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Dec 3, 2026 3:59p.m. Review ↗
JavaScript Dec 3, 2026 3:59p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@Crabcyborg Crabcyborg added this to the 7.2 milestone Dec 2, 2026
@franky-the-going-merry franky-the-going-merry Bot added the franky-working Franky is actively reviewing this label Dec 2, 2026

@franky-the-going-merry franky-the-going-merry Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translation-only change, no code touched. I checked the parts a human reviewer can't eyeball in 41k lines:

  • Each .po compiles with msgfmt --check and every shipped .mo matches its .po (az, hu_HU, ro_RO: identical translated set; nb_NO: see 2 below).
  • Plural-Forms headers are right (ro_RO has the 3-form rule). Language: headers match the filenames. No fuzzy entries.
  • Placeholder (%s/%d/%1$s) and HTML tag counts match between msgid and msgstr in all four files, except the one entry below.
  • az_AZ -> az rename is correct, nothing in code references az_AZ or sr_RS. sr_RS does have a language pack for 7.1.1 on api.wordpress.org (updated 2026-11-18), so deleting the bundled file is safe. The other four locales have no pack, as the description says.
  • Not run: no live-site render in a Serbian/Romanian/etc. locale. Nothing in this PR is code, so I only verified the files.

Blocking:

  1. nb_NO drops the field name from a user-facing error (inline comment on languages/formidable-nb_NO.po). Before: %s må være unik. Now: må være unikt, with no %s.

Non-blocking:
2. nb_NO has 4 plural entries (day/days, week/weeks, month/months, year/years) with msgstr[1] "". msgfmt skips those, so they are in the .po but not the .mo and the strings stay English. The PR's "1,031 strings" for nb_NO doesn't match either file (.po has 1,035 translated, .mo 1,031 + header). Same pattern in az (22), hu_HU (21), ro_RO (6) where only form 0 was filled. Probably fine to ship as-is, but the plural forms need filling on translate.wordpress.org to take effect.
3. Project-Id-Version has a literal &amp; in all four headers (copied from the translate.wordpress.org export). Cosmetic.

This is a draft, so no merge concern yet. Re-add franky-review once 1 is fixed.

Comment thread languages/formidable-nb_NO.po Outdated
msgstr ""

#: classes/views/onboarding-wizard/steps/install-addons-step.php:24
ms

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%s is missing from this translation. The source is sprintf( __( '%s must be unique', 'formidable' ), '[field_name]' ) (classes/helpers/FrmFieldsHelper.php:560), so the %s becomes the field name. Without it the message renders as just "må være unikt", with no subject. On master this was %s må være unik.

Fix both the .po and recompile the .mo. If the translate.wordpress.org string really lacks %s, correct it there, or keep the 2018 string for this entry:

Suggested change
ms
msgstr "%s må være unikt"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 9757ae2: restored %s må være unikt and rebuilt the .mo. The other three files have no placeholder mismatches. I also decoded the &amp; in all four headers.

@franky-the-going-merry franky-the-going-merry Bot removed franky-review franky-working Franky is actively reviewing this labels Dec 2, 2026
The translate.wordpress.org string dropped the %s placeholder, so the error
showed without the field name. Also decode &amp; in the Project-Id-Version headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@franky-the-going-merry franky-the-going-merry Bot added the franky-working Franky is actively reviewing this label Dec 3, 2026

@franky-the-going-merry franky-the-going-merry Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the whole PR at 9757ae2. Translation files only, no code touched.

  • The blocking nb_NO finding is fixed. msgid "%s must be unique" now has msgstr "%s må være unikt", and the shipped .mo decodes (msgunfmt) to the same string.
  • All four .po files pass msgfmt --check. The shipped .mo for az, hu_HU and ro_RO is identical to a fresh compile of its .po.
  • nb_NO: a fresh compile with my newer msgfmt adds the 4 plural entries whose msgstr[1] is empty (day/week/month/year); the shipped .mo leaves them out, as before. This is the non-blocking note 2 from my first review, unchanged and fine to ship.
  • The &amp; in Project-Id-Version is now & in all four headers. The diff since my last review is only those header lines plus the nb_NO string and its .mo.

Not run: no live render in a non-English locale; the check is on the files.

Non-blocking carry-over: plural forms left empty in the .po stay English until filled on translate.wordpress.org.

@franky-the-going-merry franky-the-going-merry Bot removed franky-review franky-working Franky is actively reviewing this labels Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants