News:

Looking for documentation? Take a look on our wiki

Main Menu

VM 3.0.18.7 Multilingual issues

Started by lindapowers, December 21, 2016, 22:37:13 PM

Previous topic - Next topic

lindapowers

#15
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

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

Quote from: lindapowers 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.


Thank you lindapowers. I have reported to Milbo also my issues.
Quote from: Milbo on January 09, 2017, 20:19:17 PM
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

Quote from: alatak on January 10, 2017, 12:48:01 PM
Quote from: lindapowers 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.


Thank you lindapowers. I have reported to Milbo also my issues.
Quote from: Milbo on January 09, 2017, 20:19:17 PM
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

uhm,. Patrick, .... I think you should take a look on the new code.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

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

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/