File: |
class.dictionnaires.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Translation class |
Class: |
PHP i18N Library
Translate application texts loaded from XML files |
Author: |
By Lionel F. Lebeau |
Last change: |
In public function i18N_T($orig,$context=null)
replace
foreach($props as $key => $value){
if(eval('return('.(string)$context.$key.');')){
if($this->$orig->$key->cible != ''){
unset($props);
return $this->$orig->$key->cible;
}else{
unset($props);
return $this->$orig->$key->source;
}
}
}
with
if(isset($props[$context])){
if($props[$context]->cible != ''){
return $props[$context]->cible;
}else{
return $props[$context]->source;
}
}else{
return '';
} |
Date: |
8 years ago |
Size: |
3,380 bytes |
|
|
|