Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date Translation Problem


silica

Recommended Posts

Posted

Hi im having a strange problem, but i've seen it on more sites, everything

is correct, but my footer is not translating the date:

 

Monday 08 December, 2003

 

It should say Lunes 08 Diciembre, 2003 ... all is set to spanish, spanish is default

language and I dont find this on any file in OSCommerce... is it taking the date

from myh server which is in Irland?? could that be the problem as i dont find

any file in the whole catalog folder where I can translate the months and days into

spanish...

 

Thanks,

 

Robert Amine

  • 2 weeks later...
Posted

:unsure: not yet but I think its got to do with the server, im sure its some setting in apache, or linux. I cant control that as im not running my own server just using

a hosting co...

 

Nobody else can help?

 

Merry Christmas from Spain ;-)

  • 2 weeks later...
Posted

First you have to find out which OS is your server running, then go to \catalog\includes\languages\ and open espanol.php

 

Locate this line...

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

notice this is the default option, and it works for FreeBSD

 

But...

 

If your server is running RedHat you must change to

 

@setlocale(LC_TIME, 'es_ES');

 

If your server is running Windows you must change to

 

@setlocale(LC_TIME, 'sp');

 

It works for me, I hope it works for you!! :D

 

Saludos Espa?a, desde Mexico! :)

Archived

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

×
×
  • Create New...