php-i18n Digest 20 Jan 2008 05:14:39 -0000 Issue 380

Topics (messages 1144 through 1145):

Re: Foreign language sorting
        1144 by: Jerry Schwartz

Re: For gettext() - "Apache server restarting" and "set Server Locale"
        1145 by: Tomas Kuliavas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I'm just an ignorant lurker, but different foreign languages have different
rules. I don't think a single scheme will work even for all European
languages, let alone Chinese (about which I know nothing) or Thai (about
which I know less). This was discussed in the context of MySQL sorting
Hungarian, and the response was that Hungarian has two distinct collating
sequences.

Regards,

Jerry Schwartz
The Infoshop by Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341

www.the-infoshop.com
www.giiexpress.com
www.etudes-marche.com

> -----Original Message-----
> From: Naz Gassiep [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 16, 2008 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-I18N] Foreign language sorting
>
> I am looking for a method to sort an array of strings, however the
> strings are UTF8 and contain latin and non-latin characters. Is there a
> method to sort a string such that letters such as e with an acute are
> grouped with e without an acute, or even for strings that are made up
> entirely of Thai or Cyrillic characters?
> I really hope I don't have to roll my own sorting algorithm.
> Thanks,
> - Naz.
>
> --
> PHP Unicode & I18N Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
> Hi All
> 
> Do we have to "restart apache server" and  "set server locale" for get the
> support of gettext() function. If yes, then is there are another alternative
> for this.

You need system locales present on server in order to get working
gettext translation.

You must restart apache, if you change translation and recompile .mo files.

You don't have to change system locale on server. Locale can be set in
php scripts with setlocale() and putenv().

If you don't control system locales installed on server, there are
php-gettext classes on savanah.gnu.org.

-- 
Tomas

--- End Message ---

Reply via email to