From bd19fd65f721f3ee5d0819a224e8e5a6ef676a90 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Tue, 1 Aug 2006 14:11:01 +0000 Subject: [PATCH] Fix locale git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@768 839d8a87-29fc-0310-9880-83ba4fa771e5 --- configs/platal.ini | 2 +- include/globals.inc.php.in | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configs/platal.ini b/configs/platal.ini index ff94704..c6ee88a 100644 --- a/configs/platal.ini +++ b/configs/platal.ini @@ -1,5 +1,5 @@ [Core] -locale = 'fr_FR' +locale = fr_FR [Banana] server = "localhost" diff --git a/include/globals.inc.php.in b/include/globals.inc.php.in index 65b91e5..8d4bab1 100644 --- a/include/globals.inc.php.in +++ b/include/globals.inc.php.in @@ -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) -- 2.1.4