Index: trunk/extensions/Interlanguage/InterlanguageExtension.php |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | global $wgMemc; |
44 | 44 | |
45 | 45 | $this->addPageLink( $parser->getOutput(), $param ); |
| 46 | + $parser->getOutput()->addModules( 'ext.Interlanguage' ); |
46 | 47 | |
47 | 48 | $key = wfMemcKey( 'Interlanguage', md5( $param ) ); |
48 | 49 | $res = $wgMemc->get( $key ); |
— | — | @@ -297,11 +298,9 @@ |
298 | 299 | foreach( $pagelinktitles as $title ) { |
299 | 300 | $template->data['language_urls'][] = array( |
300 | 301 | 'href' => $title->getFullURL( array( 'action' => 'edit' ) ), |
301 | | - 'text' => wfMsg( 'editsection' ), |
| 302 | + 'text' => wfMsg( 'interlanguage-editlinks' ), |
302 | 303 | 'title' => $title->getText(), |
303 | 304 | 'class' => "interwiki-interlanguage", |
304 | | - 'before' => "[", |
305 | | - 'after' => "]", |
306 | 305 | ); |
307 | 306 | } |
308 | 307 | |
Index: trunk/extensions/Interlanguage/modules/interlanguage.css |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +.interwiki-interlanguage { |
| 3 | + list-style-type: none; |
| 4 | + list-style-image: none; |
| 5 | + text-align: right; |
| 6 | + padding-right: .5em !important; |
| 7 | +} |
| 8 | + |
| 9 | +.interwiki-interlanguage > a { |
| 10 | + padding-left: 11px; |
| 11 | + background-repeat: no-repeat; |
| 12 | + background-position: left center; |
| 13 | +} |
| 14 | + |
| 15 | +.interwiki-interlanguage > a:link, .interwiki-interlanguage > a:visited { |
| 16 | + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAAD1BMVEUZAAD///95eXmqqqrY2NjEIQ0cAAAAAXRSTlMAQObYZgAAACdJREFUCNdjYGBgYGIAASUFENNJCUiqmADZTM5OqExFFZAKRSG4YgBjcwODynSgDwAAAABJRU5ErkJggg=='); |
| 17 | + color: #797979 !important; |
| 18 | +} |
| 19 | + |
| 20 | +.interwiki-interlanguage > a:hover { |
| 21 | + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAAD1BMVEWBAADY2Nj///8GRa0zZrtW2AECAAAAAXRSTlMAQObYZgAAACdJREFUCNdjYGBgYGYAAWMDEFPYGEgaOgLZzCLCqEwjQ5AKI2W4YgBg5QOTQPzBuAAAAABJRU5ErkJggg=="); |
| 22 | + color: #0645AD !important; |
| 23 | +} |
Property changes on: trunk/extensions/Interlanguage/modules/interlanguage.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 24 | + native |
Index: trunk/extensions/Interlanguage/Interlanguage.i18n.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | $messages['en'] = array( |
15 | 15 | 'interlanguage-desc' => 'Grabs interlanguage links from another wiki', |
16 | 16 | 'interlanguage-pagelinksexplanation' => 'Pages with interlanguage links:', |
| 17 | + 'interlanguage-editlinks' => 'Edit Links', |
17 | 18 | ); |
18 | 19 | |
19 | 20 | /** Message documentation (Message documentation) |
— | — | @@ -400,8 +401,9 @@ |
401 | 402 | * @author Михајло Анђелковић |
402 | 403 | */ |
403 | 404 | $messages['sr-ec'] = array( |
404 | | - 'interlanguage-desc' => 'Преузима међувики са другог пројекта', |
| 405 | + 'interlanguage-desc' => 'Преузима међујезичке везе са другог пројекта', |
405 | 406 | 'interlanguage-pagelinksexplanation' => 'Странице са међујезичким везама:', |
| 407 | + 'interlanguage-editlinks' => 'Уреди везе', |
406 | 408 | ); |
407 | 409 | |
408 | 410 | /** Serbian Latin ekavian (Srpski (latinica)) */ |
Index: trunk/extensions/Interlanguage/Interlanguage.php |
— | — | @@ -41,6 +41,11 @@ |
42 | 42 | $wgExtensionMessagesFiles['InterlanguageMagic'] = dirname(__FILE__) . '/Interlanguage.i18n.magic.php'; |
43 | 43 | $wgAutoloadClasses['InterlanguageExtension'] = dirname(__FILE__) . '/InterlanguageExtension.php'; |
44 | 44 | $wgHooks['ParserFirstCallInit'][] = 'wfInterlanguageExtension'; |
| 45 | +$wgResourceModules['ext.Interlanguage'] = array( |
| 46 | + 'styles' => 'modules/interlanguage.css', |
| 47 | + 'localBasePath' => dirname( __FILE__ ), |
| 48 | + 'remoteExtPath' => 'Interlanguage', |
| 49 | +); |
45 | 50 | |
46 | 51 | function wfInterlanguageExtension( $parser ) { |
47 | 52 | global $wgHooks, $wgInterlanguageExtension; |