VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: David on September 09, 2017, 02:30:01 AM

Title: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: David on September 09, 2017, 02:30:01 AM
I have created a language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME, which is used in mail_html_header.php, but that override is not applied in resulting emails.
Can anyone confirm this faulty behavior?
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: Jörgen on September 09, 2017, 08:11:05 AM
What language ?
Have You created the back end override also ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: David on September 09, 2017, 14:19:33 PM
The language is Czech, but it probably does not matter.
COM_VIRTUEMART_MAIL_SHOPPER_NAME is front-end string only.
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: Jörgen on September 09, 2017, 17:34:40 PM
Create the back en override and see what happens.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: David on September 10, 2017, 00:39:52 AM
Sorry, but I dont know how to create a back-end override of a string, which only exist in front end.
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: Jörgen on September 10, 2017, 11:02:07 AM
https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla (https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla)

Regards

Jörgen @ Kreativ Fotografi
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: David on September 12, 2017, 20:17:33 PM
Jörgen,
if you are going to create a language override, you must first find the string, which you want to override. The string is either destined for the site area (front end) or for the administration area (back end). What I am telling you is that
1) string COM_VIRTUEMART_MAIL_SHOPPER_NAME only exists for the site area (not for the admin - back end area)
and
2) I have already created an override for it and it is not applied (which is why I created this forum topic)
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: Jörgen on September 12, 2017, 22:41:42 PM
You can create an override for the string in the backend even if it not exists from the start. If it is reached from the backend then it will be used.

You have not said if it displays in english or if it displays as: COM_VIRTUEMART_MAIL_SHOPPER_NAME

If it displays as COM_VIRTUEMART_MAIL_SHOPPER_NAME it is missing and inserting it as an override it will make it translate.

regards

Jörgen @ Kreativ Fotografi

Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: David on September 13, 2017, 02:16:23 AM
Quote from: Jörgen on September 12, 2017, 22:41:42 PM
You can create an override for the string in the backend even if it not exists from the start. If it is reached from the backend then it will be used.

You were right - it was necessary to create an override of COM_VIRTUEMART_MAIL_SHOPPER_NAME for the back end, though the string only existed for the front end. I don't see much logic in it, but certainly thanks for your assistance :).
Title: Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
Post by: Jörgen on September 13, 2017, 06:42:34 AM
You´re welcome  8)

regards

Jörgen @ Kreativ Fotografi