VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: pageup on August 28, 2020, 16:23:49 PM

Title: Wrong language in categories only
Post by: pageup on August 28, 2020, 16:23:49 PM
Hi,
I am using the latest joomla and virtuemart.
I have translated the categories and products in english and greek.

Everything works fine. BUT.. :'( :'(

in category views only I get the default language translation. So if joomla's default language is greek I get always the greek one, when english the later.
I tried with ?tmpl=none in order to check if there is a problem in the template or the loaded modules.
I also disabled all the non joomla default plugins (over than id-10000).

There are proper tables #..._en and #..._el in the database.

Has anybody encoutered something like this? Have you got any ideas?
Title: Re: Wrong language in categories only
Post by: Jörgen on August 28, 2020, 16:49:00 PM
using sef?

Jörgen
Title: Re: Wrong language in categories only
Post by: jjk on August 28, 2020, 18:38:18 PM
If your website is pageup.gr, the switch between Greek and English works correctly on VM pages in my Firefox browser, both on product and category level.
Title: Re: Wrong language in categories only
Post by: pageup on August 28, 2020, 23:49:49 PM
Hi,
I am using SEF but the trouble insists even if I am not.

I am asking about another site I was asked to fix stuff, but I lost two days in this ..weird error.

I forgot to mention that I var_dump joomla's lang which is the correct one.  (it would obviousy be since all the menus and modules are in the correct lang).

When I click on the products and get in their view the language is correct!

I enabled error reporting and I saw that the cart language is  el_gr which is wrong for the english translation
Title: Re: Wrong language in categories only
Post by: Jörgen on August 29, 2020, 08:35:39 AM
Why is the cart in greek ? Do You have a greek adddress perhaps ?

Without further screenshots or live links, hard to tell if this is ok now or not.

Jörgen
Title: Re: Wrong language in categories only
Post by: pageup on September 03, 2020, 10:35:28 AM
Found It  ;D ;D
There was a bug in two plugins.
I was disabling one by one and re-enabling to find it thus the error persisted. :-D

One was System Vm3 Cart and the other Base Custom Fields for All.

Had to replace VmConfig:VmConfig(); with VmConfig:VmConfig(false,false,false,false);

Actually the third parameter when true (which is the default) seems to load the default language (in practise).
Title: Re: Wrong language in categories only
Post by: Jörgen on September 03, 2020, 11:28:56 AM
Great that You have found the problem, hope it can help others.  :D

Jörgen