Re: [PHP] German Date - GMDATE Function

2003-10-23 Thread Don Read

On 22-Oct-2003 Steve Vernon wrote:
 Hello,
 
 When I use the gmdate function, I get the English date, e.g. October. Is
 it
 possible to get the date in German or another language? I really need the
 server setting up so that it can handle different languages.
 

$locale='de_CH.ISO_8859-1'; // Alternate: 'de_DE.ISO_8859-1' 

setlocale(LC_TIME, $locale);

Regards,
-- 
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] German Date - GMDATE Function

2003-10-22 Thread Steve Vernon
Hello,

When I use the gmdate function, I get the English date, e.g. October. Is it
possible to get the date in German or another language? I really need the
server setting up so that it can handle different languages.

I suppose I could get the month as a number, and then convert the number,
but this seems a bit tacky!

Any help would be much appreciated!

I have tried to look at the German mannual, but I think they use the same
calls to gmdate, and that PHP is different. Is this so? How would I get
around this?

I don't know much, if any, German, so would need to use the English PHP.

THANKS!

Steve

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] German Date - GMDATE Function

2003-10-22 Thread Curt Zirzow
* Thus wrote Steve Vernon ([EMAIL PROTECTED]):
 Hello,
 
 When I use the gmdate function, I get the English date, e.g. October. Is it
 possible to get the date in German or another language? I really need the
 server setting up so that it can handle different languages.

What you want is:

  http://php.net/strftime
 
It uses your locale setting to display the proper language for days
of the week and months.

http://php.net/setlocale


Curt
-- 
My PHP key is worn out

  PHP List stats since 1997: 
  http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php