Page MenuHomePhabricator

Avoid outputting invalid lang="qqq" on Special:Translations and Special:SupportedLanguages
Closed, ResolvedPublicBUG REPORT

Description

Both these pages output lang="qqq" which was flagged by Lighthouse as invalid. For items depicting Message Documentation, the language code of content language should be used.

Place to fix:

  • lang attribute in SpecialTranslations::showTranslations
  • lang attribute in SpecialSupportedLanguage::outputLanguageCloud

Make sure you have $wgTranslateDocumentationLanguageCode = 'qqq'; set in LocalSettings.php. Create for example a translatable page and add message documentation for it.

Documentation:

Event Timeline

Nikerabbit changed the subtype of this task from "Task" to "Bug Report".Dec 10 2020, 11:53 AM
Nikerabbit added a project: good first task.
Nikerabbit updated the task description. (Show Details)
JCarvalho changed the task status from Open to In Progress.Sep 30 2021, 2:28 PM
JCarvalho claimed this task.

Change 727430 had a related patch set uploaded (by JCarvalho; author: João Carvalho):

[mediawiki/extensions/Translate@master] Fix Special:Translations lang attribute on Message documentation area

https://gerrit.wikimedia.org/r/727430

Change 730040 had a related patch set uploaded (by JCarvalho; author: JCarvalho):

[mediawiki/extensions/Translate@master] Special:ActiveLanguages: Fix lang attribute for message documentation

https://gerrit.wikimedia.org/r/730040

Change 727430 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Special:Translations: Fix lang attribute for message documentation

https://gerrit.wikimedia.org/r/727430

The patch for Special:Translations was deployed to translatewiki.net and tested there. Looks good.

Change 730040 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Special:ActiveLanguages: Fix lang attribute for message documentation

https://gerrit.wikimedia.org/r/730040