VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Philippe MARTY on December 02, 2019, 11:28:32 AM

Title: Category and product names don't display in other languages
Post by: Philippe MARTY on December 02, 2019, 11:28:32 AM
Hello,
My virtuemart is in french, but translated in english and soon in spanish.
I'm using virtuemart in catalog mode.

When switching to english on the website, everything is ok (menus, contents...) but when displaying the shop page, products names and categories names are not translated. I can't understand where is the problem.
I've translated the names in the backend as you can see here:
(http://i.share.pho.to/3a90073a_o.png)

And add the languages in the config page:
(http://i.share.pho.to/5039733b_o.png)

But on the frontpage, french is displayed, as you can see here, all the names of the categories are in French (Terrasse/extérieur, Maison/intérieur, Salle de bain)
http://p19.a51.fr/index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=0&Itemid=165&lang=en

Does anyone have an idea?

Title: Re: Category and product names don't display in other languages
Post by: jenkinhill on December 02, 2019, 12:33:56 PM
Which VirtueMart version is this?
Title: Re: Category and product names don't display in other languages
Post by: jjk on December 02, 2019, 12:57:14 PM
Try if updating your language packs with the current downloads from here solves the problem: http://virtuemart.net/community/translations
Title: Re: Category and product names don't display in other languages
Post by: Philippe MARTY on December 03, 2019, 13:08:38 PM
Nope, I've downloaded English and French translations. Installed them. No change.

BTW, I've forgotten to list my config:
Joomla 3.9.13
VM 3.6.10
Multilingual French - English, and soon in Spanish.
Title: Re: Category and product names don't display in other languages
Post by: GJC Web Design on December 03, 2019, 22:12:12 PM
what if u set the langue de la boutique to the same as the Joomla core language?
Title: Re: Category and product names don't display in other languages
Post by: Philippe MARTY on December 03, 2019, 23:24:14 PM
My website is a french one, the shop has been built in french.
And I add the translations for categories, products, custom fields and so on.
But only custom fields (based on languages overriding) are translated when switching to english. All the virtuemart's things stay in French.
Really frustrating...
Where is the problem?
Title: Re: Category and product names don't display in other languages
Post by: jjk on December 04, 2019, 10:10:35 AM
Probably a configuration problem somewhere. Please check your Joomla and VirtueMart settings against this tutorial. (It's pretty old and was written for Joomla/VM 2.x, but it's still valid). The first link to a pdf tutorial uses a french example: https://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html

Also use the Joomla 'Debug Language' to find out if the file en-GB.com_virtuemart.ini is loaded when you switch to English.
Title: Re: Category and product names don't display in other languages
Post by: Philippe MARTY on December 04, 2019, 10:28:18 AM
Hello,
That was the doc I've followed to check my install prior to ask for help here.
I double checked, it's ok for me.

I enabled language debugging and as you can see on the page, the file en-GB.com_virtuemart.ini is loaded.
http://p19.a51.fr/index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=0&Itemid=165&lang=en

Curious isn't it?
Title: Re: Category and product names don't display in other languages
Post by: Jörgen on December 04, 2019, 11:42:46 AM
You have language files not loaded for regularlabs, advancedmodule and yootheme. Maybe a place to start?

Jörgen @ kreativ fotografi
Title: Re: Category and product names don't display in other languages
Post by: jjk on December 04, 2019, 13:44:37 PM
Also it looks to me like you currently have only a single Language (uk) switcher module published. There should be one with the language tag set to French and a copy of that module with the language tag set to English. Another possible source of the problem is that you currently don't have an English menu item for each of your French menu items. Once you have configured the menus in all published languages, it's a good idea to click the 'Rebuild Menu' button in Joomla adminstration > Menu > 'Manage' view. (Sometimes Joomla produces hiccups within menu table in the database)
Title: Re: Category and product names don't display in other languages
Post by: Philippe MARTY on December 04, 2019, 15:52:52 PM
Quote from: Jörgen on December 04, 2019, 11:42:46 AM
You have language files not loaded for regularlabs, advancedmodule and yootheme. Maybe a place to start?

Those files don't have any link with VM translations.
And, category names are not saved in language files but in the VM database as they are entered in the VM backend.
Title: Re: Category and product names don't display in other languages
Post by: balai on December 04, 2019, 16:02:45 PM
I had the same issue.
Please check if you are using any system plugin related with Virtuemart.
If that's the case, make sure that this plugin is loaded after the joomla's language filter plugin or that is disabled. Also make sure that you are using the plugin's latest version.

http://forum.virtuemart.net/index.php?topic=143870.0
Title: Re: Category and product names don't display in other languages
Post by: Philippe MARTY on December 04, 2019, 17:57:08 PM
Found!
I'm using Yootheme Pro and I have forgotten to disable the French menu from the builder, and create my French menu via a standart Joomla module.
It was just that.
And now all is working fine.
Thanks to all for your help :)