Firefox PHP

Another lang-file running onto english OS

Posted by irob 
Re: Another lang-file running onto english OS
June 23, 2005 09:17AM
Bachje Wrote:
-------------------------------------------------------
> and I cannot get it right. My providers tells me
> to change phorum so ....

Maybe you should change providers instead...

> It looks as if there is something not right in
> Phorum with the names of months.

There's nothing Phorum can do differently (with strftime that is)

try with the following code

<?php
setlocale(LC_ALL, "C");
echo strftime("%A");
setlocale(LC_ALL, "fi_FI");
echo strftime(" in Finnish is %A,");
setlocale(LC_ALL, "nl_NL");
echo strftime(" and in Dutch %A");
setlocale(LC_ALL, "nl_NL.iso88591");
echo strftime(" and other in Dutch %A");
?>

More info: [ch.php.net]

it has nothing to do with Phorum, so according to your provider it works.

> Any suggestions to get them to show in dutch?

Ask you provider to fix their installation and/or tell exactly what locales are installed and how to use them.


---
-=[ Panu ]=-
Re: Another lang-file running onto english OS
June 23, 2005 12:09PM
the problem here is that you are all blaming Phorum when you need to file a bug report with the PHP and/or FreeBSD group. We are calling a function as it is documented in the PHP docs. If it does not work on your system but does on others, that means something is wrong with the PHP install on your system.

Are you using a packaged php install or did you compile it yourself? It could be the BSD packaged install is crippled because it is not compiled for your system. There is a host of problems that could be happening here. However, none of them are the fault of Phorum.

You are worried about slowing things down. Having to work around an array of months will do it. Just becauase you have proposed what you to believe is a solution does not mean we have to use it. We believe that is not a solution. The solution is to fix whatever is wrong with FreeBSD and PHP on your servers.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Sorry, only registered users may post in this forum.

Click here to login