Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -139,9 +139,13 @@ |
140 | 140 | return array(); |
141 | 141 | } |
142 | 142 | |
143 | | - $jsTitle = Xml::escapeJsString( $title->getPrefixedDbKey() ); |
| 143 | + $dbKey = $title->getPrefixedDbKey(); |
| 144 | + $jsTitle = Xml::escapeJsString( $dbKey ); |
144 | 145 | $jsGroup = Xml::escapeJsString( $group ); |
145 | 146 | |
146 | | - return array( 'onclick' => "return trlOpenJsEdit( \"$jsTitle\", \"$jsGroup\" );" ); |
| 147 | + return array( |
| 148 | + 'onclick' => "return trlOpenJsEdit( \"$jsTitle\", \"$jsGroup\" );", |
| 149 | + 'title' => wfMsg( 'translate-edit-title', $dbKey ) |
| 150 | + ); |
147 | 151 | } |
148 | 152 | } |
Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -64,6 +64,7 @@ |
65 | 65 | 'translate-optional' => '(optional)', |
66 | 66 | 'translate-ignored' => '(ignored)', |
67 | 67 | |
| 68 | + 'translate-edit-title' => 'Edit "$1"', |
68 | 69 | 'translate-edit-definition' => 'Message definition', |
69 | 70 | 'translate-edit-contribute' => 'contribute', |
70 | 71 | 'translate-edit-no-information' => "''This message has no documentation. |
— | — | @@ -197,6 +198,7 @@ |
198 | 199 | 'translate-translations-messagename' => 'Name:', |
199 | 200 | 'translate-translations-project' => 'Project:', |
200 | 201 | 'translate-translations-including-no-param' => 'Please specify a valid message key in the subpage parameter', |
| 202 | + 'translate-translations-history-short' => 'h', |
201 | 203 | |
202 | 204 | # Special:LanguageStats |
203 | 205 | 'languagestats' => 'Language statistics', |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -42,7 +42,6 @@ |
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
46 | | - |
47 | 46 | # GET values |
48 | 47 | $message = $wgRequest->getText( 'message' ); |
49 | 48 | $namespace = $wgRequest->getInt( 'namespace', NS_MAIN ); |
— | — | @@ -168,6 +167,7 @@ |
169 | 168 | $canTranslate = $wgUser->isAllowed( 'translate' ); |
170 | 169 | |
171 | 170 | $ajaxPageList = array(); |
| 171 | + $historyText = " <sup>" . wfMsg( 'translate-translations-history-short' ) . "</sup> "; |
172 | 172 | |
173 | 173 | foreach ( $res as $s ) { |
174 | 174 | $key = $s->page_title; |
— | — | @@ -187,8 +187,11 @@ |
188 | 188 | |
189 | 189 | $tools['history'] = $sk->link( |
190 | 190 | $tTitle, |
191 | | - " <sup>h</sup> ", |
192 | | - array( 'action' ), |
| 191 | + $historyText, |
| 192 | + array( |
| 193 | + 'action', |
| 194 | + 'title' => wfMsg( 'history-title', $tTitle->getPrefixedDbKey() ) |
| 195 | + ), |
193 | 196 | array( 'action' => 'history' ) |
194 | 197 | ); |
195 | 198 | |
— | — | @@ -204,6 +207,7 @@ |
205 | 208 | Xml::tags( 'td', null, TranslateUtils::convertWhiteSpaceToHTML( $pageInfo[$key][0] ) ) |
206 | 209 | ); |
207 | 210 | } |
| 211 | + |
208 | 212 | TranslateUtils::injectCSS(); |
209 | 213 | |
210 | 214 | $out .= Xml::closeElement( 'table' ); |