From 1b11e826fb0358610a9ab12c0d3278e200f5c599 Mon Sep 17 00:00:00 2001 From: cweiske Date: Wed, 4 Nov 2009 21:33:03 +0000 Subject: [PATCH] use data dir for locales git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@513 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php index 5b411d9..ee208b2 100644 --- a/src/SemanticScuttle/header.php +++ b/src/SemanticScuttle/header.php @@ -52,7 +52,7 @@ require_once 'SemanticScuttle/utf8.php'; require_once 'php-gettext/gettext.inc'; $domain = 'messages'; T_setlocale(LC_MESSAGES, $locale); -T_bindtextdomain($domain, dirname(__FILE__) . '/locales'); +T_bindtextdomain($domain, realpath($datadir . 'locales/')); T_bind_textdomain_codeset($domain, 'UTF-8'); T_textdomain($domain); @@ -83,7 +83,7 @@ $tplVars = array(); $tplVars['currentUser'] = $currentUser; $tplVars['userservice'] = $userservice; -// 6 // Force UTF-8 behaviour for server (cannot be move into top.inc.php which is not included into every file) +// 6 // Force UTF-8 behaviour for server (cannot be moved into top.inc.php which is not included into every file) if (!defined('UNIT_TEST_MODE')) { header('Content-Type: text/html; charset=utf-8'); }