Index: trunk/extensions/Translate/specials/SpecialManageGroups.php |
— | — | @@ -92,6 +92,7 @@ |
93 | 93 | |
94 | 94 | $groups = MessageGroups::singleton()->getGroups(); |
95 | 95 | |
| 96 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Help:Extension:Translate/Group_management' ); |
96 | 97 | $wgOut->wrapWikiMsg( '<h2>$1</h2>', 'translate-manage-listgroups' ); |
97 | 98 | $separator = wfMsg( 'word-separator' ); |
98 | 99 | |
Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -81,6 +81,7 @@ |
82 | 82 | $this->options['group'] = $this->defaults['group']; |
83 | 83 | } |
84 | 84 | |
| 85 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate' ); |
85 | 86 | // Show errors nicely. |
86 | 87 | $wgOut->addHTML( $this->settingsForm( $errors ) ); |
87 | 88 | |
Index: trunk/extensions/Translate/specials/SpecialTranslationStats.php |
— | — | @@ -115,6 +115,7 @@ |
116 | 116 | global $wgOut, $wgScript; |
117 | 117 | |
118 | 118 | $this->setHeaders(); |
| 119 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting' ); |
119 | 120 | $wgOut->addWikiMsg( 'translate-statsf-intro' ); |
120 | 121 | |
121 | 122 | $wgOut->addHTML( |
Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -120,6 +120,7 @@ |
121 | 121 | } |
122 | 122 | |
123 | 123 | if ( !$this->including() ) { |
| 124 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting' ); |
124 | 125 | $wgOut->addHTML( $this->getForm() ); |
125 | 126 | } |
126 | 127 | |
Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -316,12 +316,9 @@ |
317 | 317 | * @since 2012-01-12 |
318 | 318 | */ |
319 | 319 | public static function addSpecialHelpLink( OutputPage $out, /*string*/$to ) { |
320 | | - global $wgExtensionAssetsPath; |
321 | | - |
322 | 320 | $out->addModules( 'ext.translate.helplink' ); |
323 | 321 | $text = wfMessage( 'translate-gethelp' )->escaped(); |
324 | | - $image = Html::element( 'img', array( 'src' => "$wgExtensionAssetsPath/Translate/resources/images/help.png" ) ); |
325 | | - $link = Html::rawElement( 'a', array( 'href' => "//www.mediawiki.org/wiki/Special:MyLanguage/$to" ), "$image$text" ); |
| 322 | + $link = Html::rawElement( 'a', array( 'href' => "//www.mediawiki.org/wiki/Special:MyLanguage/$to" ), "$text" ); |
326 | 323 | $wrapper = Html::rawElement( 'div', array( 'class' => 'mw-translate-helplink' ), $link ); |
327 | 324 | $out->addHtml( $wrapper ); |
328 | 325 | } |
Index: trunk/extensions/Translate/resources/ext.translate.helplink.css |
— | — | @@ -1,19 +1,14 @@ |
2 | 2 | .mw-translate-helplink { |
3 | | - position: relative; |
| 3 | + position: absolute; |
| 4 | + width: 100%; |
| 5 | + display: block; |
4 | 6 | margin-top: -10px; |
5 | | - float: right; |
6 | 7 | } |
7 | 8 | |
8 | 9 | .mw-translate-helplink a { |
9 | | - display: block; |
10 | | - position: absolute; |
11 | | - width: 150px; |
12 | | - left: -150px; |
13 | | - text-align: right; |
14 | | - overflow: hidden; |
| 10 | + /* @embed */ |
| 11 | + background: url(images/help.png) no-repeat scroll left center transparent; |
| 12 | + padding-left: 20px; |
| 13 | + float: right; |
15 | 14 | } |
16 | 15 | |
17 | | -.mw-translate-helplink img { |
18 | | - vertical-align: middle; |
19 | | - margin-right: 4px; |
20 | | -} |