Skip to content

Commit

Permalink
MAGETWO-46678: Process public PRs and Issues
Browse files Browse the repository at this point in the history
- fixed public GitHub issue #2630
  • Loading branch information
Oleksii Korshenko committed Dec 17, 2015
1 parent b6ca8f1 commit 66a6134
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
data-validate="{required:true, 'validate-email':true}"
id="customer-email" />
<!-- ko template: 'ui/form/element/helper/tooltip' --><!-- /ko -->
<span class="note" data-bind="fadeVisible: isPasswordVisible() == false"><!-- ko i18n: "You can create an account after checkout."--><!-- /ko --></span>
<span class="note" data-bind="fadeVisible: isPasswordVisible() == false"><!-- ko i18n: 'You can create an account after checkout.'--><!-- /ko --></span>
</div>
</div>

Expand Down
14 changes: 14 additions & 0 deletions setup/src/Magento/Setup/Module/I18n/Parser/Adapter/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
*/
class Html extends AbstractAdapter
{
/**
* Covers
* <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
* <th class="col col-method" data-bind="i18n: 'Select Method'"></th>
*/
const HTML_FILTER = "/i18n:\s?'(?<value>.*)'/i";

/**
* {@inheritdoc}
*/
Expand All @@ -34,5 +41,12 @@ protected function _parse()
$this->_addPhrase($quote . $directive[2] . $quote);
}
}

preg_match_all(self::HTML_FILTER, $data, $results, PREG_SET_ORDER);
for ($i = 0; $i < count($results); $i++) {
if (!empty($results[$i]['value'])) {
$this->_addPhrase($results[$i]['value']);
}
}
}
}

0 comments on commit 66a6134

Please sign in to comment.