]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
use data dir for locales
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:33:03 +0000 (21:33 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:33:03 +0000 (21:33 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@513 b3834d28-1941-0410-a4f8-b48e95affb8f

src/SemanticScuttle/header.php

index 5b411d9bfff64903b289b8c8236b85deec5df000..ee208b25d75c9b3dc2c6e886b4977e4be58756fa 100644 (file)
@@ -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');
 }