From: x99bachelart Date: Fri, 5 Sep 2003 12:03:24 +0000 (+0000) Subject: localization X-Git-Tag: 1.8~431 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e2625e7277ea0769529e4eaf3f28412dea90399b;p=banana.git localization --- diff --git a/article.php b/article.php index 0df9eb1..76b1d1c 100644 --- a/article.php +++ b/article.php @@ -7,7 +7,6 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require("locales/locales.inc.php"); require("include/session.inc.php"); require("include/encoding.inc.php"); require("include/wrapper.inc.php"); @@ -19,9 +18,10 @@ require("include/post.inc.php"); require("include/profile.inc.php"); require("include/password.inc.php"); -require("include/header.inc.php"); - $profile=getprofile(); +require($profile['locale']); + +require("include/header.inc.php"); $group=strtolower(htmlentities($_REQUEST['group'])); diff --git a/index.php b/index.php index 47e3ea7..9a7275e 100644 --- a/index.php +++ b/index.php @@ -7,13 +7,16 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -require("locales/locales.inc.php"); require("include/session.inc.php"); require("include/password.inc.php"); require("include/NetNNTP.inc.php"); require("include/groups.inc.php"); require("include/format.inc.php"); require("include/config.inc.php"); +require("include/profile.inc.php"); + +$profile=getprofile(); +require($profile['locale']); require("include/header.inc.php"); diff --git a/install.d/profile.inc.php b/install.d/profile.inc.php index 3d2cf41..1015fc7 100644 --- a/install.d/profile.inc.php +++ b/install.d/profile.inc.php @@ -29,6 +29,7 @@ function getprofile() { $array['org'] = $_SESSION['org']; $array['display'] = $_SESSION['displaytype']; $array['lastnews'] = time()-86400; + $array['locale'] = "locales/fr.inc.php"; return $array; } ?> diff --git a/post.php b/post.php index 2fc7410..7d0f019 100644 --- a/post.php +++ b/post.php @@ -1,5 +1,4 @@