Fix locale
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 1 Aug 2006 14:11:01 +0000 (14:11 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 1 Aug 2006 14:11:01 +0000 (14:11 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@768 839d8a87-29fc-0310-9880-83ba4fa771e5

configs/platal.ini
include/globals.inc.php.in

index ff94704..c6ee88a 100644 (file)
@@ -1,5 +1,5 @@
 [Core]
-locale = 'fr_FR'
+locale = fr_FR
 
 [Banana]
 server = "localhost"
index 65b91e5..8d4bab1 100644 (file)
@@ -86,10 +86,9 @@ class PlatalGlobals
 
     function setlocale()
     {
-        global $globals;
-        setlocale(LC_MESSAGES, $globals->core->locale);
-        setlocale(LC_TIME,     $globals->core->locale);
-        setlocale(LC_CTYPE,    $globals->core->locale);
+        setlocale(LC_MESSAGES, $this->core->locale);
+        setlocale(LC_TIME,     $this->core->locale);
+        setlocale(LC_CTYPE,    $this->core->locale);
     }
 
     function asso($key=null)