Skip to content

Commit 1344ee4

Browse files
Corefixrostyslav-hymon
authored andcommitted
Fix translate issue
Fixes issue where translations are not allowed to be reset by a theme or db change to the original english text.
1 parent c804fc0 commit 1344ee4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Translate.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ protected function _addData($data)
312312
{
313313
foreach ($data as $key => $value) {
314314
if ($key === $value) {
315+
if (isset($this->_data[$key])) {
316+
unset($this->_data[$key]);
317+
}
315318
continue;
316319
}
317320

0 commit comments

Comments
 (0)