Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change the date language?


rotoxtc

Recommended Posts

I'm working on a site I developed starting from the standard site you get with the installation. The site's going to be in Italian, so I translated all the text parts, but I can't find the place to change the names of months and days. Can anybody help?

Link to comment
Share on other sites

What language are you starting with? If it is english did you look in catalog/includes/language/english.php

 

I'm working on a site I developed starting from the standard site you get with the installation. The site's going to be in Italian, so I translated all the text parts, but I can't find the place to change the names of months and days. Can anybody help?
Link to comment
Share on other sites

What language are you starting with? If it is english did you look in catalog/includes/language/english.php

 

The starting language was english. I looked in the catalog/includes/language/english.php, i found this part:

 

// look in your $PATH_LOCALE/locale directory for available locales

// or type locale -a on the server.

// Examples:

// on RedHat try 'en_US'

// on FreeBSD try 'en_US.ISO_8859-1'

// on Windows try 'en', or 'English'

@setlocale(LC_TIME, 'it_IT');

 

I put the italian codes in the @setlocale part, and now it seems to be working. Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...