Uh oh!
There was an error while loading. Please reload this page.
Fix lost sidebar i18n msgids + orphan files query - #535
Conversation
Migration v88 moved data column from phoenix_kit_publishing_posts to phoenix_kit_publishing_versions, but the orphan files query still referenced the old pp.data column, causing a 500 error on the admin media page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…iaBrowser i18n followup)
…sions These 4 admin_tabs.ex labels are translated via dynamic Gettext.dgettext/3 (not extracted by mix gettext.extract), so they must be added manually. They were originally in PR BeamLabEU#529 but got dropped during merge-conflict resolution when --theirs picked the upstream side (which didn't yet have these bare entries). Restoring with the translations from the original PR commit (43e528a).
Code Review: PR #535Reviewed by @timujinne — SummaryPR adds 4 missing sidebar i18n msgids (Activity, General, Authorization, Dimensions) to However, the PR is incomplete (two more msgids still missing) and has a few format issues. BUG — HIGH: PR is incomplete — |
| Severity | Count |
|---|---|
| BUG - HIGH | 1 |
| BUG - MEDIUM | 1 |
| IMPROVEMENT - HIGH | 1 |
| IMPROVEMENT - MEDIUM | 2 |
| NITPICK | 1 |
Recommendation: Request changes — at minimum add the two missing msgids (Manage Users, Live Sessions) and fix the blank-line separator; ideally also propagate to default.pot + other locales to prevent the same issue from happening again on the next merge.
- Add Manage Users + Live Sessions msgids (missed in initial fix) - Insert blank-line separator before first new entry - Add #, elixir-autogen, elixir-format flag comments - Include admin_tabs.ex line numbers in #: references - Propagate all 6 msgids to default.pot and other locales (de/en/es/fr/it/pl) so future gettext.merge preserves them
Summary
Two small fixes that have been living in our fork's dev branch.
1. Restore 4 missing sidebar i18n msgids (ru + et)
Activity,General,Authorization,Dimensionsare translated via dynamicGettext.dgettext/3inTab.localized_label/1, somix gettext.extractdoesn'tpick them up automatically — they need to be added to
.pofiles by hand.They were originally in PR #529 but got dropped during merge-conflict resolution
when
--theirspicked the upstream side (which didn't yet have these bareentries). Without this, the four sidebar tabs render in English under ru/et
locales.
Translations are restored from the original PR #529 commit (43e528a).
2. Fix orphan files query
lib/modules/storage/storage.ex: Migration V88 moved thedatacolumn fromphoenix_kit_publishing_poststophoenix_kit_publishing_versions, but theorphan-files query in storage still referenced
pp.data, causing a 500 erroron the admin media page. Switches the join to
publishing_versions.Test plan
mix compilecleanmix credo --strictclean (via precommit hook)ru/et translations resolve correctly for all 4 restored msgids