VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: thefbi on April 25, 2023, 14:34:48 PM

Title: Traductions in menu layout problem - Joomla 4
Post by: thefbi on April 25, 2023, 14:34:48 PM
Hello,

I have problems displaying the menu titles of Virtuemart in the left pane of Joomla, in French.

When I am in the administration of the site and I scroll the menu of Virtuemart, I have the display that you see in attachment.

What is strange is that when I am in a VM menu, like the configuration for example, the menu is displayed correctly at the level of titles.

I am on Joomla 4.3.0
VM 4.0.16 10836
PHP 8.0
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: jenkinhill on April 25, 2023, 21:02:07 PM
Looks like your French VM language files are incomplete, some translations are missing
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: thefbi on April 26, 2023, 07:32:43 AM
Hello,
That's what I thought, but as explained, when I am in a Virtuemart menu, everything is OK. See screenshot.
So it is only when i am not in VM.
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: jjk on May 23, 2023, 15:07:44 PM
Does the Joomla language debug list a related error when you enable it in the Joomla configuration and look at your broken menu?
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: thefbi on May 25, 2023, 07:44:20 AM
No, i dont have error if i enable this feature.
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: jjk on May 25, 2023, 15:21:46 PM
I can reproduce the untranslated menu items issue if I switch my admin language to German. Looking at the stack when Joomla's language debug is enabled, it appears to be a Joomla 4.3.1 problem.
No clue yet how to solve it...
My Akeeba menu items suffer from the same problem.


Found it. The problem is some untranslated strings in the french version of (admin) en-GB.com_virtuemart.sys.ini on transifex.com. Line 109 to 130 of the English source file reads:
;sub Menu
COM_VIRTUEMART_CONTROL_PANEL="Control Panel"
COM_VIRTUEMART_REVIEW_RATE_S="Reviews & Ratings"
COM_VIRTUEMART_COUPON_S="Coupons"
COM_VIRTUEMART_MENU_CATEGORIES="Product Categories"
COM_VIRTUEMART_MENU_CONFIGURATION="Configuration"
COM_VIRTUEMART_MENU_CUSTOMS="Custom Fields"
COM_VIRTUEMART_MENU_MANUFACTURERS="Manufacturers"
COM_VIRTUEMART_MENU_MEDIAFILES="Media Files"
COM_VIRTUEMART_MENU_ORDERS="Orders"
COM_VIRTUEMART_PRODUCT_INVENTORY="Inventory"
COM_VIRTUEMART_CALC_S="Taxes & Calculation Rules"
COM_VIRTUEMART_MENU_PAYMENTMETHODS="Payment Methods"
COM_VIRTUEMART_MENU_PRODUCTS="Products"
COM_VIRTUEMART_MENU_REPORT="Sales Report"
COM_VIRTUEMART_REPORT="Sales Report"
COM_VIRTUEMART_MENU_SHIPMENTMETHODS="Shipment Methods"
COM_VIRTUEMART_MENU_STORE="Shop"
COM_VIRTUEMART_MENU_USERS="Shoppers"
COM_VIRTUEMART_USERFIELD_S="Shopper Fields"
COM_VIRTUEMART_CURRENCY_S="Currencies"
COM_VIRTUEMART_COUNTRY_S="Countries"


The French version on transifex.com currently misses some translated lines (The one you are using might me older, since more lines are untranslated in your screenshot):

;sub Menu
COM_VIRTUEMART_CONTROL_PANEL="Panneau de configuration"
COM_VIRTUEMART_REVIEW_RATE_S="Commentaires & Notations"
COM_VIRTUEMART_COUPON_S="Chèques boutique"
COM_VIRTUEMART_MENU_CATEGORIES="Catégories de produits"
COM_VIRTUEMART_MENU_CONFIGURATION="Configuration"
COM_VIRTUEMART_MENU_CUSTOMS="Champs personnalisés"
COM_VIRTUEMART_MENU_MANUFACTURERS="Fabricants"
COM_VIRTUEMART_MENU_MEDIAFILES="Médias"
COM_VIRTUEMART_MENU_ORDERS="Commandes"
COM_VIRTUEMART_PRODUCT_INVENTORY="Inventaire"
COM_VIRTUEMART_CALC_S="Taxes & Règles de Calcul"
COM_VIRTUEMART_MENU_PAYMENTMETHODS="Modes de Paiement"
COM_VIRTUEMART_MENU_PRODUCTS="Produits"
; COM_VIRTUEMART_MENU_REPORT="Sales Report"
; COM_VIRTUEMART_REPORT="Sales Report"
COM_VIRTUEMART_MENU_SHIPMENTMETHODS="Modes de Livraison"
COM_VIRTUEMART_MENU_STORE="Boutique"
COM_VIRTUEMART_MENU_USERS="Clients"
COM_VIRTUEMART_USERFIELD_S="Formulaire client"
COM_VIRTUEMART_CURRENCY_S="Devises "
COM_VIRTUEMART_COUNTRY_S="Pays "
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: thefbi on June 05, 2023, 15:52:27 PM
Hello,
thank you, but why the translation is correct when i am in the VM menu but not when i am not in the VM ?

Is there 2 different file for the same menu item ?
Title: Re: Traductions in menu layout problem - Joomla 4
Post by: thefbi on July 03, 2023, 20:12:10 PM
OK, I created translation substitutions in admin and now it's fine.