Browse Source

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

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
553ac1f157
  1. 2
      framework/yii/i18n/I18N.php

2
framework/yii/i18n/I18N.php

@ -78,7 +78,7 @@ class I18N extends Component
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);
if ($formatter === null) {
Yii::warning("$language message from category $category is invalid. Message is: $message.");

Loading…
Cancel
Save