Yii Framework Forum: Unrecognized Locale "cz" - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unrecognized Locale "cz" Rate Topic: -----

#1 User is offline   Byakuya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 02-May 11

Posted 27 January 2013 - 04:20 PM

Hello, i have multi-language site with english and czech languages.
When i switch current language to czech, this code:
Yii::app()->dateFormatter->format('d MMMM y, H:m:s', $user->datereg);

generates error Unrecognized locale "cz"
Cause of the error is clear: there is no cz.php file in /framework/i18n/data, there is a file cs_cz.php
The question is how to solve this problem. I can't directly change Yii::app()->locale
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users