Skip to content

Commit 02c3b17

Browse files
committed
AC-3226::i18n:collect-phrases does not include titles in layout files
1 parent 5486b47 commit 02c3b17

File tree

1 file changed

+2
-0
lines changed
  • setup/src/Magento/Setup/Module/I18n/Parser/Adapter

1 file changed

+2
-0
lines changed

setup/src/Magento/Setup/Module/I18n/Parser/Adapter/Xml.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ protected function _getNodes($file)
5151

5252
if ($xml) {
5353
$nodes = $xml->xpath('//*[@translate|@translatable]');
54+
5455
/* To add title of all xml files in translation csv */
5556
if($xml->head){
5657
$nodes['title'] = $xml->head;
5758
}
59+
5860
unset($xml);
5961

6062
return is_array($nodes) ? $nodes : [];

0 commit comments

Comments
 (0)