May 17, 2008

Multilingual Possibilities In Php - Date format in different languages

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

Multilingual Possibilities In Php - Date format in different languages

mrdee
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.

Reply

sonesay
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.


Reply

mrdee
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : multilingual possibilities php date format languages

  1. Date And Time In Php - (2)



Looking for multilingual, possibilities, php, date, format, languages

Searching Video's for multilingual, possibilities, php, date, format, languages
advertisement



Multilingual Possibilities In Php - Date format in different languages



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE