Description
The new Global Statistics page, introduced as part of T405652, contains user-facing text that is currently not marked for translation. As a result, all labels, headings, and descriptive text on this page appear only in English, preventing localization into other languages.
To make this page accessible to non-English users, the text in the relevant templates must be wrapped with translation functions and the translation update scripts must be run so that the strings are extracted and made available for translation.
Affected page:
https://isa.toolforge.org/statistics
Domain
Coding (I18n / Localization)
Difficulty
Difficult
Steps To Reproduce
- Open the Global Statistics page: http://localhost:5000/statistics
- Review all visible text on the page, including:
- Page headings
- Chart titles
- Axis labels
- Filter labels
- Descriptive paragraphs
- Switch the interface language to a non-English language (if available).
- Observe that all text remains in English.
- Inspect the templates used for the statistics page.
- Verify that the text strings are not wrapped in translation helpers (e.g. gettext, _()).
Expected Output
- All user-facing text on the Global Statistics page is marked for translation.
- Translation strings are successfully extracted by running the translation update scripts.
- The strings appear in the translation system (e.g. TranslateWiki).
- The page correctly displays translated text when a non-English language is selected.
Acceptance
- All visible text on the statistics page uses translation helpers.
- No hardcoded English strings remain in the templates.
- Translation update scripts run without errors.
- New strings appear in the message catalog.
- The page renders correctly in English and at least one other language.
- No regression in layout or functionality is introduced.