Стоит symfony 2. Установлена php библиотека intl
Цитата | phpinfo() intl Internationalization support enabled version 1.1.0 ICU version 50.1.2 ICU Data version 50.1
Directive Local Value Master Value intl.default_locale ru no value intl.error_level 0 0
|
В одном из контролллеров пишу код:
Код | $fmt = new IntlDateFormatter( 'ru_RU', // 'ru' тоже пробовал ((( IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Moscow', IntlDateFormatter::GREGORIAN, 'MM/dd/yyyy' ); echo $fmt->format(1230548975);
|
Выше подключил соответствующие либы:
Код | use Symfony\Component\Intl\DateFormatter\IntlDateFormatter; use Symfony\Component\Intl\Collator\Collator; use Symfony\Component\Intl\Locale\Locale;
|
Все равно выдает ошибку:
Цитата | An exception has been thrown during the rendering of a template ("The Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $locale value 'ru_RU' behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.")
|
Подскажите пожалуйста в чем может быть проблема? |