[med-svn] r568 - trunk/community/website/inc

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Thu Oct 4 19:07:57 UTC 2007


Author: hanska-guest
Date: 2007-10-04 19:07:57 +0000 (Thu, 04 Oct 2007)
New Revision: 568

Modified:
   trunk/community/website/inc/locale.inc.php
Log:
Some more debugging...


Modified: trunk/community/website/inc/locale.inc.php
===================================================================
--- trunk/community/website/inc/locale.inc.php	2007-10-04 19:06:26 UTC (rev 567)
+++ trunk/community/website/inc/locale.inc.php	2007-10-04 19:07:57 UTC (rev 568)
@@ -32,12 +32,13 @@
 // let's sort them by priority, highest first
 krsort($langs);
 
-$locale = "en_US";
+$locale = "it_IT";
 $priority = "1.0";
 
 foreach ($langs as $index => $language) {
 //	preg_match("/([a-z]+)_[A-Z]+/", $language, $matches);
 //	$test = $matches[1];
+	var_dump($language);
 	if (in_array($language, $available)) {
 		$locale = $language;
 		$priority = $index;
@@ -45,6 +46,8 @@
 	}
 }
 
+var_dump($locale);
+
 if ($priority < "0.8") {
 	$show_locale_warning = true;
 }




More information about the debian-med-commit mailing list