News:

Support the VirtueMart project and become a member

Main Menu

[TRACKER 2055] Orders date not locale language

Started by mauri, April 28, 2008, 22:21:51 PM

Previous topic - Next topic

mauri

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

Thank you Mauri, it's a very useful tip. It work for me in French.

mauri

Quote from: hifi on April 29, 2008, 14:55:54 PM
Quote from: mauri on April 28, 2008, 22:43: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

Thank You for this post!!

Function too german.

atolero


atolero

i still get a 4 hours delay time, but the language is ok now. any suggestion?

mauri

Quotei 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

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

#8
Quote from: juppjupp 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...   :(
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


killeron

#10
Using J!1.5.9 and VM 1.1.2 stable.
Strange but when system legacy plugin is enabled the
@setlocale( LC_TIME, $mosConfig_locale ); gives english names on date but not with legacy disabled then $language =& JFactory::getLanguage();
$locale = $language->getTag();
@setlocale( LC_TIME, $locale );
works

Last one works either way..