VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: m.davide82 on September 10, 2019, 15:38:17 PM

Title: Multilingual problem
Post by: m.davide82 on September 10, 2019, 15:38:17 PM
Hello,

I have a serious multilingual problem.
I'm using the latest Joomla version with Virtuemart 3.6.1 10129.
When I change the language the Virtuemart component isn't translated, enabling the debug, I see this:

1 vmdebug Show All Errors, PHP-Version 7.1.26
2 vmdebug 2 Languages, default shoplanguage (VmConfig::$jDefLang): it_it it-IT Selected VM language (VmConfig::$vmlang): it_it it-IT SEF: it $lfbs =


The menu is translated, but the rest no.

In the html code I see:
<html lang="it-it" dir="ltr">

but I need to see:
<html lang="en-GB" dir="ltr">

Options:
- Language filter enabled
- Language code enabled
- Translations done
- Language settings done
- Language associations done
- Multilingual menu item done


Any idea?


Thanks a lot.
Davide
Title: Re: Multilingual problem
Post by: jjk on September 10, 2019, 19:11:57 PM
And what does it show after you have selected English? Also, does the 'Multilingual Status' in Joomla administration (the module has to be enabled) show anything missing?
You may also use Joomla's 'Debug Language' to check for language file problems.
Title: Re: Multilingual problem
Post by: m.davide82 on September 10, 2019, 23:05:04 PM
Hi jjk,

I did everything, but no solutions until now.
In multilingual status everything is green.

When I change language the menu is translate, but the virtuemart category is in the main language, italian.


Thanks.
Daivde
Title: Re: Multilingual problem
Post by: jjk on September 10, 2019, 23:13:33 PM
Switching languages works fine in my Virtuemart 3.6.1 10129. Is yours a new shop or an existing shop updated from an earlier version?
Title: Re: Multilingual problem
Post by: GJC Web Design on September 10, 2019, 23:19:38 PM
I assume u have installed the VM languages u need?

if so are the VM  language tables it_it and en_gb in your database? product, cat, vendor etc etc

selected allowed lang in VM admin?
Title: Re: Multilingual problem
Post by: Milbo on September 11, 2019, 14:44:51 PM
How do you change the language? at the dropdown on the left? This does NOT change the language of the gui, it loads the translation for the category or product for example.
Title: Re: Multilingual problem
Post by: m.davide82 on September 16, 2019, 18:15:37 PM
Quote from: Milbo on September 11, 2019, 14:44:51 PM
How do you change the language? at the dropdown on the left? This does NOT change the language of the gui, it loads the translation for the category or product for example.

Hi Milbo, no no, I'm referring to the front end view.


@GJC yes, all the tables are present.


@jjk update from 3.4.5 or 3.4.2, I don't remember, but before it wasn't multilingual.
Title: Re: Multilingual problem
Post by: m.davide82 on September 21, 2019, 10:30:16 AM
Anyone can help me or give me some ideas?


Thanks.
Davide
Title: Re: Multilingual problem
Post by: m.davide82 on October 01, 2019, 15:14:33 PM
Hello,

I still have this problem... anyone had the same problem?


Thanks,
Davide
Title: Re: Multilingual problem
Post by: jabba on October 30, 2019, 11:22:56 AM
Hi! I have the exact same problem... do you use falang? I think that falang changes the language of everything except virtuemart...
Title: Re: Multilingual problem
Post by: DayCounts on December 20, 2019, 23:13:54 PM
I've had similar behaviour with "Joomla Virtuemart Product Social Share" plugin by Webkul on a client website.
Unpublished and problem was gone.

Webkul development are actually really bad and I try to stay away from any of their product.
Title: Re: Multilingual problem
Post by: GJC Web Design on December 21, 2019, 09:35:54 AM
If u trace it to a plugin then it is normally they way they load ( or don't load properly) the VM config..

Compare how it is done on a recent ext. e.g.

if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
      VmConfig::loadConfig();

and how the suspect plugin does it
Title: Re: Multilingual problem
Post by: jabba on April 24, 2020, 12:27:18 PM
Hello! I found that in my case the error was cause by a plugin called "System Vm3 Cart".
Is it a plugin from Virtuemart or added by the template or something? It just prevented the language to be changed inside virtuemart only...
Title: Re: Multilingual problem
Post by: jenkinhill on April 24, 2020, 12:37:18 PM
Ahaa! It is not a plugin included with default VirtueMart but is known to cause problems.  See http://forum.virtuemart.net/index.php?topic=144117.msg510193#msg510193
Title: Re: Multilingual problem
Post by: pinochico on April 24, 2020, 13:50:38 PM
QuoteAhaa! It is not a plugin included with default VirtueMart

You are wrong :)

The same problem I have with standard payment plugin from VirtueMart. The plugin is not initialized and I must vreate hack last week.

VirtueMart working bad with initialize some core code after update from 3.4.5 to higher.
A lot of developer send me emails and a lot of website I must repair.

Pls fix then or create article about this in documentation.

Thanks
Title: Re: Multilingual problem
Post by: AH on April 24, 2020, 14:22:07 PM
Pinochio

Here we go again - you are wrong!

Last chance for you - do it again and you will be banned
Title: Re: Multilingual problem
Post by: pinochico on April 24, 2020, 14:24:58 PM
AH:

and how can I send better?

Use "I think" if I know then I must fix some bugs?

Is better for communicate only, because the fact is not missing with another world, isn't it?
Title: Re: Multilingual problem
Post by: Studio 42 on April 25, 2020, 12:10:37 PM
pinocchico. Why you never report your changes or bug fixes ?
In my case, i already had the problem.
first solution, reoder the plugins to have all Joomla system language loading first.
If it's not solved, check all plugin that load the vmconfig using loadConfig(FALSE,FALSE, false, false);

See max answer http://forum.virtuemart.net/index.php?topic=143870.msg509295#msg509295

And please dont always promote your work and blame the team.
I blame the team too sometime, but try to solve the issues.
Title: Re: Multilingual problem
Post by: pinochico on April 25, 2020, 14:11:42 PM
Patrick:

Sure :)

this is my report and fix:

http://forum.virtuemart.net/index.php?topic=144756.0