Index: trunk/extensions/MarkAsHelpful/MarkAsHelpful.i18n.php |
— | — | @@ -13,4 +13,20 @@ |
14 | 14 | */ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'mark-as-helpful-desc' => 'Hooks in to specified objects and provides a user interface to mark them as helpful', |
| 17 | + 'mah-mark-text' => 'Mark this as helpful', |
| 18 | + 'mah-you-marked-text' => 'You think this is helpful', |
| 19 | + 'mah-someone-marked-text' => '$1 thinks this is helpful', |
| 20 | + 'mah-undo-mark-text' => 'undo', |
| 21 | + |
| 22 | +); |
| 23 | + |
| 24 | +/** Message documentation (Message documentation) |
| 25 | + * @author Rob Moen |
| 26 | + */ |
| 27 | +$messages['qqq'] = array( |
| 28 | + 'mark-as-helpful-desc' => 'This is a feature in development. See [[mw:MarkAsHelpful]] for background information.', |
| 29 | + 'mah-mark-text' => 'Text to prompt the user to mark this item as helpful', |
| 30 | + 'mah-you-marked-text' => 'Text displayed to the logged in user if they mark an item helpful', |
| 31 | + 'mah-someone-marked-text' => 'Text displayed as to who marked this is helpful, shown if not the user who marked {$1 is the username}', |
| 32 | + 'mah-undo-mark-text' => 'Text for the the undo mark link', |
17 | 33 | ); |
\ No newline at end of file |
Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | |
10 | 10 | var mah = mw.mah = { |
11 | 11 | |
12 | | - selector: '[class^=markashelpful-]', |
| 12 | + selector: '[class^=markashelpful-]', //only selector for now |
13 | 13 | |
14 | 14 | init: function() { |
15 | 15 | var $mahWrap = $( '<div />' ).attr( 'class', 'mw-mah-wrapper' ); |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | var tag = $item.attr( 'class' ), |
28 | 28 | properties = { |
29 | 29 | 'item': tag.split('-')[2], // item id |
30 | | - 'type': tag.split('-')[1] // item type (eg, moodbarfeedbackresponse) |
| 30 | + 'type': tag.split('-')[1] // item type (eg, mbresponse) |
31 | 31 | }; |
32 | 32 | return properties; |
33 | 33 | }, |