From 23eb18b51f25541758e50fcb173b863cce9ed6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 11 Mar 2010 18:02:16 +0100 Subject: [PATCH] Set text domain to properly load messages file. --- libraries/select_lang.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php index 811933d0c..8b9b6e063 100644 --- a/libraries/select_lang.lib.php +++ b/libraries/select_lang.lib.php @@ -344,9 +344,6 @@ function PMA_langList() */ $GLOBALS['lang_path'] = './locale/'; -define('LOCALE_DIR', realpath($GLOBALS['lang_path'])); -define('DEFAULT_LOCALE', 'en_US'); - /** * Load gettext functions. */ @@ -451,6 +448,10 @@ if (! PMA_langCheck()) { // Set locale T_setlocale(LC_MESSAGES, $GLOBALS['lang']); +T_bindtextdomain('phpmyadmin', $GLOBALS['lang_path']); +T_bind_textdomain_codeset('phpmyadmin', 'UTF-8'); +T_textdomain('phpmyadmin'); + // Load messages require_once './libraries/messages.inc.php';