From 3e29477fe9f15f70bece47ddae8921393a2f9cf5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 30 Nov 2007 16:45:54 +0000 Subject: [PATCH] "some alternative charsets for the import, a hardcoded list for now, as all languages use utf-8" --- phpgwapi/inc/class.translation.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 9440ba3636..9afb4d8450 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -376,6 +376,18 @@ $data .= ($data ? ', ' : $charset.': ').$lang; } } + // add the old charsets, to provide some alternatives to utf-8 while importing + foreach(array( + 'iso-8859-1' => 'Western european', + 'iso-8859-2' => 'Eastern european', + 'iso-8859-7' => 'Greek', + 'euc-jp' => 'Japanese', + 'euc-kr' => 'Korean', + 'koi8-r' => 'Russian', + 'windows-1251' => 'Bulgarian') as $charset => $lang) + { + $this->charsets[$charset] .= (!isset($this->charsets[$charset]) ? $charset.': ' : ', ') . $lang; + } } return $this->charsets; }