Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date Translation


unstable

Recommended Posts

Posted

Hi, i've been translating all of 2.2 version to portuguese and now..i do not know how to translate the date. Does the engine retrieves it from the system or from a file? what's the solution?

 

Thanks in advance. 8)

Posted

i think it retrieves it for the server, i may be wrong i haven't looked at that area of oscommerce.

Posted

The program retrieves the date from the server, so wherever the server is located depends upon the time displayed. It uses standard php &mysql functions

Instant idiot......Just add mud !!

Posted
Does the engine retrieves it from the system or from a file? what's the solution?

 

The translation of the dates is handled by using the following in each of the language files

 

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

 

Find the correct one for the portugese language and the month names will be translated for you :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

  • 8 months later...
Posted

Does this actually work :?: I'm running a MS1 store in 5 languages and the day and month names stay the same.... even with

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

in includes/languages/german.php and similar entries for other languages.

 

Take a look here if you don't believe me... :?

 

Gary

"Verbogeny is one of the pleasurettes of a creatific thinkerizer." - Peter da Silva

Posted

Hi Gary.

Install the glibc-locale package on the server and it's work.

 

Thorsten

 

Does this actually work :?: I'm running a MS1 store in 5 languages and the day and month names stay the same.... even with

[...]

Archived

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

×
×
  • Create New...