Fix: Fix autodetect language for greek.
This commit is contained in:
parent
95ce2259b5
commit
3331c5fcd7
@ -96,10 +96,10 @@ class Translate {
|
||||
$codetouse=$langlist[0];
|
||||
}
|
||||
else $codetouse=$srclang;
|
||||
|
||||
// We redefine $srclang
|
||||
$langpart=explode("_",$codetouse);
|
||||
//print "Short before _ : ".$langpart[0].'/ Short after _ : '.$langpart[1].'<br>';
|
||||
|
||||
// Array to convert short lang code into other long code.
|
||||
$longforshort=array('ar'=>'ar_SA', 'el'=>'el_GR', 'ca'=>'ca_ES', 'en'=>'en_US', 'nb'=>'nb_NO', 'no'=>'nb_NO');
|
||||
if (isset($langpart[1])) // If it's for a codetouse that is a long code xx_YY
|
||||
|
||||
Loading…
Reference in New Issue
Block a user