Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/96178
Change subject: Correct language tooltips for main page ...................................................................... Correct language tooltips for main page On the Main page if you inspect the languages section (.interwiki-fr for example) the tooltip will be in the form '- French' rather than 'Main page - French' On mobile this tooltip is actually used to determine the title of the page being linked to. This adds the title of the main page to the tooltip. Bug: 56741 Change-Id: I1962c437cbb527355d4d87300b419ca80d42dcc3 --- M includes/SkinTemplate.php 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/78/96178/1 diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0990584..bf7ddaf 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -140,6 +140,9 @@ foreach ( $out->getLanguageLinks() as $languageLinkText ) { $languageLinkParts = explode( ':', $languageLinkText, 2 ); $class = 'interwiki-' . $languageLinkParts[0]; + if ( !$languageLinkParts[1] ) { + $languageLinkText .= $this->msg( 'mainpage', 'Main Page' ); + } unset( $languageLinkParts ); $languageLinkTitle = Title::newFromText( $languageLinkText ); if ( $languageLinkTitle ) { -- To view, visit https://gerrit.wikimedia.org/r/96178 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1962c437cbb527355d4d87300b419ca80d42dcc3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits