In core/modules/views/src/Tests/ModuleTest.php there is a translatable string "Make sure that a broken handler of type: @type are created". Grammatically this string has to be "Make sure that a broken handler of type: @type is created".
As this text string is the source for translation I'll create this issue, which of course have only a minor priority.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

R.Hendel created an issue. See original summary.

R.Hendel’s picture

pguillard’s picture

Status: Active » Needs review
FileSize
867 bytes

@R.Hendel : I hope I didn't shortcut your work, it seems that you assigned the bug whe creating it.

R.Hendel’s picture

Status: Needs review » Reviewed & tested by the community

I've looking over the patch and it does exactly what expected:
String "Make sure that a broken handler of type: @type are created" is replaced trough string "Make sure that a broken handler of type: @type is created".

lucastockmann’s picture

+1 rtbc

Blanca.Esqueda’s picture

+1 rtbc

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -string
+++ b/core/modules/views/src/Tests/ModuleTest.php
@@ -54,7 +54,7 @@ public function testViewsGetHandler() {
-      $this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), t('Make sure that a broken handler of type: @type are created', array('@type' => $type)));
+      $this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), t('Make sure that a broken handler of type: @type is created', array('@type' => $type)));

This is using t() in an assertion message which is incorrect too - let's fix that here.

snehi’s picture

@Alex can you give an idea what to do with t()

snehi’s picture

Please review attached.

snehi’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 9: grammatical_error_text-2574719-9-D8.patch, failed testing.

Status: Needs work » Needs review
snehi’s picture

Assigned: R.Hendel » snehi
pguillard’s picture

I guess this is RTBC+1 but postponed to Drupal 8.1.0

Chi’s picture

Status: Needs review » Needs work

format_string() is a depreciated function. Let's use FormattableMarkup instead.

chegor’s picture

Status: Needs work » Needs review
FileSize
1.15 KB

Please review attached.

Status: Needs review » Needs work

The last submitted patch, 16: 2574719-16.patch, failed testing.

Chi’s picture

I propose ending the message with a period and wrapping it with single quotation marks instead of double as it is done for all other messages in that file. Just for consistency.

Chi’s picture

Assigned: snehi » Unassigned
Status: Needs review » Reviewed & tested by the community

The last submitted patch, 16: 2574719-16.patch, failed testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 19: 2574719-19.patch, failed testing.

Chi’s picture

Status: Needs work » Reviewed & tested by the community

Back to RTBC since PHP 5.3 and PHP 5.4 tests should not affect D8 issues.

The last submitted patch, 16: 2574719-16.patch, failed testing.

Chi’s picture

xjm’s picture

Title: Grammatical error in text string "Make sure that a broken handler of type: @type are created" » Grammatical error in assertion message "Make sure that a broken handler of type: @type are created"

I started to move this to 8.1.x per https://www.drupal.org/core/d8-allowed-changes#minor, but actually the string is only on a test assertion message, which is not supposed to be translated in the first place. So keeping filed against 8.0.x for now to discuss more whether this should go into a patch release or not. Thanks for the patch.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Working from @xjm'a post release triage document, this is a test only change and therefore can be committed at any time. Committed 801cc23 and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed f711f95 on 8.1.x
    Issue #2574719 by chegor, snehi, pguillard, Chi: Grammatical error in...

  • alexpott committed 801cc23 on
    Issue #2574719 by chegor, snehi, pguillard, Chi: Grammatical error in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.