Where to translate Month and Day language, in PHP? I cant fo

  • basketmen
  • Student
  • Student
  • basketmen
  • Posts: 68

Post 3+ Months Ago

I can showing month and day in php, from this documentation http://php.net/manual/en/function.date.php

for example

Code: [ Select ]
Wednesday, 03 March 2012




i want to change it into my language

Code: [ Select ]
Rabu, 03 Maret 2012



or it is best if can like this

Code: [ Select ]
Rabu, 3 Maret 2012





i am using whm and cpanel, cant found options to translate this, maybe i need to edit some files in PHP configuration, but which one, please help guys
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 854

Post 3+ Months Ago

I'm guessing this will point you in the right direction:
[link=http://php.net/manual/en/function.setlocale.php]setlocale()[/link]
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Note that the setlocale() function applies to all scripts running on that server (or well, using the same parent process). If you want to use a non-standard language in your scripts, the better thing to do is handle localization within your scripts. This is generally done by matching words and phrases in a database table or file and associating them to a given language.

As far as cPanel: http://docs.cpanel.net/twiki/bin/view/C ... troduction

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.