[med-svn] r565 - trunk/community/website/inc
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Thu Oct 4 18:55:20 UTC 2007
Author: hanska-guest
Date: 2007-10-04 18:55:20 +0000 (Thu, 04 Oct 2007)
New Revision: 565
Modified:
trunk/community/website/inc/locale.inc.php
Log:
Bug found, removing debug info.
Working on why it doesn't localize strings.
Modified: trunk/community/website/inc/locale.inc.php
===================================================================
--- trunk/community/website/inc/locale.inc.php 2007-10-04 18:52:18 UTC (rev 564)
+++ trunk/community/website/inc/locale.inc.php 2007-10-04 18:55:20 UTC (rev 565)
@@ -6,8 +6,6 @@
$lang_arr = explode(",", $languages);
$lang_arr[0] .= ";q=1.0";
-var_dump($lang_arr);echo "<br />";
-
$locales_dir = "/srv/alioth.debian.org/chroot/home/groups/debian-med/htdocs/locale/";
$available = array();
@@ -15,14 +13,11 @@
while ($file = readdir($handle)) {
clearstatcache();
if ($file != "." && $file != "..") {
- echo $file; var_dump(is_dir($file)); echo "<br />";
if (is_dir($locales_dir.$file))
$available[] = $file;
}
}
-echo "<pre>";print_r($available);echo "</pre>";
-
$i = 0;
foreach ($lang_arr as $lang_code) {
$tmp[] = explode(";", $lang_code);
@@ -54,15 +49,10 @@
$show_locale_warning = true;
}
-//print_r($langs);
-
-//$locale = "en_GB";
-
-//echo $locale."\n\n\n";
-
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
-bindtextdomain("messages", $locales_dir);
+//bindtextdomain("messages", $locales_dir);
+bindtextdomain("messages", "locale/");
textdomain("messages");
?>
More information about the debian-med-commit
mailing list