News:

Looking for documentation? Take a look on our wiki

Main Menu

Multilingual problem

Started by m.davide82, September 10, 2019, 15:38:17 PM

Previous topic - Next topic

m.davide82

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

jjk

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

m.davide82

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

jjk

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

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

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

m.davide82

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.

m.davide82

Anyone can help me or give me some ideas?


Thanks.
Davide

m.davide82

Hello,

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


Thanks,
Davide

jabba

Hi! I have the exact same problem... do you use falang? I think that falang changes the language of everything except virtuemart...
Gianluca Gabella - CEO & Web Developer @ Pixed - www.pixed.it

DayCounts

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jabba

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...
Gianluca Gabella - CEO & Web Developer @ Pixed - www.pixed.it

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

pinochico

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
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products