Page MenuHomeMiraheze

Universal Language Selector issues
Closed, DeclinedPublic

Description

Hello, the Universal Language Selector has issues with language selection.

Wikis on Miraheze that I know experience this problem: Dragon Tamer wiki and Stardust Labs wiki.

*Note: both of those wikis use a JS script that adds Special:MyLanguage/ to most links before page names. This is done after a page has fully loaded. This is not interfering with the selector though, links could as well have this part added manually for the same effect. We turned off the script before as a test and used manually changed links, and the issues still remain. We didn't know any other wikis that use this extension to check, otherwise the above list would be longer.

Issues with the selector:

  • When selecting a language, the page properly reloads but the change is not applied, and the previous language still remains. This mostly happened when switching from a non-main language (English in both wiki examples) to another language. This issue fixes itself after reloading the page, but it's consistently appearing again after performing such a switch.
  • The language sometimes gets changed to the previous language without user input when visiting another page, or when visiting a translated page.
  • Selector has other similar issues that could have rules to them but they seem random for now. Both wikis have only up to a few translated pages currently, so testing wasn't possible.

I am not sure if the Translate extension could be involved, but both wikis are using it. It could possibly also be something with how the language is saved/cached rather than the selector itself.

Can something be done about it?

Event Timeline

RhinosF1 triaged this task as Normal priority.Tue, May 3, 14:39
RhinosF1 edited projects, added Extensions; removed MediaWiki.

There's a lot to tell in this topic to be honest. I've actually observed so many issues with the USL extension and probably the translate extension too (I think the extension is involved to some extent), including but not limited to @Xena 's point 1.

There's a Translate configuration (can't remember the wgTranslate**** right now) that described that, setting it to true will make the Page language change to the language that's been selected from USL, but upon changing the language, everything remains the same, nothing changes.
Let me give an example, say, Page Miraheze is translated to the Catalan language, giving us page Miraheze/ca, now if you change your language from English to Catalan, and you have the wgTranslate*** set, you're supposed to be seeing page Miraheze/ca now, but that doesn't happen.

Unfortunately I'm not sure there is much we can do here, we may have to report the issues upstream. But I could be wrong, and it could be on our end also I guess.

Can you please try to enable (or disable if you already have it enabled) $wgTranslatePageTranslationULS in ManageWiki? (Special:ManageWiki/settings/translate#mw-section-localisation)

That's the exact config I was referring to above.

Can you please try to enable (or disable if you already have it enabled) $wgTranslatePageTranslationULS in ManageWiki? (Special:ManageWiki/settings/translate#mw-section-localisation)

It was on, so turned it off. Right now the issues don't look impacted in any way, the only change is the current page not adapting when changing the language, which that setting was for.

I'll leave it off for now, so if anyone wants to test, they can ^^

I did some wandering and language switching on MediaWiki (extension documentations), and they do not have any of those issues by the way.
EDIT: They're also using Translate along ULS.

In T9174#186174, @Xena wrote:

Can you please try to enable (or disable if you already have it enabled) $wgTranslatePageTranslationULS in ManageWiki? (Special:ManageWiki/settings/translate#mw-section-localisation)

It was on, so turned it off. Right now the issues don't look impacted in any way, the only change is the current page not adapting when changing the language, which that setting was for.

I'll leave it off for now, so if anyone wants to test, they can ^^

I did some wandering and language switching on MediaWiki (extension documentations), and they do not have any of those issues by the way.
EDIT: They're also using Translate along ULS.

So the issues are still there, that didn't help in any way? If that's the case, my recommendation is creating a task on phabricator.wikimedia.org. If the issue is indeed on our end, then they'd at the very least hopefully be able to provide some insight, as I'm not sure what more we can do here.

In T9174#186174, @Xena wrote:

Can you please try to enable (or disable if you already have it enabled) $wgTranslatePageTranslationULS in ManageWiki? (Special:ManageWiki/settings/translate#mw-section-localisation)

It was on, so turned it off. Right now the issues don't look impacted in any way, the only change is the current page not adapting when changing the language, which that setting was for.

I'll leave it off for now, so if anyone wants to test, they can ^^

I did some wandering and language switching on MediaWiki (extension documentations), and they do not have any of those issues by the way.
EDIT: They're also using Translate along ULS.

So the issues are still there, that didn't help in any way? If that's the case, my recommendation is creating a task on phabricator.wikimedia.org. If the issue is indeed on our end, then they'd at the very least hopefully be able to provide some insight, as I'm not sure what more we can do here.

@Xena If we are reporting to upstream, they always want a step by step list to get to the error. Would you mind providing one?

Universal_Omega claimed this task.

No response in a few days, it can be re-opened with answering the above so we can report upstream, either that or you could report directly to upstream yourself if you want as well.