Index: branches/wmf/1.18wmf1/extensions/MarkAsHelpful/MarkAsHelpful.i18n.php |
— | — | @@ -43,6 +43,18 @@ |
44 | 44 | 'mah-undo-mark-text' => 'maak ongedaan', |
45 | 45 | ); |
46 | 46 | |
| 47 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 48 | + * @author Wizardist |
| 49 | + */ |
| 50 | +$messages['be-tarask'] = array( |
| 51 | + 'markashelpful-desc' => 'Надае магчымасьць пазначэньня карысных камэнтараў', |
| 52 | + 'mah-mark-text' => 'Пазначыць як карыснае', |
| 53 | + 'mah-you-marked-text' => 'Вы пазначылі гэта карысным', |
| 54 | + 'mah-someone-marked-text' => '{{GENDER:$1|$1 мяркуе, што гэта карысна}}', |
| 55 | + 'mah-undo-mark-text' => 'скасаваць', |
| 56 | + 'mah-action-error' => 'У час выкананьня дзеяньня адбылася памылка', |
| 57 | +); |
| 58 | + |
47 | 59 | /** Breton (Brezhoneg) |
48 | 60 | * @author Y-M D |
49 | 61 | */ |
— | — | @@ -334,11 +346,16 @@ |
335 | 347 | ); |
336 | 348 | |
337 | 349 | /** Ukrainian (Українська) |
| 350 | + * @author A1 |
338 | 351 | * @author Тест |
339 | 352 | */ |
340 | 353 | $messages['uk'] = array( |
341 | 354 | 'markashelpful-desc' => 'Надає інтерфейс користувача для позначання корисних коментарів', |
| 355 | + 'mah-mark-text' => 'Позначити як корисне', |
| 356 | + 'mah-you-marked-text' => 'Ви вважаєте, що це корисне', |
| 357 | + 'mah-someone-marked-text' => '{{GENDER:$1|$1 вважають це корисним}}', |
342 | 358 | 'mah-undo-mark-text' => 'скасувати', |
| 359 | + 'mah-action-error' => 'Не вдалося виконати дію', |
343 | 360 | ); |
344 | 361 | |
345 | 362 | /** Vietnamese (Tiếng Việt) |
Index: branches/wmf/1.18wmf1/extensions/MarkAsHelpful/MarkAsHelpful.php |
— | — | @@ -45,7 +45,6 @@ |
46 | 46 | |
47 | 47 | $wgHooks['BeforePageDisplay'][] = 'MarkAsHelpfulHooks::onPageDisplay'; |
48 | 48 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'MarkAsHelpfulHooks::onLoadExtensionSchemaUpdates'; |
49 | | -$wgHooks['MakeGlobalVariablesScript'][] = 'MarkAsHelpfulHooks::makeGlobalVariablesScript'; |
50 | 49 | |
51 | 50 | // Special pages |
52 | 51 | |
Index: branches/wmf/1.18wmf1/extensions/MarkAsHelpful/MarkAsHelpful.hooks.php |
— | — | @@ -37,10 +37,4 @@ |
38 | 38 | return true; |
39 | 39 | } |
40 | 40 | |
41 | | - public static function makeGlobalVariablesScript( &$vars ) { |
42 | | - global $wgUser; |
43 | | - $vars['mahEditToken'] = $wgUser->editToken(); |
44 | | - return true; |
45 | | - } |
46 | | - |
47 | 41 | } |
Index: branches/wmf/1.18wmf1/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | } |
25 | 25 | }); |
26 | 26 | }, |
27 | | - |
28 | 27 | /* |
29 | 28 | * Return object of item properties |
30 | 29 | */ |
— | — | @@ -37,7 +36,6 @@ |
38 | 37 | }; |
39 | 38 | return properties; |
40 | 39 | }, |
41 | | - |
42 | 40 | /* |
43 | 41 | * Load the current state of the MarkAsHelpful item |
44 | 42 | */ |
— | — | @@ -58,7 +56,8 @@ |
59 | 57 | data: request, |
60 | 58 | success: function( data ) { |
61 | 59 | |
62 | | - if ( data && data.getmarkashelpfulitem.result == 'success' && |
| 60 | + if ( data.getmarkashelpfulitem && |
| 61 | + data.getmarkashelpfulitem.result == 'success' && |
63 | 62 | data.getmarkashelpfulitem.formatted |
64 | 63 | ) { |
65 | 64 | var $content = $( data.getmarkashelpfulitem.formatted ); |
— | — | @@ -88,7 +87,7 @@ |
89 | 88 | 'page': mw.config.get( 'wgPageName' ), |
90 | 89 | 'useragent': clientData.name + '/' + clientData.versionNumber, |
91 | 90 | 'system': clientData.platform, |
92 | | - 'token': mw.config.get( 'mahEditToken' ), |
| 91 | + 'token': mw.user.tokens.get( 'editToken' ), |
93 | 92 | 'format': 'json' |
94 | 93 | }, props ); |
95 | 94 | |
— | — | @@ -101,7 +100,6 @@ |
102 | 101 | }, |
103 | 102 | dataType: 'json' |
104 | 103 | } ); |
105 | | - |
106 | 104 | } |
107 | 105 | }; |
108 | 106 | |
Property changes on: branches/wmf/1.18wmf1/extensions/MarkAsHelpful |
___________________________________________________________________ |
Modified: svn:mergeinfo |
109 | 107 | Merged /trunk/extensions/MarkAsHelpful:r108085-108659 |