/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/i18n/gettext/CGettextMoFile.php(77)
65 * @throws CException 66 */ 67 public function load($file,$context) 68 { 69 if(!($fr=@fopen($file,'rb'))) 70 throw new CException(Yii::t('yii','Unable to read file "{file}".', 71 array('{file}'=>$file))); 72 73 if(!@flock($fr,LOCK_SH)) 74 throw new CException(Yii::t('yii','Unable to lock file "{file}" for reading.', 75 array('{file}'=>$file))); 76 77 $array=unpack('c',$this->readByte($fr,4)); 78 $magic=current($array); 79 if($magic==-34) 80 $this->useBigEndian=false; 81 elseif($magic==-107) 82 $this->useBigEndian=true; 83 else 84 throw new CException(Yii::t('yii','Invalid MO file: {file} (magic: {magic}).', 85 array('{file}'=>$file,'{magic}'=>$magic))); 86 87 if(($revision=$this->readInteger($fr))!=0) 88 throw new CException(Yii::t('yii','Invalid MO file revision: {revision}.', 89 array('{revision}'=>$revision)));
#0 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/i18n/gettext/CGettextMoFile.php(77):
unpack("c", "") 72 73 if(!@flock($fr,LOCK_SH)) 74 throw new CException(Yii::t('yii','Unable to lock file "{file}" for reading.', 75 array('{file}'=>$file))); 76 77 $array=unpack('c',$this->readByte($fr,4)); 78 $magic=current($array); 79 if($magic==-34) 80 $this->useBigEndian=false; 81 elseif($magic==-107) 82 $this->useBigEndian=true; |
#1 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSMessageSource.php(83): CGettextMoFile->load("/home/www/demonstrations/master.sondages.pro/htdocs/application/...", "") 78 if ($this->useMoFile) { 79 $file = new CGettextMoFile($this->useBigEndian); 80 } else { 81 $file = new CGettextPoFile(); 82 } 83 $messagesGettext = $file->load($messageFile, $category); 84 } else { 85 $messagesGettext = array(); 86 } 87 88 /* Messages by DB */ |
#2 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/i18n/CMessageSource.php(103):
LSMessageSource->loadMessages("", "te") 098 */ 099 protected function translateMessage($category,$message,$language) 100 { 101 $key=$language.'.'.$category; 102 if(!isset($this->_messages[$key])) 103 $this->_messages[$key]=$this->loadMessages($category,$language); 104 if(isset($this->_messages[$key][$message]) && $this->_messages[$key][$message]!=='') 105 return $this->_messages[$key][$message]; 106 elseif($this->hasEventHandler('onMissingTranslation')) 107 { 108 $event=new CMissingTranslationEvent($this,$category,$message,$language); |
#3 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/i18n/CMessageSource.php(85):
CMessageSource->translateMessage("", "Afrikaans", "te") 80 public function translate($category,$message,$language=null) 81 { 82 if($language===null) 83 $language=Yii::app()->getLanguage(); 84 if($this->forceTranslation || $language!==$this->getLanguage()) 85 return $this->translateMessage($category,$message,$language); 86 else 87 return $message; 88 } 89 90 /** |
#4 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/YiiBase.php(620): CMessageSource->translate("", "Afrikaans", "te") 615 if(self::$_app!==null) 616 { 617 if($source===null) 618 $source=($category==='yii'||$category==='zii')?'coreMessages':'messages'; 619 if(($source=self::$_app->getComponent($source))!==null) 620 $message=$source->translate($category,$message,$language); 621 } 622 if($params===array()) 623 return $message; 624 if(!is_array($params)) 625 $params=array($params); |
#5 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/helpers/common_helper.php(30): YiiBase::t("", "Afrikaans", array(), LSMessageSource, ...) 25 * @param string $sLanguage 26 * @return string 27 */ 28 function gT($sToTranslate, $sEscapeMode = 'html', $sLanguage = null) 29 { 30 return quoteText(Yii::t('', $sToTranslate, array(), null, $sLanguage), $sEscapeMode); 31 } 32 33 /** 34 * As gT(), but echoes directly 35 * |
#6 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/helpers/surveytranslator_helper.php(82): gT("Afrikaans") 77 if (isset($result[$sLanguageCode][$bOrderByNative])) { 78 return $result[$sLanguageCode][$bOrderByNative]; 79 } 80 81 // Afrikaans 82 $supportedLanguages['af']['description'] = gT('Afrikaans'); 83 $supportedLanguages['af']['nativedescription'] = 'Afrikaans'; 84 $supportedLanguages['af']['rtl'] = false; 85 $supportedLanguages['af']['dateformat'] = 1; 86 $supportedLanguages['af']['radixpoint'] = 1; 87 $supportedLanguages['af']['momentjs'] = 'af'; |
#7 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/helpers/surveytranslator_helper.php(1248): getLanguageData(false, "te") 1243 } 1244 1245 1246 function getLanguageRTL($sLanguageCode) 1247 { 1248 $aLanguageData = getLanguageData(false, $sLanguageCode); 1249 if (isset($aLanguageData[$sLanguageCode]) && isset($aLanguageData[$sLanguageCode]['rtl'])) { 1250 return $aLanguageData[$sLanguageCode]['rtl']; 1251 } else { 1252 return false; 1253 } |
#8 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/TemplateConfig.php(242): getLanguageRTL("te") 237 * @param TemplateConfiguration $oTemplate 238 * @return string[] 239 */ 240 protected function getDependsPackages($oTemplate) 241 { 242 $dir = (getLanguageRTL(App()->getLanguage())) ? 'rtl' : 'ltr'; 243 244 /* Core package */ 245 $packages[] = 'limesurvey-public'; 246 $packages[] = 'template-core'; 247 $packages[] = ($dir == "ltr") ? 'template-core-ltr' : 'template-core-rtl'; // Awesome Bootstrap Checkboxes |
#9 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/TemplateConfiguration.php(1250): TemplateConfig->getDependsPackages(TemplateConfiguration) 1245 // Options are optional 1246 $this->setOptions(); 1247 1248 // Not mandatory (use package dependances) 1249 $this->setCssFramework(); 1250 $this->packages = $this->getDependsPackages($this); 1251 if (!empty($this->packages_to_load)) { 1252 $templateToLoadPackages = json_decode($this->packages_to_load); 1253 if (!empty($templateToLoadPackages->add)) { 1254 $this->packages = array_merge($templateToLoadPackages->add, $this->packages); 1255 } |
#10 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/TemplateConfiguration.php(1697): TemplateConfiguration->setThisTemplate() 1692 } 1693 } 1694 1695 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1696 $this->setMotherTemplates(); // Recursive mother templates configuration 1697 $this->setThisTemplate(); // Set the main config values of this template 1698 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1699 $this->removeFiles(); 1700 $this->getshowpopups(); 1701 1702 if (!empty($sTemplateName) && !empty($iSurveyId)) { |
#11 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/TemplateConfiguration.php(1188): TemplateConfiguration->prepareTemplateRendering("vanilla", "") 1183 { 1184 if (!empty($this->template->extends)) { 1185 $sMotherTemplateName = $this->template->extends; 1186 $instance = TemplateConfiguration::getInstanceFromTemplateName($sMotherTemplateName); 1187 $instance->template->checkTemplate(); 1188 $this->oMotherTemplate = $instance->prepareTemplateRendering($sMotherTemplateName, ''); 1189 } 1190 } 1191 1192 /** 1193 * Get the closest template in the hierarchy that has the definition for $attribute |
#12 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/TemplateConfiguration.php(1696): TemplateConfiguration->setMotherTemplates() 1691 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = array(); 1692 } 1693 } 1694 1695 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1696 $this->setMotherTemplates(); // Recursive mother templates configuration 1697 $this->setThisTemplate(); // Set the main config values of this template 1698 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1699 $this->removeFiles(); 1700 $this->getshowpopups(); 1701 |
#13 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/Template.php(507): TemplateConfiguration->prepareTemplateRendering("skelvanilla", null) 502 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 503 } 504 505 if (empty(self::$instance) || ! self::isCorrectInstance($sTemplateName)) { 506 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 507 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 508 } 509 510 return self::getLastInstance(false); 511 } 512 |
#14 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/application/controllers/SurveysController.php(34): Template::getInstance("skelvanilla") 29 $lang = App()->getConfig('defaultlang'); 30 } 31 App()->setLanguage($lang); 32 33 34 $oTemplate = Template::model()->getInstance(getGlobalSetting('defaulttheme')); 35 $this->sTemplate = $oTemplate->sTemplateName; 36 37 $aData = array( 38 'publicSurveys' => Survey::model()->active()->open()->with('languagesettings')->findAllPublic(), 39 'futureSurveys' => Survey::model()->active()->registration()->with('languagesettings')->findAllPublic(), |
#15 |
unknown(0): SurveysController->actionPublicList("te")
|
#16 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/actions/CAction.php(115):
ReflectionMethod->invokeArgs(SurveysController, array("te")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#17 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/actions/CInlineAction.php(47):
CAction->runWithParamsInternal(SurveysController, ReflectionMethod, array("lang" => "te")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#18 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("lang" => "te")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#19 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#20 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#21 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/CWebApplication.php(282):
CController->run("") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#22 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/web/CWebApplication.php(141):
CWebApplication->runController("") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#23 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/third_party/yiisoft/yii/framework/base/CApplication.php(185):
CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#24 |
+
–
/home/www/demonstrations/master.sondages.pro/htdocs/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |