Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -104,9 +104,9 @@ |
105 | 105 | 'moodbar-invalid-item' => 'The system was unable to find the correct feedback item.', |
106 | 106 | 'moodbar-feedback-action-error' => 'An error occurred when trying to perform this action.', |
107 | 107 | // Mood types |
108 | | - 'moodbar-type-happy' => 'Happy', |
109 | | - 'moodbar-type-sad' => 'Sad', |
110 | | - 'moodbar-type-confused' => 'Confused', |
| 108 | + 'moodbar-type-happy' => '{{GENDER:$1|Happy}}', |
| 109 | + 'moodbar-type-sad' => '{{GENDER:$1|Sad}}', |
| 110 | + 'moodbar-type-confused' => '{{GENDER:$1|Confused}}', |
111 | 111 | // User types |
112 | 112 | 'moodbar-user-anonymized' => 'Anonymized', |
113 | 113 | 'moodbar-user-ip' => 'IP address', |
— | — | @@ -196,9 +196,9 @@ |
197 | 197 | 'moodbar-header-user' => '{{Identical|User}}', |
198 | 198 | 'moodbar-header-comment' => '{{Identical|Comment}}', |
199 | 199 | 'moodbar-header-namespace' => '{{Identical|Namespace}}', |
200 | | - 'moodbar-type-happy' => 'No gender support ([[bugzilla:30071|bug 30071]])', |
201 | | - 'moodbar-type-sad' => 'No gender support ([[bugzilla:30071|bug 30071]])', |
202 | | - 'moodbar-type-confused' => 'No gender support ([[bugzilla:30071|bug 30071]])', |
| 200 | + 'moodbar-type-happy' => '$1 is the username that can be used for GENDER', |
| 201 | + 'moodbar-type-sad' => '$1 is the username that can be used for GENDER', |
| 202 | + 'moodbar-type-confused' => '$1 is the username that can be used for GENDER', |
203 | 203 | 'moodbar-user-ip' => '{{Identical|IP Address}}', |
204 | 204 | ); |
205 | 205 | |
Index: trunk/extensions/MoodBar/Formatter.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | break; |
29 | 29 | case 'type': |
30 | 30 | $internal = self::getInternalRepresentation( $data, $field ); |
31 | | - $outData = wfMessage("moodbar-type-$internal")->parse(); |
| 31 | + $outData = wfMessage("moodbar-type-$internal")->params( $data->getProperty('user') )->parse(); |
32 | 32 | break; |
33 | 33 | case 'usertype': |
34 | 34 | $internal = self::getInternalRepresentation( $data, $field ); |