Fix partial block translation for non-editing msg
authorDayllan Maza <dmaza@wikimedia.org>
Thu, 8 Nov 2018 20:32:37 +0000 (15:32 -0500)
committerDayllan Maza <dmaza@wikimedia.org>
Fri, 16 Nov 2018 04:11:11 +0000 (23:11 -0500)
The current phrasing for non-editing partial blocks was not clear.
Adding 'specified' as part of the message to avoid confusion.

Bug: T208806
Change-Id: If6fe6397060a38dd5036d2c0c1d58aa9e798ecc1

languages/i18n/en.json
tests/phpunit/includes/logging/BlockLogFormatterTest.php

index 39ba360..48f938f 100644 (file)
        "logentry-block-reblock": "$1 {{GENDER:$2|changed}} block settings for {{GENDER:$4|$3}} with an expiration time of $5 $6",
        "logentry-partialblock-block": "$1 {{GENDER:$2|blocked}} {{GENDER:$4|$3}} from editing {{PLURAL:$8||the pages}} $7 with an expiration time of $5 $6",
        "logentry-partialblock-reblock": "$1 {{GENDER:$2|changed}} block settings for {{GENDER:$4|$3}} preventing edits on {{PLURAL:$8||the pages}} $7 with an expiration time of $5 $6",
-       "logentry-non-editing-block-block": "$1 {{GENDER:$2|blocked}} {{GENDER:$4|$3}} from non-editing actions with an expiration time of $5 $6",
-       "logentry-non-editing-block-reblock": "$1 {{GENDER:$2|changed}} block settings for {{GENDER:$4|$3}} for non-editing actions with an expiration time of $5 $6",
+       "logentry-non-editing-block-block": "$1 {{GENDER:$2|blocked}} {{GENDER:$4|$3}} from specified non-editing actions with an expiration time of $5 $6",
+       "logentry-non-editing-block-reblock": "$1 {{GENDER:$2|changed}} block settings for {{GENDER:$4|$3}} for specified non-editing actions with an expiration time of $5 $6",
        "logentry-suppress-block": "$1 {{GENDER:$2|blocked}} {{GENDER:$4|$3}} with an expiration time of $5 $6",
        "logentry-suppress-reblock": "$1 {{GENDER:$2|changed}} block settings for {{GENDER:$4|$3}} with an expiration time of $5 $6",
        "logentry-import-upload": "$1 {{GENDER:$2|imported}} $3 by file upload",
index 85ccebc..0041b9c 100644 (file)
@@ -431,7 +431,7 @@ class BlockLogFormatterTest extends LogFormatterTestCase {
                                        ],
                                ],
                                [
-                                       'text' => 'Sysop blocked Logtestuser from non-editing actions'
+                                       'text' => 'Sysop blocked Logtestuser from specified non-editing actions'
                                                . ' with an expiration time of indefinite (anonymous users only)',
                                        'api' => [
                                                'duration' => 'infinite',