Skip to content

fix(i18n): the admin chrome was still hardcoded English (v1.0.2) - #185

Merged
WebTigers merged 1 commit into
mainfrom
fix/admin-ui-i18n
Aug 24, 2026
Merged

fix(i18n): the admin chrome was still hardcoded English (v1.0.2)#185
WebTigers merged 1 commit into
mainfrom
fix/admin-ui-i18n

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

The platform ships six locales — but PUMA's shared admin chrome rendered its own labels as literals, so they stayed English no matter what language you picked.

Visible examples: My Profile, Lock Screen, Sign Out, Alerts, View all, Activity, Drop files to attach, the theme/skin/language switchers, the consent banner, and the whole cron + schedule setup UI. Skip to content — an accessibility affordance — was untranslated as well.

93 keys added to themes/puma/languages/*/theme.php. All six locales at 133 keys with identical key sets (verified as sorted key arrays, not just counts). Time-ago strings became sprintf keys instead of baked-in English, and the inline-JS 'User' fallback now reads a translated data-fallback attribute.

Deliberately NOT translated

The cron setup walks the user through cPanel's and Plesk's own English screens. Control names — Advanced → Cron Jobs, Add New Cron Job, Common Settings, Once Per Minute — stay verbatim in every locale, wrapped so they read as quoted UI names. Translating them would send someone hunting for a button that doesn't exist on their screen. Same rule for brands and for skin origin names (Zephyr, Flatly).

The Claude Code prompt text is translated — that's prose you type at a multilingual agent, not a control you have to find.

Suite: 2043 / 0 failures, unchanged.

Known, pre-existing, not addressed here

admin-header.phtml and consent-banner.phtml still carry inline <script> blocks, against the house no-inline-script rule. Untouched beyond the data-fallback swap — worth its own pass.

🤖 Generated with Claude Code

The platform ships six locales, but PUMA's shared chrome rendered its own labels as
literals — My Profile, Lock Screen, Sign Out, Alerts, View all, Activity, the agent
aside, the theme/skin/language switchers, the consent banner, and the cron + schedule
setup screens stayed English in every locale. 'Skip to content' — an accessibility
affordance — was untranslated too.

93 keys across themes/puma/languages/*/theme.php; all six locales at 133 with identical
key sets. Time-ago strings became sprintf keys; the inline-JS 'User' fallback now reads a
translated data-fallback attribute.

DELIBERATELY still English: cPanel/Plesk control names in the cron instructions (Add New
Cron Job, Common Settings, ...). The user is hunting for those exact labels on an English
cPanel screen — translating them would send them after a button that doesn't exist.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WebTigers
WebTigers merged commit 7cc10f7 into main Aug 24, 2026
13 checks passed
@WebTigers
WebTigers deleted the fix/admin-ui-i18n branch August 24, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant