Author Topic: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied  (Read 234 times)

David

  • Jr. Member
  • **
  • Posts: 53
Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« 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?
Joomla 3.8.0, VirtueMart 3.2.4

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #1 on: September 09, 2017, 08:11:05 am »
What language ?
Have You created the back end override also ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

David

  • Jr. Member
  • **
  • Posts: 53
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #2 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.
Joomla 3.8.0, VirtueMart 3.2.4

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #3 on: September 09, 2017, 17:34:40 pm »
Create the back en override and see what happens.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

David

  • Jr. Member
  • **
  • Posts: 53
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #4 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.
Joomla 3.8.0, VirtueMart 3.2.4

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #5 on: September 10, 2017, 11:02:07 am »
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

David

  • Jr. Member
  • **
  • Posts: 53
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #6 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)
Joomla 3.8.0, VirtueMart 3.2.4

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #7 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

Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

David

  • Jr. Member
  • **
  • Posts: 53
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #8 on: September 13, 2017, 02:16:23 am »
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 :).
Joomla 3.8.0, VirtueMart 3.2.4

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Language override of COM_VIRTUEMART_MAIL_SHOPPER_NAME not applied
« Reply #9 on: September 13, 2017, 06:42:34 am »
You´re welcome  8)

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)