diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 431fee414b4..648c13bc1e6 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -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].'
'; - // 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