Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how can I change the language of the date format?


Genom

Recommended Posts

 

 

You need to edit catalog/includes/languages/xxxx.php where xxxx is the language file(s) you are using.

 

In that file are the setting sfor your date format.

 

hth

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

You need to edit catalog/includes/languages/xxxx.php where xxxx is the language file(s) you are using.

 

In that file are the setting sfor your date format.

 

hth

 

Charles

there is this:

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

 

but I dont see any february or september here

what exactly to change?

Link to comment
Share on other sites

Look in the PHP documentation at the date() function and what the format characters mean and then change

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

to be what you want.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Look in the PHP documentation at the date() function and what the format characters mean and then change

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

to be what you want.

I still didnt get how to customize it to my language lets say that I want it will be in hebrew how to change name of the months?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...