VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: brassens on July 03, 2023, 09:12:25 AM

Title: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: brassens on July 03, 2023, 09:12:25 AM
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
Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: GJC Web Design on July 03, 2023, 10:27:34 AM
Would help to mention which language!
Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: brassens on July 03, 2023, 11:22:46 AM
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


Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: Studio 42 on July 03, 2023, 12:40:56 PM
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)
Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: brassens on July 05, 2023, 08:57:34 AM
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!
Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: Margriet on July 12, 2023, 09:43:18 AM
Are you using an extension for your shopping cart (OPC?). Maybe there the English text is hard coded?
Title: Re: Some constant overrides not runs: COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL
Post by: brassens on August 25, 2023, 10:50:27 AM
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!