From 8a7b9e455acdb3f82270a0e2f73128c07f4020ca Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Oct 2004 07:50:08 +0000 Subject: [PATCH] language updates --- includes/general.php | 19 +- includes/general_stuff.php | 1 + locale/da.po | 943 ++++++++++++++++++++++++++++- locale/de.po | 1149 +++++++++++++++++++++++++++++++++--- locale/es.po | 1033 ++++++++++++++++++++++++++++++-- locale/fr.po | 1049 ++++++++++++++++++++++++++++++-- locale/hu.po | 932 ++++++++++++++++++++++++++++- locale/it.po | 937 ++++++++++++++++++++++++++++- locale/nl.po | 932 ++++++++++++++++++++++++++++- locale/pt.po | 938 ++++++++++++++++++++++++++++- messages.po | 623 ++++++++++++++++++- pages/account/40.php | 18 +- pages/help/1.php | 457 ++++++++++++++ pages/help/2.php | 62 ++ pages/help/3.php | 71 +++ pages/help/4.php | 28 + pages/help/5.php | 1 + pages/help/6.php | 11 + pages/help/7.php | 9 + pages/index/11.php | 18 +- www/help.php | 5 +- www/src-lic.php | 2 +- 22 files changed, 8855 insertions(+), 383 deletions(-) create mode 100644 pages/help/1.php create mode 100644 pages/help/2.php create mode 100644 pages/help/3.php create mode 100644 pages/help/4.php create mode 100644 pages/help/5.php create mode 100644 pages/help/6.php create mode 100644 pages/help/7.php diff --git a/includes/general.php b/includes/general.php index f459793..abc752f 100644 --- a/includes/general.php +++ b/includes/general.php @@ -12,9 +12,6 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. */ -// header("Content-Type: text/html; charset=UTF-8"); -// header("Content-Transfer-Encoding: 8bit"); - if($_SERVER[HTTP_HOST] != "www.cacert.org" && $_SERVER[HTTP_HOST] != "secure.cacert.org" && $_SERVER[HTTP_HOST] != "202.87.16.201") { if($_SERVER[HTTPS] == "on") @@ -38,7 +35,8 @@ $_SESSION['_config']['translations'] = array("da_DK" => "Dansk", "de_DE" => "Deutsch", "en_AU" => "English", "es_ES" => "Español", "fr_FR" => "Français", "it_IT" => "Italiano", - "hu_HU" => "Magyar", "nl_NL" => "Nederlands", "pt_PT" => "Português"); + "hu_HU" => "Magyar", "nl_NL" => "Nederlands", "pt_PT" => "Português", + "zh_CN" => "Chinese"); if($_SESSION['_config']['language'] == "") { @@ -92,6 +90,12 @@ } } + if($_SESSION['_config']['language'] == "zh_CN") + { + header("Content-Type: text/html; charset=gb2312"); +// header("Content-Transfer-Encoding: 8bit"); + } + putenv("LANG=".$_SESSION['_config']['language']); setlocale(LC_ALL, $_SESSION['_config']['language']); @@ -115,7 +119,7 @@ function loadem($section = "index") { - if($section != "index" && $section != "account" && $section != "help") + if($section != "index" && $section != "account") { $section = "index"; } @@ -125,15 +129,12 @@ if($section == "index") include_once("/home/cacert/includes/general_stuff.php"); - - if($section == "help") - include_once("/home/cacert/includes/general_stuff.php"); } function includeit($id = "0", $section = "index") { $id = intval($id); - if($section != "index" && $section != "account" && $section != "wot") + if($section != "index" && $section != "account" && $section != "wot" && $section != "help") { $section = "index"; } diff --git a/includes/general_stuff.php b/includes/general_stuff.php index 09ed86a..d54f6b8 100644 --- a/includes/general_stuff.php +++ b/includes/general_stuff.php @@ -60,6 +60,7 @@ google_color_border = "FFFFFF";