Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 36deb52

Browse files
committed
MAGETWO-67048: Cannot add translate attribute into the di.xml
1 parent 41c5af8 commit 36deb52

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ protected function _getNodes($file)
5555
}
5656

5757
/**
58-
* Parse nodes pointed out in attribute "translate".
58+
* Parse nodes pointed out in attribute "translate" and add phrases from them.
5959
*
60-
* @param $attributes
61-
* @param $element
60+
* @param \SimpleXMLElement $attributes
61+
* @param \SimpleXMLElement $element
6262
* @return void
6363
*/
64-
protected function parseTranslatableNodes($attributes, $element)
64+
protected function parseTranslatableNodes(\SimpleXMLElement $attributes, \SimpleXMLElement $element)
6565
{
6666
$nodesDelimiter = strpos($attributes['translate'], ' ') === false ? ',' : ' ';
6767
foreach (explode($nodesDelimiter, $attributes['translate']) as $value) {

0 commit comments

Comments
 (0)