Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -373,6 +373,7 @@ |
374 | 374 | 'translate-messagereview-done' => 'Reviewed', |
375 | 375 | 'translate-messagereview-apierror-invalidrevision' => 'Translation was not found', |
376 | 376 | 'translate-messagereview-apierror-unknownmessage' => 'Message was not found', |
| 377 | + 'translate-messagereview-apierror-fuzzymessage' => 'Message is marked as fuzzy', |
377 | 378 | 'translate-messagereview-reviews' => 'Reviewed by {{PLURAL:$1|one user|$1 users}}', |
378 | 379 | 'translate-messagereview-reviewswithyou' => 'Reviewed by {{PLURAL:$1|one user|$1 users}} including you', |
379 | 380 | 'translate-messagereview-reviewsyou' => 'Reviewed by you', |
— | — | @@ -588,10 +589,11 @@ |
589 | 590 | |
590 | 591 | 'translate-messagereview-submit' => 'Button label in Special:Translate review mode', |
591 | 592 | 'translate-messagereview-progress' => 'Button label in Special:Translate review mode. Button is disabled.', |
592 | | - 'translate-messagereview-failure' => 'Button label in Special:Translate review mode. Button is disabled. $1 can be {{msg-mw|translate-messagereview-apierror-invalidrevision}} or {{msg-mw|translate-messagereview-apierror-unknownmessage}}.', |
| 593 | + 'translate-messagereview-failure' => 'Button label in Special:Translate review mode. Button is disabled. $1 can be {{msg-mw|translate-messagereview-apierror-invalidrevision}} or {{msg-mw|translate-messagereview-apierror-unknownmessage}} or {{msg-mw|translate-messagereview-apierror-fuzzymessage}}.', |
593 | 594 | 'translate-messagereview-done' => 'Button label in Special:Translate review mode. Button is disabled.', |
594 | 595 | 'translate-messagereview-apierror-invalidrevision' => 'Error message for {{msg-mw|translate-messagereview-failure}}', |
595 | 596 | 'translate-messagereview-apierror-unknownmessage' => 'Error message for {{msg-mw|translate-messagereview-failure}}', |
| 597 | + 'translate-messagereview-apierror-fuzzymessage' => 'Error message for {{msg-mw|translate-messagereview-failure}}', |
596 | 598 | 'translate-messagereview-reviews' => 'Status message in Special:Translate in review mode', |
597 | 599 | 'translate-messagereview-reviewswithyou' => 'Status message in Special:Translate in review mode', |
598 | 600 | 'translate-messagereview-reviewsyou' => 'Status message in Special:Translate in review mode', |
Index: trunk/extensions/Translate/api/ApiTranslationReview.php |
— | — | @@ -33,6 +33,10 @@ |
34 | 34 | $this->dieUsage( 'You made me confused :X', 'unknownmessage' ); |
35 | 35 | } |
36 | 36 | |
| 37 | + if ( $handle->isFuzzy() ) { |
| 38 | + $this->dieUsage( 'Cannot review fuzzy messages', 'fuzzymessage' ); |
| 39 | + } |
| 40 | + |
37 | 41 | $dbw = wfGetDB( DB_MASTER ); |
38 | 42 | $table = 'translate_reviews'; |
39 | 43 | $row = array( |
— | — | @@ -95,6 +99,7 @@ |
96 | 100 | return array_merge( parent::getPossibleErrors(), array( |
97 | 101 | array( 'code' => 'permissiondenied', 'info' => 'You must have translate-messagereview right' ), |
98 | 102 | array( 'code' => 'unknownmessage', 'info' => 'Title $1 does not belong to a message group' ), |
| 103 | + array( 'code' => 'fuzzymessage', 'info' => 'Cannot review fuzzy messages' ), |
99 | 104 | array( 'code' => 'invalidrevision', 'info' => 'Revision $1 is invalid' ), |
100 | 105 | ) ); |
101 | 106 | } |