Page 1 of 1
Changing date language
Posted: Thu Jul 17, 2008 9:58 pm
by Lasse
Hi.
At the moment my shop (which is danish) only has english dates.
I've translated all the names of the months but the date still shows the english month names.
Any suggestions?
Re: Changing date language
Posted: Fri Jul 18, 2008 8:17 am
by bruce
Hi Lasse,
What pages? Could you post some screen shots if that is easier?
Re: Changing date language
Posted: Tue Jul 22, 2008 10:04 pm
by Lasse
Hey bruce.
One place is at the
http://www.dinlydbog.dk/index.php?contr ... nt_history
I've attached a screenshot.
Re: Changing date language
Posted: Tue Jul 22, 2008 11:08 pm
by bruce
Hi Lasse,
You have found an internationalisation bug. The value displayed is specifically formatted that way in catalog\controller\account_history.php as follows
Code: Select all
'date_added' => date('d F Y', strtotime($result['date_added'])),
To honour the locale, the date value returned by strtotime must be formatted using the php function strftime.
cheers
Bruce