Skip to content

fix(i18n): disambiguate "Log" and correct two mistranslations of it - #45973

Merged
hainenber merged 1 commit into
apache:masterfrom
antalotec:fix/i18n-log-context
Nov 4, 2026
Merged

hainenber merged 1 commit into
apache:masterfrom
antalotec:fix/i18n-log-context

Conversation

@antalotec

Copy link
Copy Markdown
Contributor

SUMMARY

t('Log') is the resource name of the Action Log list — the record of what each user
did. 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:

msgstr meaning
it Login a sign-in, not a record
ca logarítmic the mathematical logarithm

This adds an i18n: translator note on the call, using the mechanism added in #44397, and
corrects those two entries. The corrections are not a judgement call: each catalog already
translates the related Logs entry correctly — it as Log, ca as Registres — so the
singular is simply made consistent with the plural the same translators chose.

What is in the diff

  • superset-frontend/src/pages/ActionLog/index.tsx — the i18n: note.
  • superset/translations/messages.pot and the 30 catalogs — the note propagated by
    babel_update.sh, two lines each.
  • it and ca — the corrected msgstr.

Only the lines belonging to this change are included. Running babel_update.sh on current
master also rewrites ~970 unrelated lines across 31 files, because the catalogs have
drifted 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

./scripts/translations/babel_update.sh
python scripts/translations/check_pot_drift.py     # template matches a fresh extraction
grep -B3 '^msgid "Log"$' superset/translations/messages.pot

The note must appear on the entry — a misplaced i18n: comment is silently dropped, so
this was verified rather than assumed.

Checks run locally, all green:

  • npx jest src/pages/ActionLog/ActionLog.test.tsx — 6/6
  • npm run lint (oxlint) — clean · oxfmt --check — clean
  • python scripts/translations/check_pot_drift.py — matches
  • msgfmt --check on it, pt, fr — unchanged from master (1 each, from an unrelated
    source-string defect), so this introduces no new errors

ADDITIONAL INFORMATION

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

Developed at MYSPHERA, S.L.

🤖 Generated with Claude Code

"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]>
@github-actions github-actions Bot added i18n Namespace | Anything related to localization i18n:spanish Translation related to Spanish language i18n:italian Translation related to Italian language i18n:french Translation related to French language i18n:chinese Translation related to Chinese language i18n:japanese Translation related to Japanese language i18n:russian Translation related to Russian language i18n:korean Translation related to Korean language i18n:dutch i18n:slovak i18n:ukrainian i18n:portuguese i18n:brazilian i18n:traditional-chinese i18n:persian i18n:czech i18n:latvian labels Nov 3, 2026
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: f3108243cd59

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.91%. Comparing base (9536b0a) to head (f310824).

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     
Flag Coverage Δ
hive 34.24% <ø> (ø)
javascript 81.23% <ø> (+<0.01%) ⬆️
mysql 52.25% <ø> (-0.01%) ⬇️
postgres 52.27% <ø> (-0.01%) ⬇️
presto 35.95% <ø> (ø)
python 87.87% <ø> (+<0.01%) ⬆️
sqlite 52.02% <ø> (ø)
unit 82.69% <ø> (+<0.01%) ⬆️

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.

@antalotec

Copy link
Copy Markdown
Contributor Author

lint-frontend failed in its tsc step, on plugin-chart-ag-grid-table importing DEFAULT_MAX_ROW, DEFAULT_MAX_ROW_TABLE_SERVER and QueryModeLabel from @superset-ui/chart-controls. This PR changes two comment lines in one .tsx plus a set of .po catalogs, so it cannot affect that resolution.

Those symbols are exported — index.ts re-exports ./constants — and neither file has changed in months. plugin-chart-table has an identical tsconfig.json, imports the same symbols, and compiled fine in the same run. frontend-build, validate-frontend and all the sharded frontend tests passed from the same image. In the log, chart-controls: compiled in 0.383s appears after the failure, which suggests tsc --build treated it as up to date while --skip-lib had not emitted its declarations.

Could someone re-run the job? All 14 required contexts are green; lint-frontend is not among them, so this isn't blocking — but the red cross is misleading for anyone reviewing.

@hainenber
hainenber merged commit 494a507 into apache:master Nov 4, 2026
86 of 87 checks passed
hainenber pushed a commit that referenced this pull request Nov 14, 2026
villebro added a commit that referenced this pull request Nov 14, 2026
…5958 and #45973)

Ports the msgstr corrections of #45958 (es) and #45973 (it and ca, plus the
translator comment on the Action Log "Log" string) to 7.0's catalogs, for
the messages that exist on 7.0.

(cherry picked from commit 59ccad0, reduced)
(cherry picked from commit 494a507, reduced)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n:brazilian i18n:chinese Translation related to Chinese language i18n:czech i18n:dutch i18n:french Translation related to French language i18n:italian Translation related to Italian language i18n:japanese Translation related to Japanese language i18n:korean Translation related to Korean language i18n:latvian i18n:persian i18n:portuguese i18n:russian Translation related to Russian language i18n:slovak i18n:spanish Translation related to Spanish language i18n:traditional-chinese i18n:ukrainian i18n Namespace | Anything related to localization size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants