debugAndContinue('[FOUND]['.$current_lang.'] value:[<b>'.$dic_data[$key].'</b>] and update cache ( #cached_languages ).',$this->_debug_lng);
return$dic_data[$key];
}else{
debugAndContinue('[INFO] lng key:<b>'.$key.'</b> not found from:'.$current_module.'/'.$current_lang,$this->_debug_lng);
}
else{
debugAndContinue('[INFO] lng key:<b>'.$key.'</b> not found from:'.$current_module.'/'.$current_lang.', try now common module language.',$this->_debug_lng);
}
//Try common module :
...
...
@@ -498,9 +512,8 @@ class crxFrameworkWebCommon {
}else{
debugAndContinue('[INFO] lng key:<b>'.$key.'</b> not found from:common/'.$current_lang,$this->_debug_lng);
debugAndContinue('[INFO] Loading php lng file : '.$path_cache_lang_include_php_file.' lang ('.$this->_currentLanguageInUse.')',DEBUG_LNG_LAYER);
require($path_cache_lang_include_php_file);
require($path_cache_lang_include_php_file);
//require_once doesnt work now.
/*if($this->_debug_lng){
var_dump($path_cache_lang_include_php_file);
var_dump($this->_dic);
echo time();
}*/
if(empty($this->_dic)||!($this->_dic)){
debugAndContinue('[INFO] Language values not found lang => '.$lang.', module=>'.$this->_current_module_information['module_directory'],DEBUG_LNG_LAYER);
}else{
debugAndContinue('[INFO] Language ('.count($this->_dic).')values found, lang => '.$lang.', module=>'.$this->_current_module_information['module_directory'],DEBUG_LNG_LAYER);
debugAndContinue('[INFO] Language values not found lang => '.$lang.', module=>'.$module_dir_name,DEBUG_LNG_LAYER);
}
else{
debugAndContinue('[INFO] Language ('.count($this->_dic).')values found, lang => '.$lang.', module=>'.$module_dir_name,DEBUG_LNG_LAYER);
}
return$this->_dic;
}
else{
...
...
@@ -159,7 +176,7 @@ class crxLanguage extends crxFramework{
debugAndContinue('[INFO] Language values not found lang => '.$lang.', module=>'.$this->_current_module_information['module_directory'],$this->_debug_lng);
debugAndContinue('[INFO] Language values not found lang => '.$lang.', module=>'.$module_dir_name,$this->_debug_lng);