php-i18n Digest 6 Aug 2004 17:44:58 -0000 Issue 241
Topics (messages 747 through 748):
Gettext only returns english
747 by: Wil Clouser
748 by: Wil Clouser
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 ---
Well, I asked my friend to run through the tutorial on his server and see if
it works - he got the same results as me. Perhaps it's a debian thing? Is
anyone else running on debian?
>From what I've read online, it seems like php is not finding the languages.
If it can't find them, it will return in English. However, I've checked the
paths again and again - im sure they are correct. So, I have a new idea.
Would someone tar/zip up a known working example (with relative paths), and
email it to me or put it online? That way I can at least determine if it's
a configuration problem or not. What do you all think?
Thanks for the thoughts so far,
Wil Clouser
--- End Message ---
--- Begin 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
--- End Message ---