Index: trunk/extensions/MobileFrontend/MobileFrontend.i18n.php |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | 'mobile-frontend-leave-feedback-submit' => 'Submit Feedback', |
68 | 68 | 'mobile-frontend-leave-feedback-link-text' => 'Mobile Frontend feedback', |
69 | 69 | 'mobile-frontend-leave-feedback' => 'Leave feedback', |
| 70 | + 'mobile-frontend-feedback-page' => 'Project:Mobile Extension Feedback', |
70 | 71 | ); |
71 | 72 | |
72 | 73 | /** Message documentation (Message documentation) |
Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.56'; |
| 69 | + const VERSION = '0.5.57'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -140,6 +140,7 @@ |
141 | 141 | 'mobile-frontend-leave-feedback-submit', |
142 | 142 | 'mobile-frontend-leave-feedback-link-text', |
143 | 143 | 'mobile-frontend-leave-feedback', |
| 144 | + 'mobile-frontend-feedback-page', |
144 | 145 | ); |
145 | 146 | |
146 | 147 | public $itemsToRemove = array( |
— | — | @@ -209,7 +210,10 @@ |
210 | 211 | |
211 | 212 | if ( $messageKey == 'mobile-frontend-leave-feedback-notice' ) { |
212 | 213 | $linkText = wfMsg( 'mobile-frontend-leave-feedback-link-text' ); |
213 | | - self::$messages[$messageKey] = wfMsg( $messageKey, Html::element( 'a', array( 'href' => Title::newFromText( 'MobileFrontend Extension Feedback' )->getFullURL(), 'target' => '_blank' ), $linkText ) ); |
| 214 | + $linkTarget = wfMsgNoTrans( 'mobile-frontend-feedback-page' ); |
| 215 | + self::$messages[$messageKey] = wfMsgExt( $messageKey, array( 'replaceafter' ), Html::element( 'a', array( 'href' => Title::newFromText( $linkTarget )->getFullURL(), 'target' => '_blank' ), $linkText ) ); |
| 216 | + } elseif ( $messageKey == 'mobile-frontend-feedback-page' ) { |
| 217 | + self::$messages[$messageKey] = wfMsgNoTrans( $messageKey ); |
214 | 218 | } else { |
215 | 219 | self::$messages[$messageKey] = wfMsg( $messageKey ); |
216 | 220 | } |
— | — | @@ -339,11 +343,13 @@ |
340 | 344 | |
341 | 345 | if ( $mobileAction == 'leave_feedback_post' ) { |
342 | 346 | |
| 347 | + $this->getMsg(); |
| 348 | + |
343 | 349 | $subject = $wgRequest->getText( 'subject', '' ); |
344 | 350 | $message = $wgRequest->getText( 'message', '' ); |
345 | 351 | $token = $wgRequest->getText( 'edittoken', '' ); |
346 | 352 | |
347 | | - $title = Title::newFromText( 'MobileFrontend Extension Feedback' ); |
| 353 | + $title = Title::newFromText( self::$messages['mobile-frontend-feedback-page'] ); |
348 | 354 | |
349 | 355 | if ( $title->userCan( 'edit' ) && |
350 | 356 | !$wgUser->isBlockedFrom( $title ) && |