Author Topic: [TRACKER 2055] Orders date not locale language  (Read 11184 times)

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
[TRACKER 2055] Orders date not locale language
« on: April 28, 2008, 22:21:51 pm »
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)
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

kirbislechat

  • Beginner
  • *
  • Posts: 16
Re: Orders date not locale language
« Reply #1 on: April 29, 2008, 08:40:04 am »
Thank you Mauri, it's a very useful tip. It work for me in French.

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: Orders date not locale language
« Reply #2 on: April 29, 2008, 16:55:18 pm »
Oletan että käytössäsi on J!1.5

2. Tätä tutkiessa törmäsin ilmeiseen bugiin. Voitko toimia testaajana ja tehdä seuraavan "fixin".
Avaa palvelimelta /components/com_virtuemart/virtuemart_parser.php
Etsi(Rivillä noin 127):
@setlocale( LC_TIME, $mosConfig_locale );

Muuta rivi näin:
$language =& JFactory::getLanguage();
$locale = $language->getTag();
@setlocale( LC_TIME, $locale );

Fixi näytti toimivan, tuli seuraavanlainen päivämäärä:
Tilauspäivä:     maanantai, 28 huhtikuu 2008 00:15
*****
Comment from finnish forum http://www.joomlaportal.fi
Translate:
Fix seemed to be operating, the following date came:
Order date:   maanantai, 28 huhtikuu 2008 00:15

I add this to tracker.
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

marctoms

  • Beginner
  • *
  • Posts: 7
Re: [TRACKER 2055] Orders date not locale language
« Reply #3 on: May 07, 2008, 10:50:49 am »
Thank You for this post!!

Function too german.

atolero

  • Beginner
  • *
  • Posts: 18
Re: [TRACKER 2055] Orders date not locale language
« Reply #4 on: May 08, 2008, 16:52:00 pm »
thank you, very usefeul

atolero

  • Beginner
  • *
  • Posts: 18
Re: [TRACKER 2055] Orders date not locale language
« Reply #5 on: May 08, 2008, 16:58:45 pm »
i still get a 4 hours delay time, but the language is ok now. any suggestion?

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: [TRACKER 2055] Orders date not locale language
« Reply #6 on: May 09, 2008, 10:08:12 am »
Quote
i still get a 4 hours delay time, but the language is ok now. any suggestion?
Have you try:
Joomla! GlobalConfiguration -> Server -> Time Zone
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

juppjupp

  • Jr. Member
  • **
  • Posts: 88
Re: [TRACKER 2055] Orders date not locale language
« Reply #7 on: May 09, 2008, 14:28:01 pm »
hi mauri, do you know if this http://forum.virtuemart.net/index.php?topic=39954.0

is related to your problem (localized version)? I can´t find any solutions to my problem...   :(

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: [TRACKER 2055] Orders date not locale language
« Reply #8 on: May 10, 2008, 18:06:18 pm »
hi mauri, do you know if this http://forum.virtuemart.net/index.php?topic=39954.0
is related to your problem (localized version)? I can´t find any solutions to my problem...   :(
Check:
administrator/components/com_virtuemart/languages/common/norwegian.php
BUTTON_LOGOUT
NO_ACCOUNT
CREATE_ACCOUNT
If these are tranlated to norge.
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

dac3d

  • Beginner
  • *
  • Posts: 36
Re: [TRACKER 2055] Orders date not locale language
« Reply #9 on: July 23, 2008, 11:04:12 am »
exelent work! thanks a loot!

killeron

  • Beginner
  • *
  • Posts: 1
Re: [TRACKER 2055] Orders date not locale language
« Reply #10 on: January 15, 2009, 08:47:26 am »
Using J!1.5.9 and VM 1.1.2 stable.
Strange but when system legacy plugin is enabled the
Code: [Select]
@setlocale( LC_TIME, $mosConfig_locale ); gives english names on date but not with legacy disabled then
Code: [Select]
$language =& JFactory::getLanguage();
$locale = $language->getTag();
@setlocale( LC_TIME, $locale );
works

Last one works either way..