|
|
|
|
![]() ![]() |
Nov 8 2007, 07:03 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 295 Joined: 18-July 07 From: Slough (UK) Member No.: 46,682 |
Hi,
I was wondering if there is a possibility in the PHP Date function to let it display the date in other languages (probably not, but I thought I'd ask). I know that 'D' gives you 'Sun', 'Mon', etc. and 'l' gives you 'Sunday', 'Monday', etc. Is there any provision for letting it display something like eg. 'Zon', 'Maa', etc., or 'Zondag', 'Maandag' etc. ? It would be handy for people (like me) who have a multilingual web site. Thanks in advance. |
|
|
|
Nov 8 2007, 09:23 PM
Post
#2
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 715 Joined: 20-June 07 From: Auckland Member No.: 45,102 myCENT:20.20 |
I dont remember php date function having multi language abilties but I may be wrong not 100% sure. If it doesnt and you really want to use it you could probably write a function to do the translation but depending on how well its writting updating and making further changes could be alot of hassle.
On your other post I updated my replay on it did you get past that point? cheers. update: CODE $day = date("D"); if($day == "Mon") { $day = "Zon"; } else if($day == "Tue") { $day = "Maa"; } then use it later in your output. This post has been edited by sonesay: Nov 8 2007, 09:29 PM |
|
|
|
Nov 8 2007, 10:42 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 295 Joined: 18-July 07 From: Slough (UK) Member No.: 46,682 |
Sorry,
did not manage to reply to the update on that other post yet. Thanks for your reply. Have not tried it yet, seems like I am afraid to. BTW, the reason why variables have changed is simply because I copied it from the other side of my web site (which is bilingual), there is no real change as such. But thamks for all your help anyway. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 03:27 PM |