/var/www/user593/data/www/kopeyka.com.ua/protected/modules/translate/components/Ei18n.php(270)
258 */ 259 public function getLanguage() 260 { 261 if ($this->_language !== null) 262 return $this->_language; 263 elseif (Yii::app()->getSession()->contains($this->getId())) 264 $language = Yii::app()->getSession()->get($this->getId()); 265 elseif (Yii::app()->request->getParam($this->languageParameter)) 266 $language = Yii::app()->request->getParam($this->languageParameter); 267 else 268 $language = Yii::app()->getRequest()->getPreferredLanguage(); 269 270 if (!key_exists($language, $this->languages)) 271 { 272 if ($language === Yii::app()->sourceLanguage) 273 $language = $this->defaultLanguage; 274 elseif (strpos($language, "_") !== false) 275 { 276 $language = substr($language, 0, 2); 277 if (!key_exists($language, $this->languages)) 278 $language = $this->defaultLanguage; 279 } 280 } 281 $this->_language = $language; 282
#0 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/protected/modules/translate/components/Ei18n.php(270): key_exists(false, array("en" => "English", "ru" => "Русский", "uk" => "Украинский")) 265 elseif (Yii::app()->request->getParam($this->languageParameter)) 266 $language = Yii::app()->request->getParam($this->languageParameter); 267 else 268 $language = Yii::app()->getRequest()->getPreferredLanguage(); 269 270 if (!key_exists($language, $this->languages)) 271 { 272 if ($language === Yii::app()->sourceLanguage) 273 $language = $this->defaultLanguage; 274 elseif (strpos($language, "_") !== false) 275 { |
#1 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/protected/modules/translate/components/Ei18n.php(103): Ei18n->getLanguage() 098 099 if (empty($this->languageParameter)) 100 $this->languageParameter = 'lang'; 101 102 if ($this->autoSetLanguage) 103 $this->setLanguage($this->getLanguage()); 104 105 if (!count($this->languages)) 106 { 107 if (($sourceLanguage = Yii::app()->sourceLanguage) !== null) 108 $this->languages[$sourceLanguage] = $sourceLanguage; |
#2 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/vendor/yiisoft/yii/framework/base/CModule.php(387): Ei18n->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/vendor/yiisoft/yii/framework/base/CModule.php(523): CModule->getComponent("translate") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#4 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/vendor/yiisoft/yii/framework/base/CApplication.php(163): CModule->preloadComponents() 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 |
#5 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/vendor/yiisoft/yii/framework/YiiBase.php(125): CApplication->__construct(array("basePath" => "/var/www/user593/data/www/kopeyka.com.ua/protected/config/..", "defaultController" => "site", "name" => "ТС Копейка", "language" => "ru", ...)) 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#6 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/vendor/yiisoft/yii/framework/YiiBase.php(98): YiiBase::createApplication("CWebApplication", array("basePath" => "/var/www/user593/data/www/kopeyka.com.ua/protected/config/..", "defaultController" => "site", "name" => "ТС Копейка", "language" => "ru", ...)) 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#7 |
+
–
/var/www/user593/data/www/kopeyka.com.ua/public/index.php(43): YiiBase::createWebApplication(array("basePath" => "/var/www/user593/data/www/kopeyka.com.ua/protected/config/..", "defaultController" => "site", "name" => "ТС Копейка", "language" => "ru", ...)) 38 39 $confManager = new yupe\components\ConfigManager(); 40 41 require dirname(__FILE__).'/../vendor/autoload.php'; 42 43 Yii::createWebApplication($confManager->merge($base))->run(); |