Gettext only returns english

From: Date: Fri, 06 Aug 2004 17:44:56 +0000
Subject: Gettext only returns english
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-748@lists.php.net to get a copy of this message
I've figured it out - thanks to all who sent ideas my way. Im mailing the list in the hopes that someone with the same problem can find it in the archives. I was under the impression that it didn't matter what languages were installed on the local box, and the language folders under /locale could be named anything (as long as you told the script what they were). Apparently this is not the case. I had installed the languages on my server last week in an effort to solve my problem, but it didn't work then either. I did an "localedef --list-archive" to see all the languages installed, and I noticed that they all had extensions for their charset (either utf-8 or isoxxx). I remember reading somewhere online that people were putting these specific extensions in their scripts as well, so I gave it a shot. Im sure I tried it before, but apparenly not correctly. Regardless, its working now with the following line: setlocale(LC_ALL, 'de_DE.UTF-8'); So, if you are having the same problems I was, list all the languages you have on your computer, and try using the exact phrase that its installed as. Thanks for your help and ideas, Wil Clouser

« previous php.i18n (#748) next »