[dev] Fwd: [i18n] Internationalization for imp search

Chuck Hagenbuch chuck at horde.org
Sun May 15 08:12:32 PDT 2005



----- Forwarded message from persian-horde at metanetworking.com -----
    Date: Sat, 14 May 2005 20:53:04 -0500 (CDT)
    From: persian-horde at metanetworking.com
Reply-To: persian-horde at metanetworking.com
Subject: [i18n] Internationalization for imp search
      To: i18n at lists.horde.org

Hello All,

Some locales including persian, japaneese and chinese which use from
specific charsets, could not search correctly when they use imp mailbox
search.
(see i18n mailing list, http://lists.horde.org/archives/i18n/Week-of-Mon-
20050509/thread.html)

This problem has been addressed in PHP >= 4.3.3 by including a charset
option, in imap_search function. But the Framework "IMAP_Search" library,
does not use from this argument, thus some locales have problem in
searching.

We fixed this issue temporariliy for our locale by sending an additional
charset parameter in Framework/Horde/IMAP/Search.php, e.g:
Line 173:

- if (!($indices = @imap_search($imap, $ob->fullquery, SE_UID))) {
+ if (!($indices = @imap_search($imap, $ob->fullquery, SE_UID,"utf-8"))) {


Our question is that how can we enhance the search function so it works
for all locales in general. One way is to pass the $nls['charsets']
[$language] to this Class. But not all locales have an specific charset
defined in nls.php.

Your comments are appreciated,

Thanks
Persian Horde Team



-- 
Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: i18n-unsubscribe at lists.horde.org


----- End forwarded message -----


-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list