Bug [# 2055] Orders date not locale language
Tags:   No tags associated yet.

  Go back
 Category:  Core System  Severity:  Enhancement  Version:  VirtueMart 1.1.0
 Joomla! Version:  Joomla! 1.5.x  Browser Version:  --  Fixed in Version:  VirtueMart 1.1.1
Description:
I´am using J!1.5.3 and VM 1.1.0 stable.
Both have finnish languages and them works.
In backend orders, account orders and order e-mails the date is in english(Monday, 28 April 2008).
In virtuemart_parser.php have $mosConfig_locale and I think J!1.5.x don´t use it anymore.
virtuemart_parser.php
Line 127 @setlocale( LC_TIME, $mosConfig_locale );

I changed it :

$language =& JFactory::getLanguage();
$locale = $language->getTag();
@setlocale( LC_TIME, $locale );

Now dates are finnish(locale fi-FI)

http://forum.virtuemart.net/index.php?topic=39348.msg123646#msg123646

Details:
Submitted Comment
Aravot
Jun 15
Won't be fixed for Joomla 1.0.x
patbe600
May 02
You are right. As I said, this fix doesn't work in Joomla 1.0.15. I think there must be an other fix in compat.joomla1.5.php
Aravot
May 02
Patrick, I don't think this will work for Joomla 1.0.15 because support for non-Gregorian date was added in Joomla 1.5.2 http://www.joomla.org/content/view/4720/74/
mauri
May 02
As you see the header. This fix J!1.5.x and VM1.1.x
patbe600
May 02
Order date in the account maintenance and confirmation email is still in English language after rev 1393. I made the changes as mauri said in virtuemart_parser.php and I have it in German.

I know that this is not the correct solution, because it's not working with VM in Joomla 1.0.15.