Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change date & month?


Guest

Recommended Posts

:ph34r: I want to change the date and month to my language how can i do it ,...

 

Like: Monday, Tuesday .... January, Feb ..... --> my language ...

 

please give me an example

 

I am really suck with php

 

Thanks :P

Link to comment
Share on other sites

  • 3 weeks later...

Open up your language file (eg english is):

 

/includes/languages/english.php

 

Find the following code:

 

@setlocale(LC_TIME, 'en_US.ISO_8859-1');

 

Change it to locale you want. See http://uk.php.net/setlocale

 

Eg, dutch:

 

@setlocale(LC_TIME, 'nl_NL.ISO_8859-1');

 

See http://www.w3.org/WAI/ER/IG/ert/iso639.htm for a bunch of codes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...