PHP gettext on IIS 7.0

I am making a website that supports multiple languages. I am trying to use PHP's gettext to accomplish this.

Relevant code:
$locale = "fra_can";
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("messages", "./locale");
textdomain("messages");

The above code works perfectly on a Unix based host. However this site is on IIS 7.0. No matter what I do I can not seem to get it to work on Windows (Server 2008 or 7).

I've tried tons of different locales to no avail. (fr_CA, French_Canada.1252, fra_can, fra_fra, etc.)

Folder structure I have been using is "locale/fra_can/LC_MESSAGES/messages.mo" and "locale/fra_can/LC_MESSAGES/messages.po"

Any ideas would be appreciated. Thanks.
LVL 2
v46nAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad HoweDevOps ManagerCommented:
Hi,

How did you go about installing PHP? Did you use the Web Platform installer?
http://www.microsoft.com/web/gallery/install.aspx?appsxml=&appid=PHP%3bPHP%3bPHP


If not, under the Web Platform options, Select "Frameworks and Runtimes", Click customize and install PHP 5.2.13.

After going through this, try your code again.

Cheers,
Hades666
0
v46nAuthor Commented:
Yea I had tried that, no luck unfortuantely
0
v46nAuthor Commented:
this is a known bug in 5.3 and apparently will be resolved in the next update.....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.