Skip to content

Commit f96096b

Browse files
committed
Fixed error message for duplicates phrases not allowed.
1 parent ce82076 commit f96096b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/tools/Magento/Tools/I18n/Pack/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function createDuplicatesPhrasesError($duplicates)
100100
/** @var \Magento\Tools\I18n\Dictionary\Phrase $phrase */
101101
$phrase = $phrases[0];
102102
$error .= sprintf(
103-
"The phrase \"%s\" is translated differently in %d places.\n",
103+
"The phrase \"%s\" is translated in %d places.\n",
104104
$phrase->getPhrase(),
105105
count($phrases)
106106
);

dev/tools/Magento/Tools/I18n/Test/Unit/Pack/GeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ public function testGenerateEmptyFile()
110110
public function testGenerateWithNotAllowedDuplicatesAndDuplicatesExist()
111111
{
112112
$error = "Duplicated translation is found, but it is not allowed.\n"
113-
. "The phrase \"phrase1\" is translated differently in 1 places.\n"
114-
. "The phrase \"phrase2\" is translated differently in 1 places.\n";
113+
. "The phrase \"phrase1\" is translated in 1 places.\n"
114+
. "The phrase \"phrase2\" is translated in 1 places.\n";
115115
$this->setExpectedException('\RuntimeException', $error);
116116

117117
$allowDuplicates = false;

0 commit comments

Comments
 (0)