Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -243,6 +243,7 @@ |
244 | 244 | 'translate-workflow-set-do', |
245 | 245 | 'translate-workflow-set-doing', |
246 | 246 | 'translate-workflow-set-done', |
| 247 | + 'translate-workflow-set-error-alreadyset', |
247 | 248 | ), |
248 | 249 | ) + $resourcePaths; |
249 | 250 | |
Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -410,6 +410,7 @@ |
411 | 411 | 'translate-workflow-set-do' => 'Set', |
412 | 412 | 'translate-workflow-set-doing' => 'Setting...', |
413 | 413 | 'translate-workflow-set-done' => 'Set!', |
| 414 | + 'translate-workflow-set-error-alreadyset' => 'The requested state is identical to the current state.', |
414 | 415 | 'translate-workflow-autocreated-summary' => 'Automatic creation of page for workflow state $1', |
415 | 416 | 'translate-stats-workflow' => 'Status', |
416 | 417 | |
— | — | @@ -689,6 +690,7 @@ |
690 | 691 | 'translate-workflow-set-do' => 'Submit button text when active', |
691 | 692 | 'translate-workflow-set-doing' => 'Submit button text when waiting for reply from server', |
692 | 693 | 'translate-workflow-set-done' => 'Submit button text when submission completed succesfully', |
| 694 | + 'translate-workflow-set-error-alreadyset' => 'An error message shown in a popup box after pressing the {{msg-mw|translate-workflow-set-do}} button.', |
693 | 695 | 'translate-workflow-autocreated-summary' => 'This is an edit summary for the automatic creation of a workflow state page.', |
694 | 696 | 'translate-stats-workflow' => 'Column header on Special:LanguageStats and Special:MessageGroupStats', |
695 | 697 | 'translate-gethelp' => 'Link to some Translate help page or tutorial. |
— | — | @@ -9698,6 +9700,7 @@ |
9699 | 9701 | 'translate-workflow-set-do' => 'הגדרה', |
9700 | 9702 | 'translate-workflow-set-doing' => 'מתבצעת הגדרה...', |
9701 | 9703 | 'translate-workflow-set-done' => 'הוגדר!', |
| 9704 | + 'translate-workflow-set-error-alreadyset' => 'המצב החדש שביקשת להגדיר כבר מוגדר כעת.', |
9702 | 9705 | 'translate-workflow-autocreated-summary' => 'יצירה אוטומטית של דף עם מצב התרגום $1', |
9703 | 9706 | 'translate-stats-workflow' => 'מצב', |
9704 | 9707 | 'translate-workflowgroup-label' => 'מצבי תרגום', |
Index: trunk/extensions/Translate/api/ApiGroupReview.php |
— | — | @@ -47,6 +47,10 @@ |
48 | 48 | __METHOD__ |
49 | 49 | ); |
50 | 50 | |
| 51 | + if ( $currentState == $requestParams['state'] ) { |
| 52 | + $this->dieUsage( wfMessage( 'translate-workflow-set-error-alreadyset' ), 'sameworkflowstate' ); |
| 53 | + } |
| 54 | + |
51 | 55 | $dbw = wfGetDB( DB_MASTER ); |
52 | 56 | $table = 'translate_groupreviews'; |
53 | 57 | $row = array( |