[i18n] Re: Japanese support (with IMAP)
Jan Schneider
jan at horde.org
Fri Mar 7 14:32:02 PST 2003
Quoting Isamu Yamamoto <yamamoto at trustbee.com>:
> >Yes definitely. There is no need for a Japanese localized version
> anymore as
> >we now support theoretically every charset, even multibyte ones.
>
> Yes, I also think so.
> However, there is lot of codes for conversion Japanese character,
> it is inadequate just to replace a message by ja_JP.po.
>
> Therefore, I made as a Japanese version now.
> In the future, I want to merge to original version.
>
> This is the code for conversion Japanese character which I am using.
> What code should I use?
> if ($GLOBAL['language'] == 'ja_JP') {
> $msg = mb_convert_encoding($msg, ...)
> }
That's not so easy to answer as it depends on the whole charset/locale
infrastructure available in HEAD.
But basically you can now do something like
String::convertCharset($msg, $from_charset, $to_charset)
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the i18n
mailing list