Repository navigation
Refresh bundled translations from translate.wordpress.org - #3803
NathanaelJonesIreland wants to merge 2 commits into
Conversation
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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
|
|
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.
There was a problem hiding this comment.
Translation-only change, no code touched. I checked the parts a human reviewer can't eyeball in 41k lines:
- Each
.pocompiles withmsgfmt --checkand every shipped.momatches 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->azrename is correct, nothing in code referencesaz_AZorsr_RS.sr_RSdoes 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:
- 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 & 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.
| msgstr "" | ||
|
|
||
| #: classes/views/onboarding-wizard/steps/install-addons-step.php:24 | ||
| ms |
There was a problem hiding this comment.
%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:
| ms | |
| msgstr "%s må være unikt" |
There was a problem hiding this comment.
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 & in all four headers.
The translate.wordpress.org string dropped the %s placeholder, so the error showed without the field name. Also decode & in the Project-Id-Version headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
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 hasmsgstr "%s må være unikt", and the shipped.modecodes (msgunfmt) to the same string. - All four
.pofiles passmsgfmt --check. The shipped.mofor 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.moleaves them out, as before. This is the non-blocking note 2 from my first review, unchanged and fine to ship. - The
&inProject-Id-Versionis 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.
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.az, notaz_AZThe 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.potis 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