Gettext only returns english

"Wil Clouser" <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.