News:

Support the VirtueMart project and become a member

Main Menu

Wrong language in categories only

Started by pageup, August 28, 2020, 16:23:49 PM

Previous topic - Next topic

pageup

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?

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jjk

#2
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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pageup

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pageup

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).

Jörgen

Great that You have found the problem, hope it can help others.  :D

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.