PHP Classes

File: class.dictionnaires.php

Recommend this page to a friend!
  Classes of Lionel F. Lebeau   PHP i18N Library   class.dictionnaires.php  
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
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

You need to be a registered user and login to get this file.

Login Immediately with your account on: