VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: betterlead on June 17, 2017, 11:09:01 AM

Title: Some Language Overrides stopped working after update to VM 3.2.2
Post by: betterlead on June 17, 2017, 11:09:01 AM
Hi, since I updated from VM 3.0.19 to latest VM 3.2.2, I noticed that some of my language overrides for confirmation Emails to "Vendor" are not working any longer. I have tried to find any possible new Language Constants for this, but I failed. I searched among Constants and also Values like "Confirmed".
I mostly use English in backend/Admin and  also Swedish, sometimes. My shop is in Swedish and I have also installed the sv-SE language file.

Can anybody give me a hint?
Cheers.
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: K&K media production on June 17, 2017, 13:19:53 PM
you should use vmText inside your overrides, not JText
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: betterlead on June 17, 2017, 17:05:39 PM
Hi,

Thanks, could you please be a bit more specific? I'm not quite sure what you mean.
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: K&K media production on June 17, 2017, 17:23:29 PM
look inside your template overrides for all things like

JText::_ ('COM_VIRTUEMART');

and replace it with

vmText::_ ('COM_VIRTUEMART');
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: betterlead on June 17, 2017, 20:25:24 PM
Sorry, I can't find anything like it. I understand there should be, but I can't.

So, you also mean that overriding these language files aren't possible to do from the standard "Extension ->Language(s)->overrides"?
I now need to dig in the codes/files?

Thanks
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: K&K media production on June 17, 2017, 20:46:03 PM
QuoteI now need to dig in the codes/files?

Yes these can you find inside your template overrides, not in your language overrides.


Do you have a commercial template or the default template? Link to your page?
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: jjk on June 17, 2017, 20:54:36 PM
Hi,
also check if there are any escapes for double quotes "_QQ_" in your language files and overrides. The latest Joomla version doesn't like that anymore. Each "_QQ_" should be replaced by a single quote '.
Eventually download and install the latest sv-SE language files from virtuemart.net.
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: betterlead on June 17, 2017, 21:44:12 PM
Hi again

Ok, I found the file, K&K ( https://livingstudio.se )

Thanks jjk. Long time no hear... I'll give it a try.

Btw, it's not a big deal for me, when "vendor" confirmation text is in English, since it's my own site. It was mostly out of curiosity.
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: K&K media production on June 17, 2017, 21:51:14 PM
OK it's a commercial template with overrides.

So search all JText and replace it with vmText inside

templates/your_template/html/com_virtuemart and subfolder files

or ask your template developer to update the template
Title: Re: Some Language Overrides stopped working after update to VM 3.2.2
Post by: betterlead on June 18, 2017, 10:37:17 AM
Many thanks, K&K media.