Repository navigation
fix(i18n): disambiguate "Log" and correct two mistranslations of it - #45973
Conversation
"Log" labels the Action Log view, but with no context translators read it as a logarithm or as a login: Italian renders it "Login" and Catalan "logarítmic". Add an i18n: comment on the source call so the meaning travels into every catalog, and correct those two entries. Co-Authored-By: Claude Opus 5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #45973 +/- ##
=======================================
Coverage 84.91% 84.91%
=======================================
Files 3075 3075
Lines 207823 207830 +7
Branches 48990 48992 +2
=======================================
+ Hits 176467 176475 +8
Misses 27994 27994
+ Partials 3362 3361 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Those symbols are exported — Could someone re-run the job? All 14 required contexts are green; |
…45973) Co-authored-by: Claude Opus 5 <[email protected]>
SUMMARY
t('Log')is the resource name of the Action Log list — the record of what each userdid. On its own, out of the surrounding code, the word is ambiguous: it is also a
logarithm and, for a reader in a hurry, a login. Two catalogs picked the wrong sense:
msgstritLogincalogarítmicThis adds an
i18n:translator note on the call, using the mechanism added in #44397, andcorrects those two entries. The corrections are not a judgement call: each catalog already
translates the related
Logsentry correctly —itas Log,caas Registres — so thesingular is simply made consistent with the plural the same translators chose.
What is in the diff
superset-frontend/src/pages/ActionLog/index.tsx— thei18n:note.superset/translations/messages.potand the 30 catalogs — the note propagated bybabel_update.sh, two lines each.itandca— the correctedmsgstr.Only the lines belonging to this change are included. Running
babel_update.shon currentmasteralso rewrites ~970 unrelated lines across 31 files, because the catalogs havedrifted from the template since the last sync; that drift is pre-existing and has been
deliberately left out of this PR.
Follow-up to #45953, which repaired malformed format specifiers in three of these
catalogs.
TESTING INSTRUCTIONS
The note must appear on the entry — a misplaced
i18n:comment is silently dropped, sothis was verified rather than assumed.
Checks run locally, all green:
npx jest src/pages/ActionLog/ActionLog.test.tsx— 6/6npm run lint(oxlint) — clean ·oxfmt --check— cleanpython scripts/translations/check_pot_drift.py— matchesmsgfmt --checkonit,pt,fr— unchanged from master (1 each, from an unrelatedsource-string defect), so this introduces no new errors
ADDITIONAL INFORMATION
Developed at MYSPHERA, S.L.
🤖 Generated with Claude Code