Dear all,
in a regular MediaWiki installation switched to de-formal, all help links point to the English versions. This is probably because there is not de-formal version of the MediaWiki documentation, which of course is fine. But all links to SpecialMyLanguage should lead to the German documentation, for settings of "de", "de-formal", "de-at" etc.
As an example: the help icon on Special:Recent changes leads to https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes
But if you set your wiki to de-formal, it will lead you to the English help pages instead the German ones.
Best, Bernhard
It is probably worth opening a bug on Phabricator. As far as I can tell Special:MyLanguage ( https://github.com/wikimedia/mediawiki/blob/master/includes/specials/Special...) does not include any logic for using the fallback languages which for de-formal is de.
RhinosF1
On Fri, 22 Jul 2022 at 14:23, Bernhard Krabina, KM-A < bernhard.krabina@km-a.net> wrote:
Dear all,
in a regular MediaWiki installation switched to de-formal, all help links point to the English versions. This is probably because there is not de-formal version of the MediaWiki documentation, which of course is fine. But all links to SpecialMyLanguage should lead to the German documentation, for settings of “de”, “de-formal”, “de-at” etc.
As an example: the help icon on Special:Recent changes leads to https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes
But if you set your wiki to de-formal, it will lead you to the English help pages instead the German ones.
Best,
Bernhard _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Seems to work fine for me: https://de.wikipedia.org/wiki/Spezial:Letzte_%C3%84nderungen?uselang=de-form...
On Fri, Jul 22, 2022 at 7:05 AM RhinosF1 - rhinosf1@gmail.com wrote:
It is probably worth opening a bug on Phabricator. As far as I can tell Special:MyLanguage ( https://github.com/wikimedia/mediawiki/blob/master/includes/specials/Special...) does not include any logic for using the fallback languages which for de-formal is de.
It's right there https://github.com/wikimedia/mediawiki/blob/511db434346a481b114ef61c97756287746315cf/includes/specials/SpecialMyLanguage.php#L165-L174. Of course, that's based on the language you have set on mediawiki.org, not the linking wiki.
In any case, the SpecialRecentChanges help link is hardcoded https://github.com/wikimedia/mediawiki/blob/511db434346a481b114ef61c97756287746315cf/includes/specials/SpecialRecentChanges.php#L203 to https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes , language settings have nothing to do with it.
wikitech-l@lists.wikimedia.org