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)
Thank you Mauri, it's a very useful tip. It work for me in French.
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.
Thank You for this post!!
Function too german.
thank you, very usefeul
i still get a 4 hours delay time, but the language is ok now. any suggestion?
Quotei still get a 4 hours delay time, but the language is ok now. any suggestion?
Have you try:
Joomla! GlobalConfiguration -> Server -> Time Zone
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... :(
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.
exelent work! thanks a loot!
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..