Author Topic: VM 3.0.18.7 Multilingual issues  (Read 4041 times)

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: VM 3.0.18.7 Multilingual issues
« Reply #15 on: January 09, 2017, 19:57:33 pm »
Hi Valérie

Stan checked the issue on my test site and noticed several problems with the latest package of VM.
Actually he could replicate them at first even in his own test sites.

He has reported the issue by skype to VM. Seems joomla is not recognizing the language files once loaded by VM.
Part of what he reported:

self::$languages[$tag]->load($name, $path, $tag, true, false);

should be

self::$languages[$tag]->load($name, $path, $tag, true, true);

at
website\administrator\components\com_virtuemart\helpers\config.php
it's line 1330 here inside
static public function loadJLang($name, $site = false, $tag = 0, $cache = true){
so any call to the JFactory::getLanguage()->load

when using DEFAULT LANGUAGE should have the TRUE at the end
interestingly the problem is not available at loadModLang since it does:
self::$languages[$tag]->load($name, $path,$tag,true);

and thus the last parameter is "true" by default

-------------------------------------

I know other 2 shop owners with same issue and my language settings are the same for almost 4 years so I advise highly on checking this before launching a stable version of VM cause this could affect many shop owners.

Regards

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 3.0.18.7 Multilingual issues
« Reply #16 on: January 09, 2017, 20:19:17 pm »
self::$languages[$tag]->load($name, $path, $tag, true, true);

is done. It costs a bit performance, but is more failsafe and easier to use for 3rd parties
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: VM 3.0.18.7 Multilingual issues
« Reply #17 on: January 10, 2017, 12:48:01 pm »
Hi Valérie

Stan checked the issue on my test site and noticed several problems with the latest package of VM.
Actually he could replicate them at first even in his own test sites.

He has reported the issue by skype to VM. Seems joomla is not recognizing the language files once loaded by VM.


Thank you lindapowers. I have reported to Milbo also my issues.
self::$languages[$tag]->load($name, $path, $tag, true, true);


In my case, it did not help.
VM is products/categories are only in one language : english.
I use different langages in the frontend (english), and the backend (french).
The administration is in french for everything but not for VirtueMart (it is in english)

Max was not able to reproduce my issues on his test site.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3960
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: VM 3.0.18.7 Multilingual issues
« Reply #18 on: January 10, 2017, 13:48:48 pm »
Hi Valérie

Stan checked the issue on my test site and noticed several problems with the latest package of VM.
Actually he could replicate them at first even in his own test sites.

He has reported the issue by skype to VM. Seems joomla is not recognizing the language files once loaded by VM.


Thank you lindapowers. I have reported to Milbo also my issues.
self::$languages[$tag]->load($name, $path, $tag, true, true);


In my case, it did not help.
VM is products/categories are only in one language : english.
I use different langages in the frontend (english), and the backend (french).
The administration is in french for everything but not for VirtueMart (it is in english)

Max was not able to reproduce my issues on his test site.

Is the key bad when you do a front acces from backend ?
I mean that the problem is tha max don't understand what i have wrote.
Using this method force the language using the $tag, so this isolate englieh and french in your case.
Si if you are in french in the back-end, i tihnk that joomla use your session language and render all in french.
If the key do not exist in french, then this is not translated.
I explain this for multi render same view with different language eg order mails. THis should not be used in general for all the views but only for the views that can conflict as statut change, orders emails ...

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 3.0.18.7 Multilingual issues
« Reply #19 on: January 11, 2017, 10:09:10 am »
uhm,. Patrick, .... I think you should take a look on the new code.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: VM 3.0.18.7 Multilingual issues
« Reply #20 on: January 14, 2017, 05:41:00 am »
All multilingual issues have been solved for us with latest 3.0.18.9 package, just got a blank page on installation of the core:

"Error message data:
1 Class 'vmLanguage' not found in file: /home/webstite/tmp/install_5879928ba16eb/install/script.virtuemart.php line: 43 "

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 3.0.18.7 Multilingual issues
« Reply #21 on: January 17, 2017, 15:05:54 pm »
I fear the problem is here that Joomla loads during the update the old files. But there is an old proxy function in place, so I just replaced it. Going to upload it as version b then.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi