[i18n] imap_sort localization
persian-horde@metanetworking.com
persian-horde at metanetworking.com
Wed May 4 13:08:44 PDT 2005
Hello
As we've seen in the imp head code, the imp uses the imap_sort function to
sort messages, (by Subject, Sender, etc). Although this function has a
charset arguement, but it does not support localization for other locales
alphabets (such as fa_IR) and does not sort correctly.
but the usort function works well for sorting most of the non-english
locales as well as fa_IR:
setlocale(LC_ALL,"fa_IR");
usort($arraytobesorted, 'strcoll');
and this work well,
Our question is that is it acceptable(or possible) to feed the output of
imap_sort to usort for correct sorting?
Any other idea is highly appreciated,
Thanks for your help.
Persian Horde Team.
More information about the i18n
mailing list