CException

Unrecognized locale "".

/home/tungyam1/public_html/framework/i18n/CLocale.php(105)

093      * to obtain an instance of the specified locale.
094      * @param string $id the locale ID (e.g. en_US)
095      * @throws CException if given locale id is not recognized
096      */
097     protected function __construct($id)
098     {
099         $this->_id=self::getCanonicalID($id);
100         $dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath;
101         $dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php';
102         if(is_file($dataFile))
103             $this->_data=require($dataFile);
104         else
105             throw new CException(Yii::t('yii','Unrecognized locale "{locale}".',array('{locale}'=>$id)));
106     }
107 
108     /**
109      * Converts a locale ID to its canonical form.
110      * In canonical form, a locale ID consists of only underscores and lower-case letters.
111      * @param string $id the locale ID to be converted
112      * @return string the locale ID in canonical form
113      */
114     public static function getCanonicalID($id)
115     {
116         return strtolower(str_replace('-','_',$id));
117     }

Stack Trace

#9
+
 /home/tungyam1/public_html/protected/views/news/index.php(163): CBaseController->widget("bootstrap.widgets.TbListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_view"))
158                                 <div class="row-fluid">
159                                     <div class="span12 module_cont module_blog">
160                                         <?php $this->widget('bootstrap.widgets.TbListView',array(
161                                             'dataProvider'=>$dataProvider,
162                                             'itemView'=>'_view',
163                                         )); ?>
164 <!--
165                                         <ul class="pagerblock">
166 
167                                             <li><a class="current" href="#">1</a></li>
168                                             <li><a href="#">2</a></li>
#14
+
 /home/tungyam1/public_html/protected/controllers/NewsController.php(145): CController->render("index", array("dataProvider" => CActiveDataProvider))
140         $dataProvider=new CActiveDataProvider('News',array(
141             'criteria'=>$criteria
142         ));
143         $this->render('index'.(Yii::app()->language=="en_us"?"EN":""),array(
144             'dataProvider'=>$dataProvider,
145         ));
146     }
147 
148     /**
149     * Manages all models.
150     */
#27
+
 /home/tungyam1/public_html/index-test.php(15): CApplication->run()
10 
11 // remove the following line when in production mode
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-19 12:43:32 Apache Yii Framework/1.1.14