Skip to content

Commit 69e182c

Browse files
author
Stanislav Idolov
authored
ENGCOM-2701: [Forwardport] Remove unnecessary translation of HTML tags #17431
2 parents 310d8df + 297b548 commit 69e182c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Form/Renderer/Config/YearRange.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ protected function _getElementHtml(AbstractElement $element)
3232

3333
$from = $element->setValue(isset($values[0]) ? $values[0] : null)->getElementHtml();
3434
$to = $element->setValue(isset($values[1]) ? $values[1] : null)->getElementHtml();
35-
return __(
36-
'<label class="label"><span>from</span></label>'
37-
) . $from . __(
38-
'<label class="label"><span>to</span></label>'
39-
) . $to;
35+
return '<label class="label"><span>' . __('from') . '</span></label>'
36+
. $from .
37+
'<label class="label"><span>' . __('to') . '</span></label>'
38+
. $to;
4039
}
4140
}

app/code/Magento/Catalog/i18n/en_US.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Position,Position
1313
Day,Day
1414
Month,Month
1515
Year,Year
16-
"<label class=""label""><span>from</span></label>","<label class=""label""><span>from</span></label>"
17-
"<label class=""label""><span>to</span></label>","<label class=""label""><span>to</span></label>"
16+
from,from
17+
to,to
1818
[GLOBAL],[GLOBAL]
1919
[WEBSITE],[WEBSITE]
2020
"[STORE VIEW]","[STORE VIEW]"

0 commit comments

Comments
 (0)