From 0d42fdbfeaf61d4ff51682a690664ba87dc4458a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 18 Aug 2006 05:46:01 +0000 Subject: [PATCH] r1080: Now gettext works now that we set the proper variables and such --- includes/init.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/init.php b/includes/init.php index 8a756c4..8efee0e 100755 --- a/includes/init.php +++ b/includes/init.php @@ -135,12 +135,15 @@ $stylevar['lang_dir'] = $language['direction']; $stylevar['charset'] = $language['charset']; // start gettext engine +putenv("LANG=$language[langcode]"); +putenv("LANGUAGE=$language[langcode]"); + setlocale(LC_ALL, $language['langcode']); -bindtextdomain('Bugdar', $bugsys->sourcepath . 'locale'); -textdomain('Bugdar'); +bindtextdomain('MESSAGES', $bugsys->apppath . 'locale/'); +textdomain('MESSAGES'); -bind_textdomain_codeset('Bugdar', $language['charset']); +bind_textdomain_codeset('MESSAGES', $language['charset']); // ################################################################### // initialize the date system -- 2.43.5