News:

Looking for documentation? Take a look on our wiki

Main Menu

Traductions in menu layout problem - Joomla 4

Started by thefbi, April 25, 2023, 14:34:48 PM

Previous topic - Next topic

thefbi

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

jenkinhill

Looks like your French VM language files are incomplete, some translations are missing
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

thefbi

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.

jjk

#3
Does the Joomla language debug list a related error when you enable it in the Joomla configuration and look at your broken menu?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

thefbi

No, i dont have error if i enable this feature.

jjk

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

thefbi

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 ?

thefbi

OK, I created translation substitutions in admin and now it's fine.