diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 4a79b96615..095940bcad 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -377,14 +377,17 @@ $GLOBALS['phpgw_info']['server']['lang_ctimes'][$lang][$app] = filectime($appfile); } } - $charset = @$raw['common']['charset'] ? $raw['common']['charset'] : $this->charset($lang); + $charset = strtolower(@$raw['common']['charset'] ? $raw['common']['charset'] : $this->charset($lang)); //echo "
lang='$lang', charset='$charset', system_charset='$this->system_charset')
\n"; //echo "raw($lang)=
".print_r($raw,True)."\n"; foreach($raw as $app_name => $ids) { foreach($ids as $message_id => $content) { - $content = $this->convert($content,$charset,$this->system_charset); + if ($this->system_charset) + { + $content = $this->convert($content,$charset,$this->system_charset); + } $addit = False; //echo '