Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -157,6 +157,7 @@ |
158 | 158 | 'moodbar-log-hide' => 'hid [[$1]]', |
159 | 159 | 'moodbar-log-feedback' => 'MoodBar Feedback [[$1]]', |
160 | 160 | 'moodbar-log-restore' => 'restored the visibility for [[$1]]', |
| 161 | + 'moodbar-log-reason' => '$1: $2', |
161 | 162 | //Feedback Response |
162 | 163 | 'moodbar-response-terms' => 'By submitting, you agree to transparency under these $1.', |
163 | 164 | 'moodbar-response-link' => 'terms', |
— | — | @@ -329,6 +330,14 @@ |
330 | 331 | 'moodbar-response-url' => '{{Optional}} |
331 | 332 | |
332 | 333 | Terms of use URL. Do not change this URL until a translation of the page itself exists.', |
| 334 | + // Log types |
| 335 | + 'moodbar-log-name' => 'Feedback log name', |
| 336 | + 'moodbar-log-header' => 'Descriptive header text for Feedback log page.', |
| 337 | + 'moodbar-log-hide' => 'Log Action text for hiding feedback [[$1]] is link to feedback item', |
| 338 | + 'moodbar-log-feedback' => 'Log Action text for leaving feedback [[$1]] is link to feedback item', |
| 339 | + 'moodbar-log-restore' => 'Log Action text for restoring feedback [[$1]] is link to feedback item', |
| 340 | + 'moodbar-log-reason' => 'Text for log reason. $1 is moodbar type, $2 is moodbar comment', |
| 341 | + //Feedback Dashboard Response |
333 | 342 | 'response-back-text' => 'Text for response preview back button', |
334 | 343 | 'response-preview-text' => 'Text for preview response preview button', |
335 | 344 | 'response-ajax-action-head' => 'Text for ajax status heading while request is being made', |
Index: trunk/extensions/MoodBar/ApiMoodBar.php |
— | — | @@ -35,11 +35,10 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | public function logFeedback( $params, $itemId ) { |
39 | | - $title = SpecialPage::getTitleFor( 'FeedbackDashboard', $itemId); |
40 | | - $reason = $params['type'] . ': ' . $params['comment']; |
| 39 | + $title = SpecialPage::getTitleFor( 'FeedbackDashboard', $itemId ); |
| 40 | + $reason = wfMessage( 'moodbar-log-reason' )->params( $params['type'], $params['comment'] )->escaped(); |
41 | 41 | $log = new LogPage( 'moodbar' ); |
42 | 42 | $log->addEntry( 'feedback', $title, $reason ); |
43 | | - |
44 | 43 | } |
45 | 44 | |
46 | 45 | public function needsToken() { |