| version 1.203, 2007/09/12 15:02:46 |
version 1.204, 2007/09/16 12:57:07 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.202 2007-09-10 08:40:48 michal Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.203 2007-09-12 15:02:46 michal Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
|
|
| |
|
| // try the full language w/ variant |
// try the full language w/ variant |
| $file = $this->dir['lang'].'PME.lang.'.$language.'.inc'; |
$file = $this->dir['lang'].'PME.lang.'.$language.'.inc'; |
| |
while (! file_exists($file)) { |
| if (! file_exists($file)) { |
$pos = strrpos($language, '-'); |
| // try the language w/o variant |
if ($pos === false) { |
| $file = $this->dir['lang'].'PME.lang.'.substr($language,0,2).'.inc'; |
$file = $this->dir['lang'].'PME.lang.EN.inc'; |
| } |
break; |
| if (! file_exists($file)) { |
} |
| // default to classical English |
$language = substr($language, 0, $pos); |
| $file = $this->dir['lang'].'PME.lang.EN.inc'; |
$file = $this->dir['lang'].'PME.lang.'.$language.'.inc'; |
| } |
} |
| $ret = @include($file); |
$ret = @include($file); |
| if (! is_array($ret)) { |
if (! is_array($ret)) { |