Page MenuHomePhabricator

URL in globaluserpage-footer string is surrounded by ugly "-{R|}-" on language variant wikis
Open, Stalled, Needs TriagePublic

Description

In wikis with variant, change the uselang (not variant) to the language without variant code it will add unneeded -{R|link}-.

how to
Just go some variantable-language wikis, for example zhwiki without setting language just leave the interface language zh
and go global userpage (I have seen this on other pages, but I did not find the relevant page), the footer with a link
what happens
It shows the link in -{R| and }-

image.png (75×827 px, 5 KB)
(kk)
image.png (82×835 px, 5 KB)
(zh)

what expected
make the -{R|}- Invisible just like if you choose some variant for your interface language

(e.g. zh-hans)

image.png (66×916 px, 5 KB)

Event Timeline

Aklapper changed the task status from Open to Stalled.Mar 8 2021, 8:47 PM
Aklapper removed a project: MediaWiki-Interface.

Hi @LaMagiaaa, thanks for taking the time to report this! Unfortunately this Wikimedia Phabricator task lacks some information.
If you have time and can still reproduce the situation: Please add a more complete description to this task. That should be

  • a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step,
  • what happens after performing these steps to reproduce,
  • what you expected to happen instead,
  • a full link to a web address where the issue can be seen.

You can edit the task description by clicking Edit Task. Ideally, a good description should allow any other person to follow these steps (without having to interpret steps) and see the same results. Problems that others can reproduce can get fixed faster. Thanks again!

Hi @LaMagiaaa, please see my previous comment and provide full links to web addresses where the issue can be seen.

@Aklapper
You can check it on my userpage and other global userpages by the following link
https://zh.wikipedia.org/wiki/User:LaMagiaaa?uselang=zh

This will also appear in some other versions, for example kk or ban

Ah, thanks a lot, I understand now. So this is about user profile pages. And this seems to be about one specific message, for global user pages.

I don't see anything specific on https://translatewiki.net/wiki/MediaWiki:Globaluserpage-footer/zh-hans and https://translatewiki.net/wiki/MediaWiki:Globaluserpage-footer/en (and taking a quick look at the code it's unclear to me where GlobalUserPageFooterKey comes from).

Aklapper renamed this task from There are unexpected codes shows with links in variantable wikis to URL in globaluserpage-footer string is surrounded by ugly "-{R|}-" on language variant wikis.Mar 9 2021, 7:03 AM
Aklapper added projects: GlobalUserPage, I18n.