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

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Sat Oct 6 15:44:49 UTC 2007


Author: hanska-guest
Date: 2007-10-06 15:44:49 +0000 (Sat, 06 Oct 2007)
New Revision: 651

Modified:
   trunk/community/website/inc/locale.inc.php
Log:
Implementing fr_FR.
Testing new $locale_dir value.


Modified: trunk/community/website/inc/locale.inc.php
===================================================================
--- trunk/community/website/inc/locale.inc.php	2007-10-06 15:12:28 UTC (rev 650)
+++ trunk/community/website/inc/locale.inc.php	2007-10-06 15:44:49 UTC (rev 651)
@@ -5,7 +5,8 @@
 $lang_arr = explode(",", $languages);
 $lang_arr[0] .= ";q=1.0";
 
-$locales_dir = "/srv/alioth.debian.org/chroot/home/groups/debian-med/htdocs/locale/";
+//$locales_dir = "/srv/alioth.debian.org/chroot/home/groups/debian-med/htdocs/locale/";
+$locales_dir = "../locale/";
 
 $available = array(
 	"en" => true,
@@ -22,6 +23,10 @@
 		"de_DE" => true, "de_AT" => true,
 		"de_CH" => true, "de_LU" => true,
 		"de_BE" => true,
+	"fr" => true,
+		"fr_FR" => true, "fr_BE" => true,
+		"fr_CA" => true, "fr_CH" => true,
+		"fr_LU" => true,
 	);
 
 $i = 0;
@@ -45,33 +50,28 @@
 	if ($available[$language]) {
 		switch ($language) {
 			case "it":
-			case "it_IT":
-			case "it_CH":
-				$locale = "it_IT"; break;
+				case "it_IT": case "it_CH":
+					$locale = "it_IT"; break;
 			case "de":
-			case "de_DE":
-			case "de_AT":
-			case "de_BE":
-			case "de_CH":
-			case "de_LU":
-				$locale = "de_DE"; break;
+				case "de_DE": case "de_AT":
+				case "de_BE": case "de_CH":
+				case "de_LU":
+					$locale = "de_DE"; break;
+			case "fr":
+				case "fr_FR": case "fr_BE":
+				case "fr_CA": case "fr_CH":
+				case "fr_LU":
+					$locale = "fr_FR"; break;
 			case "en":
-			case "en_US":
-			case "en_GB":
-			case "en_AU":
-			case "en_BW":
-			case "en_CA":
-			case "en_DK":
-			case "en_HK":
-			case "en_IE":
-			case "en_IN":
-			case "en_NZ":
-			case "en_PH":
-			case "en_SG":
-			case "en_ZA":
-			case "en_ZW":
+				case "en_US": case "en_GB":
+				case "en_AU": case "en_BW":
+				case "en_CA": case "en_DK":
+				case "en_HK": case "en_IE":
+				case "en_IN": case "en_NZ":
+				case "en_PH": case "en_SG":
+				case "en_ZA": case "en_ZW":
 			default:
-				$locale = "en_US"; break;
+					$locale = "en_US"; break;
 		}
 		$priority = $index;
 		break;




More information about the debian-med-commit mailing list