| phpMyEdit - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 713 | website / homepage | minor | always | 2012-05-26 12:17 | 2012-05-26 12:17 |
|
|
|||||
| Reporter: | cahuet | Platform: | windows | ||
| Assigned To: | OS: | nt/vista | |||
| Priority: | normal | Version: | |||
| Status: | new | Product Version: | 5.7.1 (stable) | ||
| Product Build: | ??? | Resolution: | open | ||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| 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. |