Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1836
lrdiff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:12 PM
2014-11-21 20:12:14 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
lrdiff
View Options
Index: skins/MonoBook.php
===================================================================
--- skins/MonoBook.php (revision 47963)
+++ skins/MonoBook.php (working copy)
@@ -340,7 +340,15 @@
<ul>
<?php foreach($this->data['language_urls'] as $langlink) { ?>
<li class="<?php echo htmlspecialchars($langlink['class'])?>"><?php
- ?><a href="<?php echo htmlspecialchars($langlink['href']) ?>"><?php echo $langlink['text'] ?></a></li>
+ ?><a
+ title="<?php echo $langlink['text'];?>"
+ rel="alternate"
+ lang="<?php echo $langlink['interwiki'];?>"
+ hreflang="<?php echo $langlink['interwiki'];?>"
+ xml:lang="<?php echo $langlink['interwiki'];?>"
+ href="<?php echo htmlspecialchars($langlink['href']) ?>">
+ <?php echo $langlink['text'] ?>
+</a></li>
<?php } ?>
</ul>
</div>
Index: includes/SkinTemplate.php
===================================================================
--- includes/SkinTemplate.php (revision 47963)
+++ includes/SkinTemplate.php (working copy)
@@ -419,7 +419,8 @@
$language_urls[] = array(
'href' => $nt->getFullURL(),
'text' => ($wgContLang->getLanguageName( $nt->getInterwiki()) != ''?$wgContLang->getLanguageName( $nt->getInterwiki()) : $l),
- 'class' => $class
+ 'class' => $class,
+ 'interwiki' => $nt->getInterwiki()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1414
Default Alt Text
lrdiff (1 KB)
Attached To
Mode
T3433: Add metainformation for interlanguage links (link rel="alternate" hreflang)
Attached
Detach File
Event Timeline
Log In to Comment