note 40973 added to ref.gettext
| From: | poff at sixbit dot org | Date: | Thu, 25 Mar 2004 03:00:32 +0000 |
| Subject: | note 40973 added to ref.gettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67135@lists.php.net to get a copy of this message | ||
I had MANY HOURS of problems with the:
fr != fr_FR
On a netbsd system, specifying any locale works fine, there's no need for a corresponding
locale in /usr/share/locale
However on 2 linux systems there needed either an alias or an entry in /usr/lib/locale
What to do when you're using a language with no locale entry?
Is this a shortcoming of the way gettext works on these linux systems?
Ie. setlocale ( LC_ALL, "km", "km_KM" ); won't work on the linux systems
are there are no entries for Khmer. I needed to copy the english locale to the khmer entry manually,
or add an alias. How are you expected to do this on a shared server or where you don't have
access to this sort of manipulation?
As someone posted above or in the gettext() section, you just lost portability.
----
Manual Page -- http://www.php.net/manual/en/ref.gettext.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40973
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40973&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40973&report=yes
Search -- http://master.php.net/manage/user-notes.php