Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Swedish weekdays


muuseec

Recommended Posts

Does anyone know how to change the heading "New products in ?month?"

to the Swedish corresponding month? Anyone?

 

I keep getting the english ones even though everything else is in Swedish.

 

 

I?ve even got the Swedish date at the bottom as well, the only thing that is messing things up is the "New products in"...

 

In the file /includes/languages/svenska.php I have exchanged

 

CODE

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

 

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

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

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

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

 

for

 

CODE

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

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

$dag_nr = date ('w');

if ($dag_nr==0) $dag_namn='S?ndag';

if ($dag_nr==1) $dag_namn='M?ndag';

if ($dag_nr==2) $dag_namn='Tisdag';

if ($dag_nr==3) $dag_namn='Onsdag';

if ($dag_nr==4) $dag_namn='Torsdag';

if ($dag_nr==5) $dag_namn='Fredag';

if ($dag_nr==6) $dag_namn='L?rdag';

 

$man_nr = date ('n');

if ($man_nr==1) $man_namn='Januari';

if ($man_nr==2) $man_namn='Februari';

if ($man_nr==3) $man_namn='Mars';

if ($man_nr==4) $man_namn='April';

if ($man_nr==5) $man_namn='Maj';

if ($man_nr==6) $man_namn='Juni';

if ($man_nr==7) $man_namn='Juli';

if ($man_nr==8) $man_namn='Augusti';

if ($man_nr==9) $man_namn='September';

if ($man_nr==10) $man_namn='Oktober';

if ($man_nr==11) $man_namn='November';

if ($man_nr==12) $man_namn='December';

 

define('DATE_FORMAT_LONG', $dag_namn . ' %e ' . $man_namn . ', %Y'); // this is used for strftime()

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

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

 

 

that has given me the Swedish date and weekdays everywhere EXCEPT for the "New products in ?month?"

 

Help!!!

Information overload!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...