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: 6 years ago
Size: 3,380 bytes

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

1,599,584 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.