You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#11175 - i18n:collect-phrases -m can't find many important magento phrases - made patterns case-sensitive because translations does not work with uppercase bindings/tags/function names
Copy file name to clipboardExpand all lines: setup/src/Magento/Setup/Test/Unit/Module/I18n/Parser/Adapter/HtmlTest.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ public function testParse()
49
49
'line' => '',
50
50
'quote' => '',
51
51
],
52
+
// `I18N` is not parsed - bindings are case-sensitive
52
53
[
53
54
'phrase' => 'This is test data at right side of attr',
54
55
'file' => $this->testFile,
@@ -97,12 +98,15 @@ public function testParse()
97
98
'line' => '',
98
99
'quote' => '',
99
100
],
101
+
// `<TRANSLATE>` tag is not parsed - only lowercase tags are accepted
100
102
[
101
103
'phrase' => 'This is test content in translate attribute',
102
104
'file' => $this->testFile,
103
105
'line' => '',
104
106
'quote' => '',
105
107
],
108
+
// `TRANSLATE` attribute is not parsed - only lowercase attribute names are accepted
109
+
// `$T()` is not parsed - function names in JS are case-sensitive
106
110
[
107
111
// en_US.csv: "This is ' test ' data for attribute translation with single quotes","This is ' test ' data for attribute translation with single quotes"
108
112
'phrase' => 'This is \\\' test \\\' data for attribute translation with single quotes',
0 commit comments