Commit 553ac1f1 by Carsten Brandt

as we have a replacement, do not check for intl MessageFormatter

parent a6b7d75b
...@@ -78,7 +78,7 @@ class I18N extends Component ...@@ -78,7 +78,7 @@ class I18N extends Component
return $message; return $message;
} }
if (class_exists('MessageFormatter', false) && preg_match('~{\s*[\d\w]+\s*,~u', $message)) { if (preg_match('~{\s*[\d\w]+\s*,~u', $message)) {
$formatter = new MessageFormatter($language, $message); $formatter = new MessageFormatter($language, $message);
if ($formatter === null) { if ($formatter === null) {
Yii::warning("$language message from category $category is invalid. Message is: $message."); Yii::warning("$language message from category $category is invalid. Message is: $message.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment