Page MenuHomePhabricator

Categories with colons in the name are not de-localized
Closed, ResolvedPublic

Description

The de-localization of the category namespace does not work when the category contains a colon. E.g. [[Kategorija:Files uploaded by User:Kikos]] is left untouched.

As of now, links with multiple colons are intentionally excluded from the de-localization, because they might as well be multi-step interwiki links. We need to look into the Linker to see how it distinguishes between colons that are part of an interwiki prefix or namespace, and colons that don't have a meaning (as in the example above). It might be that we can't distinguish this, because we are doing this on Commons (which is English), not on the source wiki.

Reported here: https://www.mediawiki.org/wiki/Topic:Vq0aehpbuvdu4cma

Event Timeline

Change 618087 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/FileImporter@master] Unlocalize namespaces (e.g. categories) with colons as well

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

Change 618087 merged by jenkins-bot:
[mediawiki/extensions/FileImporter@master] Unlocalize namespaces (e.g. categories) with colons as well

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

thiemowmde claimed this task.