From e2625e7277ea0769529e4eaf3f28412dea90399b Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Fri, 5 Sep 2003 12:03:24 +0000 Subject: [PATCH] localization --- article.php | 6 +++--- index.php | 5 ++++- install.d/profile.inc.php | 1 + post.php | 5 +++-- thread.php | 6 +++--- 5 files changed, 14 insertions(+), 9 deletions(-) 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 @@