From 3331c5fcd710260b09e13cf2e616d43d94d63bea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 30 Mar 2011 15:53:51 +0000 Subject: [PATCH] Fix: Fix autodetect language for greek. --- htdocs/core/class/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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