diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-04 21:33:03 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-04 21:33:03 +0000 |
commit | 1b11e826fb0358610a9ab12c0d3278e200f5c599 (patch) | |
tree | d73a51ba29fd19cc83ae1684c43a1590863a9983 /src | |
parent | c63d8de4d70af4d731a112d92fe97e94a42c9aa2 (diff) | |
download | semanticscuttle-1b11e826fb0358610a9ab12c0d3278e200f5c599.tar.gz semanticscuttle-1b11e826fb0358610a9ab12c0d3278e200f5c599.tar.bz2 |
use data dir for locales
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@513 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src')
-rw-r--r-- | src/SemanticScuttle/header.php | 4 |
1 files 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'); } |