Author Topic: Wrong language in categories only  (Read 376 times)

pageup

  • Beginner
  • *
  • Posts: 3
  • A beginner
Wrong language in categories only
« 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?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2998
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Wrong language in categories only
« Reply #1 on: August 28, 2020, 16:49:00 pm »
using sef?

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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3693
  • using Matomo instead of Google Analytics
Re: Wrong language in categories only
« Reply #2 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pageup

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Wrong language in categories only
« Reply #3 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

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2998
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Wrong language in categories only
« Reply #4 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pageup

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Wrong language in categories only
« Reply #5 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).

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2998
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Wrong language in categories only
« Reply #6 on: September 03, 2020, 11:28:56 am »
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.