Page MenuHomePhabricator

Codex components in our dev environment seem unaware of the current interface language
Closed, ResolvedPublic

Description

We might be missing some configuration variables in the team's development infrastructure, but Codex components sometimes appear as the "qqx" message key rather than using the current interface language as expected.

See http://commons.wiki.local.wmftest.net:8080/w/index.php?title=Special:ImportFile&clientUrl=http%3A%2F%2Fdev.wiki.local.wmftest.net%3A8080%2Fwiki%2FFile%3ACuteGoat.jpg&importSource=FileExporter&codex=1 which often but not always appears with qqx labels. During development, we've had to add the &uselang=en parameter to force Codex to render in natural language.

Code to review: https://gitlab.com/wmde/technical-wishes/docker-dev/-/merge_requests/115

Event Timeline

In case we need it again, the relevant glue is in mediawiki-core/resources/src/vue/i18n.js .

It turns out, the problem is with docker-dev configuration (I'll rewrite this task accordingly). No browser messages are correctly shipping translations, they're all qqx-style keys: mw.messages.values -> and: '(and)', ... This can be confirmed as unrelated to the FileImporter, by checking JS messages on the devwiki main page. Supplying query parameter uselang=en results in correctly translated messages. Even logged-in, user preferences show no default interface language:

image.png (111×371 px, 7 KB)

awight moved this task from Doing to Review on the WMDE-TechWish-Maintenance-2023 board.

Hehe wgContentLanguage: "$lang", literally. The ContentLanguage service wiring returns config for wgLanguageCode. It seems we're misconfiguring this in docker-dev 00-CentralAuth.php . Launching docker-dev without the CentralAuth module gives correct language.

For review: https://gitlab.com/wmde/technical-wishes/docker-dev/-/merge_requests/115

WMDE-Fisch renamed this task from Codex components seem unaware of the current interface language to Codex components in our dev environment seem unaware of the current interface language.Oct 27 2023, 2:12 PM
WMDE-Fisch removed a project: I18n.
WMDE-Fisch subscribed.

Volker_E added a project: I18n.

Note: This is just an issue with our dev env. Nothing to serious.

thiemowmde claimed this task.
  NODES
HOME 1
Note 2
os 3