[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-10-08 Thread Kaganer
Kaganer added a comment.

In T185895#4294329, @Nikki wrote:
If I understand the suggestion in the previous comment correctly, it would fix the cases where the language is unknown to MediaWiki, but wouldn't fix the ones where the language is known and it can look up the mainpage message.


After implementing my commit from T184386, my idea was aimed to change code of https://www.wikidata.org/w/index.php?title=MediaWiki:Mainpage from

Wikidata:Main Page

to

Special:MyLanguage/Wikidata:Main Page

This is would be lead to resolve these problem.TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: KaganerCc: Nikki, Kaganer, matej_suchanek, Lucas_Werkmeister_WMDE, Aklapper, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-06-15 Thread Nikki
Nikki added a comment.
Valid language codes have essentially the same problem, except they link to the translated version of "Main Page", e.g. https://www.wikidata.org/?uselang=kl, https://www.wikidata.org/?uselang=gn and https://www.wikidata.org/?uselang=gv all point to non-existent pages. The only ones which work are where we've created MediaWiki:Mainpage/xx.

If I understand the suggestion in the previous comment correctly, it would fix the cases where the language is unknown to MediaWiki, but wouldn't fix the ones where the language is known and it can look up the mainpage message.TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: NikkiCc: Nikki, Kaganer, matej_suchanek, Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-01-29 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.
Also, I realized that there would be one generic solution: if Title::newMainPage() fails to look up the mainpage message in the content-but-really-user language, try again using the content language (->inLanguage( $wgContLang ) instead of ->inContentLanguage()) before falling back to the generic 'Main Page'.TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: matej_suchanek, Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-01-29 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.
Thanks! Though that task seems to contradict part of my last comment :) I left a comment there.TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: matej_suchanek, Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-01-29 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.
Okay, on wikidatawiki, mainpage is part of $wgForceUIMsgAsContentMsg and is therefore always used in the user language. Mystery solved.

I don’t see any easy way to fix this. (I wasn’t aware of it before, but we do have some localized versions of the main page that don’t just redirect to the main main page, so mainpage has to stay a force-user-language message for now.) Is this worth spending any effort on to find a solution or do we just close this?TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T185895: With ?uselang=invalid, Wikidata logo links to Main_page instead of Wikidata:Main_page

2018-01-29 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.
Ah, I see. The main page title is taken from the mainpage message (https://www.wikidata.org/wiki/MediaWiki:Mainpage), falling back to 'Main page' if that doesn’t work.

However, Title::newMainPage() supposedly uses the content language version of mainpage for that, so I’m not sure why uselang=invalid breaks it…TASK DETAILhttps://phabricator.wikimedia.org/T185895EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: Lucas_Werkmeister_WMDE, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs