Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1541,6 +1541,20 @@ |
1542 | 1542 | $tags[] = Xml::element( 'link', $tag ); |
1543 | 1543 | } |
1544 | 1544 | |
| 1545 | + // Language Links |
| 1546 | + global $wgContLang; |
| 1547 | + $langLinks = $this->getLanguageLinks(); |
| 1548 | + foreach( $langLinks as $link ) { |
| 1549 | + $t = Title::newFromText( $link ); |
| 1550 | + $tags[] = Xml::element( 'link', array( |
| 1551 | + 'title' => wfMsg( 'language-link-title', $wgContLang->getLanguageName( $t->getInterwiki() ) ), |
| 1552 | + 'rel' => 'alternate', |
| 1553 | + 'lang' => $t->getInterwiki(), |
| 1554 | + 'hreflang' => $t->getInterwiki(), |
| 1555 | + 'href' => $t->getFullURL() |
| 1556 | + ) ); |
| 1557 | + } |
| 1558 | + |
1545 | 1559 | if( $wgFeed ) { |
1546 | 1560 | global $wgTitle; |
1547 | 1561 | foreach( $this->getSyndicationLinks() as $format => $link ) { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3791,4 +3791,5 @@ |
3792 | 3792 | |
3793 | 3793 | #Put all regex fragments above this line. Leave this line exactly as it is</pre>', |
3794 | 3794 | |
| 3795 | +'language-link-title' => '$1 version', |
3795 | 3796 | ); |