Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL

Started by brassens, July 03, 2023, 09:12:25 AM

Previous topic - Next topic

brassens

Hello, they are some constant overrides that not runs. These are not translate now. The language modification is ok, but the web shows english text always.
Constants that not runs, not translate text.

COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
COM_VIRTUEMART_SEF_EDITADDRESSCARTST
COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL

Thanks
Best regards

GJC Web Design

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

brassens

Hello,
The problem happened with all languages except english. But I updated VM languages again and clean cache and COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL now runs ok.

But I can't find how translate the text "Edit current shipping address". The links go to those url: (one by language)
/es/registrarse/user/editaddresscartST?virtuemart_user_id[0]=0
/fr/s-inscrire/user/editaddresscartST?virtuemart_user_id[0]=0
/it/registrati/user/editaddresscartST?virtuemart_user_id[0]=0
/en/register/user/editaddresscartST?virtuemart_user_id[0]=0

In all languages appears the text in English. I try modify language override with constants COM_VIRTUEMART_SEF_EDITADDRESSCARTST and COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL.

Thanks



Studio 42

Try to add your override in front and in back-end
Check here if you have the latest translation https://virtuemart.net/community/translations/virtuemart/
If you have an error in a language .ini file, then all other lines after this error are not translated(for eg. I you moifed directly the file and added double quotes in a string)

brassens

Hello, I tried override backend and front end, but not translate this text. I can't find the constant to translate/override this text. I not modified the .ini files. I think that with Joomla 3 and previous version of VM, this text ("Edit current shipping address") not appears. Thanks for your help!

Margriet

Are you using an extension for your shopping cart (OPC?). Maybe there the English text is hard coded?

brassens

Hello, I solved it. The problem was that the constant were not in the "es-ES.com_virtuemart.INI" file of Spanish language. I have added them in the INI file with their translation and they already appear. Thanks!