From: A. K. E. <ker...@ha...> - 2002-11-15 12:13:29
|
Hello. To make Turkish work correctly, I have added these lines to i18n.php. So maybe in future releases, i18n.php should include these by default. To the first function I have added: } else if ($res[1] == '9') { $ret = charset_decode_iso_8859_9 ($string); and } else if ($charset == 'windows-1254') { $ret = charset_decode_iso_8859_9 ($string); And also these: -------------------------------------------------------- /* iso-8859-9 is Turkish. */ function charset_decode_iso_8859_9 ($string) { global $default_charset; if (strtolower($default_charset) == 'iso-8859-9') { return $string; } /* Only do the slow convert if there are 8-bit characters */ if (!ereg("[\200-\377]", $string)) { return $string; } $string = str_replace("\307", 'Ç', $string); $string = str_replace("\320", 'Đ', $string); $string = str_replace("\326", 'Ö', $string); $string = str_replace("\334", 'Ü', $string); $string = str_replace("\335", 'Ý', $string); $string = str_replace("\336", 'Þ', $string); $string = str_replace("\347", 'ç', $string); $string = str_replace("\360", 'ð', $string); $string = str_replace("\366", 'ö', $string); $string = str_replace("\374", 'ü', $string); $string = str_replace("\375", 'ý', $string); $string = str_replace("\376", 'þ', $string); return $string; } ---------------------------------------------------------- I am also sending the latest Turkish translation, created from stratch from the squirrelmail.po taken from v1.2.8 Regards, Kerem |