Page 1 of 1

date() function and other languages then english

Posted: Mon Jul 26, 2004 2:20 am
by pelegk2
how can i check that when i recive the name of the month using
date("F",time())
i can get then ame of the month not only in english?
i want it for eample in hebrew
is it possible?
then how?
thnaks in advance
peleg

Posted: Mon Jul 26, 2004 2:32 am
by feyd
[php_man]setlocale[/php_man]() and [php_man]strftime[/php_man]() looks like the things to use.

Posted: Mon Jul 26, 2004 3:57 am
by pelegk2
do u know maybe where i can get the list of the defined languages like : "fi_FI"
for :
setlocale(LC_TIME, "fi_FI");

Posted: Mon Jul 26, 2004 10:37 am
by feyd
[php_man]setlocale[/php_man] wrote:Category/locale names can be found in RFC 1766 and ISO 639.

Note: The return value of setlocale() depends on the system that PHP is running. It returns exactly what the system setlocale function returns.

Tip: Windows users will find useful information about locale strings at Microsoft's MSDNwebsite. Supported language strings can be found at http://msdn.microsoft.com/library/defau ... trings.asp and supported country/region strings at http://msdn.microsoft.com/library/defau ... trings.asp. Windows systems support the three letter codes for country/region specified by ISO 3166-Alpha-3, which can be found at this Unicode website .