You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status page and dashboard show hardcoded English labels in other locales #511
With a locale other than English (e.g. de), some labels on the status page and in the dashboard stay in English.
Steps to reproduce
Set the locale to de in the dashboard settings.
Create an incident or a schedule with two affected components, e.g. "API" and "Website".
Open the status page.
Expected:Betroffene Komponenten: API und Website Actual:Affected Components: API and Website
Affected places
Status page:
The "Affected Components" line of incidents and schedules, including the ' and ' used to join the component names
The "Reported" heading of incidents
Dashboard:
The updates relation manager of incidents (labels, table headers, user form)
The title of the components relation manager
The user field of the incident form
The placeholder of the metric suffix field
Cause
These strings are passed to __() as plain English text, e.g. __('Affected Components'), or are not translated at all, e.g. ' and ' and 'e.g. ms, %, etc.'. Cachet ships its translations as PHP files under the cachet:: namespace and has no JSON translations. Lookups by plain text therefore never find a translation and return the English text unchanged.
Fix
#504 uses the existing keys where there are any, e.g. cachet::incident.affected_components_header. It adds new ones for the rest (cachet::cachet.and, cachet::update.*, cachet::metric.form.suffix_placeholder) and includes tests. It is rebased on the current main.
Activity