phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
713 website / homepage minor always 2012-05-26 12:17 2012-05-26 12:17
cahuet windows  
nt/vista  
normal  
new 5.7.1 (stable)  
??? open  
none  
none  
Language selection
Cannot change default lkanguage by setting $opts['language'].
Try it with French
Work around by changing the method 'make_language_labels' as follow ( change on line 395 of file phpMyEdit.class.php - substr($language,0,2) in place of $language ):

function make_language_labels($language) /* {{{ */
{
// just try the first language and variant
// this isn't content-negotiation rfc compliant
$language = strtoupper($language);
// try the full language w/ variant
$file = $this->dir['lang'].'PME.lang.'.substr($language,0,2).'.inc';
while (! file_exists($file)) {
$pos = strrpos($language, '-');
if ($pos === false) {
$file = $this->dir['lang'].'PME.lang.EN.inc';
break;
}
$language = substr($language, 0, $pos);
$file = $this->dir['lang'].'PME.lang.'.$language.'.inc';
}
$ret = @include($file);
if (! is_array($ret)) {
return $ret;
}
$small = array(
'Search' => 'v',
'Hide' => '^',
'Clear' => 'X',
'Query' => htmlspecialchars('>'));
if ((!$this->nav_text_links() && !$this->nav_graphic_links())
|| !isset($ret['Search']) || !isset($ret['Query'])
|| !isset($ret['Hide']) || !isset($ret['Clear'])) {
foreach ($small as $key => $val) {
$ret[$key] = $val;
}
}
return $ret;
} /* }}} */

There are no notes attached to this bug.