[med-svn] r567 - in trunk/community/website: inc locale

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Thu Oct 4 19:06:26 UTC 2007


Author: hanska-guest
Date: 2007-10-04 19:06:26 +0000 (Thu, 04 Oct 2007)
New Revision: 567

Added:
   trunk/community/website/locale/en_US/
   trunk/community/website/locale/it_IT/
Removed:
   trunk/community/website/locale/en/
   trunk/community/website/locale/it/
Modified:
   trunk/community/website/inc/locale.inc.php
Log:
Trying the other way around.


Modified: trunk/community/website/inc/locale.inc.php
===================================================================
--- trunk/community/website/inc/locale.inc.php	2007-10-04 18:59:18 UTC (rev 566)
+++ trunk/community/website/inc/locale.inc.php	2007-10-04 19:06:26 UTC (rev 567)
@@ -32,14 +32,14 @@
 // let's sort them by priority, highest first
 krsort($langs);
 
-$locale = "en";
+$locale = "en_US";
 $priority = "1.0";
 
 foreach ($langs as $index => $language) {
-	preg_match("/([a-z]+)_[A-Z]+/", $language, $matches);
-	$test = $matches[1];
-	if (in_array($test, $available)) {
-		$locale = $test;
+//	preg_match("/([a-z]+)_[A-Z]+/", $language, $matches);
+//	$test = $matches[1];
+	if (in_array($language, $available)) {
+		$locale = $language;
 		$priority = $index;
 		break;
 	}

Copied: trunk/community/website/locale/en_US (from rev 566, trunk/community/website/locale/en)

Copied: trunk/community/website/locale/it_IT (from rev 566, trunk/community/website/locale/it)




More information about the debian-med-commit mailing list