| Index
» Projects
» phpMyEdit
» Bug list
» Bug #713 |
 |
|
Viewing Bug Advanced Details |
[ Jump to Bugnotes ]
[ Bug History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000713 |
website / homepage |
minor |
always |
2012-05-26 12:17 |
2012-05-26 12:17 |
|
|
|
Reporter |
cahuet |
View Status |
public |
|
|
Assigned To |
|
|
Priority |
normal |
Resolution |
open |
Platform |
windows |
|
Status |
new |
Duplicate ID |
|
OS |
nt/vista |
|
Projection |
none |
|
Version |
|
|
ETA |
none |
|
Product Version |
5.7.1 (stable) |
|
|
Product Build |
??? |
|
|
Votes |
1 |
|
|
|
Summary |
Language selection |
|
Description |
Cannot change default lkanguage by setting $opts['language']. |
|
Steps To Reproduce |
Try it with French |
|
Additional Information / Solution |
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;
} /* }}} */ |
|
Attached Files |
|
|
|
|
There are no notes attached to this bug. |
|
|