Update copy

This commit is contained in:
Pavel Dohnal
2025-01-20 08:39:57 +01:00
committed by Rostislav Wolný
parent ce9cfb9a3f
commit c052130a60
3 changed files with 4 additions and 4 deletions

View File

@ -53,6 +53,6 @@ class ThreeColumn extends Pattern {
protected function get_title(): string { // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps protected function get_title(): string { // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
/* translators: Name of a content pattern used as starting content of an email */ /* translators: Name of a content pattern used as starting content of an email */
return __('3 Column', 'mailpoet'); return __('3 Columns', 'mailpoet');
} }
} }

View File

@ -69,6 +69,6 @@ class TwoColumn extends Pattern {
protected function get_title(): string { // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps protected function get_title(): string { // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
/* translators: Name of a content pattern used as starting content of an email */ /* translators: Name of a content pattern used as starting content of an email */
return __('2 Column', 'mailpoet'); return __('2 Columns', 'mailpoet');
} }
} }

View File

@ -23,7 +23,7 @@ class PatternsControllerTest extends \MailPoetTest {
$this->assertArrayHasKey('categories', $threeColumnContent); $this->assertArrayHasKey('categories', $threeColumnContent);
$this->assertEquals('mailpoet/3-column-content', $threeColumnContent['name']); $this->assertEquals('mailpoet/3-column-content', $threeColumnContent['name']);
$this->assertStringContainsString('A three-column layout organizes information into sections', $threeColumnContent['content']); $this->assertStringContainsString('A three-column layout organizes information into sections', $threeColumnContent['content']);
$this->assertEquals('3 Column', $threeColumnContent['title']); $this->assertEquals('3 Columns', $threeColumnContent['title']);
$this->assertEquals(['email-contents'], $threeColumnContent['categories']); $this->assertEquals(['email-contents'], $threeColumnContent['categories']);
$twoColumnContent = array_pop($blockPatterns); $twoColumnContent = array_pop($blockPatterns);
@ -34,7 +34,7 @@ class PatternsControllerTest extends \MailPoetTest {
$this->assertArrayHasKey('categories', $twoColumnContent); $this->assertArrayHasKey('categories', $twoColumnContent);
$this->assertEquals('mailpoet/2-column-content', $twoColumnContent['name']); $this->assertEquals('mailpoet/2-column-content', $twoColumnContent['name']);
$this->assertStringContainsString('A two-column layout organizes information into sections', $twoColumnContent['content']); $this->assertStringContainsString('A two-column layout organizes information into sections', $twoColumnContent['content']);
$this->assertEquals('2 Column', $twoColumnContent['title']); $this->assertEquals('2 Columns', $twoColumnContent['title']);
$this->assertEquals(['email-contents'], $twoColumnContent['categories']); $this->assertEquals(['email-contents'], $twoColumnContent['categories']);
$oneColumnContent = array_pop($blockPatterns); $oneColumnContent = array_pop($blockPatterns);