Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language problem


tasso

Recommended Posts

Posted

Hello,

 

i tried to install the greek language and got the following error message in the index.php

 

 

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/www/web1/html/eshop/catalog/includes/languages/greek.php on line 12

 

sorry i am an php beginner and do not understand what to do.

please give me some help

 

thanks a lot

 

tasso

Posted

Hi

I have just started, and I'm getting the same warning.

  • 3 weeks later...
Posted

I have it too, also I am getting some links totaly off like box, header, and footer, english version works well though, can anyone help??

 

The language I am trying to install is Portuguese, so I tryed to change this line:

 

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

 

but it didn?t work :(

 

 

Nuno

Portugal

Nuno Luz

Posted

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

 

remove the qoutes from LC_TIME

 

With the quotes there it thinks LC_TIME is being passed as a string;

this is deprecated. Without the quotes it treats LC_TIME as the

constant it is (one of the LC_* constants mentioned above.)

 

I don't recall if this was a bug in earlier versions of php or if this

just became deprecated with 4.3, but either way it explains why we

haven't seen the warning before (and why we're seeing it in a number of

scripts now - not just oscommerce.)

 

Greetings John

Archived

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

×
×
  • Create New...