Index: trunk/extensions/MobileFrontend/MobileFrontend.i18n.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | 'mobile-frontend-featured-article' => 'Today\'s Featured Article', |
61 | 61 | 'mobile-frontend-news-items' => 'In The News', |
62 | 62 | 'mobile-frontend-leave-feedback-title' => 'Leave feedback about Mobile Frontend', |
63 | | - 'mobile-frontend-leave-feedback-notice' => 'Your feedback will be posted publicly, along with your user name, browser version and operating system to the page ', |
| 63 | + 'mobile-frontend-leave-feedback-notice' => 'Your feedback will be posted publicly, along with your user name, browser version and operating system to the page $1', |
64 | 64 | 'mobile-frontend-leave-feedback-subject' => 'Subject', |
65 | 65 | 'mobile-frontend-leave-feedback-message' => 'Message', |
66 | 66 | 'mobile-frontend-leave-feedback-cancel' => 'Cancel', |
Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.53'; |
| 69 | + const VERSION = '0.5.54'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -206,7 +206,14 @@ |
207 | 207 | self::$messages['mobile-frontend-copyright'] = $copyright; |
208 | 208 | |
209 | 209 | foreach ( self::$messageKeys as $messageKey ) { |
210 | | - self::$messages[$messageKey] = wfMsg( $messageKey ); |
| 210 | + |
| 211 | + if ( $messageKey == 'mobile-frontend-leave-feedback-notice' ) { |
| 212 | + $scriptUrl = wfScript(); |
| 213 | + $linkText = wfMsg( 'mobile-frontend-leave-feedback-link-text' ); |
| 214 | + self::$messages[$messageKey] = wfMsg( $messageKey, ""<a href=\"{$scriptUrl}?title=MobileFrontend_Extension_Feedback\" target=\"_blank\">{$linkText}</a>"" ); |
| 215 | + } else { |
| 216 | + self::$messages[$messageKey] = wfMsg( $messageKey ); |
| 217 | + } |
211 | 218 | } |
212 | 219 | |
213 | 220 | self::$dir = $wgContLang->getDir(); |
Index: trunk/extensions/MobileFrontend/views/information/leave_feedback.html.php |
— | — | @@ -1,7 +1,5 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -$scriptUrl = wfScript(); |
5 | | - |
6 | 4 | $leaveFeedbackHtml = <<<EOT |
7 | 5 | <form action='{$feedbackPostURL}' method='post'> |
8 | 6 | <input type="hidden" name="edittoken" value="{$editToken}"/> |
— | — | @@ -11,7 +9,7 @@ |
12 | 10 | </div> |
13 | 11 | <div> |
14 | 12 | <div> |
15 | | - <div><p><small>{$notice} "<a href="{$scriptUrl}?title=MobileFrontend_Extension_Feedback" target="_blank">{$linkText}</a>"</small> |
| 13 | + <div><p><small>{$notice}</small> |
16 | 14 | </p></div> |
17 | 15 | <div><p>{$subject}:<br><input type="text" name="subject" maxlength="60" style="width:40%;"></p> |
18 | 16 | </div> |