Last modified: 2014-07-24 10:25:05 UTC
Currently, the wikitext embed URL is non-localized; e.g. https://nl.wikipedia.org/wiki/Hoofdpagina#mediaviewer/Bestand:Chicago_Board_Of_Trade_Building.jpg shows the following embed code: [[File:Chicago_Board_Of_Trade_Building.jpg|thumb|Chicago Board Of Trade Building]] while the localized version [[Bestand:Chicago_Board_Of_Trade_Building.jpg|thumb|Chicago Board Of Trade Building]] would make much more sense.
The thumb keyword can also be localized, although I'm not sure how to access it in JS (the namespaces are stored in a config variable so that should be easy - this should probably be added to mw.Title).
Turns out mw.Title does that already, we just don't use it. Doh.
Change 131325 had a related patch set uploaded by Gergő Tisza: Use localized namespace name in embed wikitext https://gerrit.wikimedia.org/r/131325
Change 131325 merged by jenkins-bot: Use localized namespace name in embed wikitext https://gerrit.wikimedia.org/r/131325
Change 131509 had a related patch set uploaded by Gergő Tisza: Revert "Use localized namespace name in embed wikitext" https://gerrit.wikimedia.org/r/131509
Per Erik on multimedia list, it's enough to follow content language, as we do for UploadWizard ("File") and the editing toolbar.
(In reply to Nemo from comment #6) > Per Erik on multimedia list, it's enough to follow content language, as we > do for UploadWizard ("File") and the editing toolbar. Those are not relevant examples: the editing toolbar is not used cross-wiki, and UploadWizard is (almost) only used on Commons, where the canonical and the contentlang namespace name is the same.
Change 131509 merged by jenkins-bot: Revert "Use localized namespace name in embed wikitext" https://gerrit.wikimedia.org/r/131509
(In reply to Gerrit Notification Bot from comment #8) > Change 131509 merged by jenkins-bot: > Revert "Use localized namespace name in embed wikitext" I'm confused. What changed since the multimedia list discussion?
Nothing. I had doubts after submitting this patch so I started a mailing list thread about it; there was no consensus (nor much interest, really) so no reason not to merge (except it got forgotten for a while). I'll leave the bug open for a while longer; if there are many complaints, I'll try the {{ns}} hack.
When there is no consensus, you should follow standards. That is, wiki content language. Whatever. Here's the link I mentioned above. http://lists.wikimedia.org/pipermail/multimedia/2014-May/000403.html