Author Topic: Hardcoded Language String - Notify Customer  (Read 854 times)

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 219
    • Bulgarian Computer Store
Hardcoded Language String - Notify Customer
« on: September 24, 2017, 09:10:34 am »
There is a language string that can not be translated.

In the file: com_virtuemart/controllers/productdetails.php
Code: [Select]
$msg = 'Notify Customer; Could not add user to waiting list';
No pain, no gain, no site!

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 219
    • Bulgarian Computer Store
Re: Hardcoded Language String - Notify Customer
« Reply #1 on: September 24, 2017, 19:15:30 pm »
And another place.
Displays the message according to the store's primary language:

administrator/components/com_virtuemart/models/user.php
Code: [Select]
vmInfo('COM_VIRTUEMART_REG_COMPLETE');
No pain, no gain, no site!

padalec

  • Jr. Member
  • **
  • Posts: 55
Re: Hardcoded Language String - Notify Customer
« Reply #2 on: October 30, 2017, 13:47:46 pm »
Hi,

I have the same issue. I cannot translate this two language string:

COM_VIRTUEMART_REG_COMPLETE
COM_VIRTUEMART_DISPLAYED_NAME

I did the translation overrides and I double checked the translation, but VM still did not want my translations.

Any know issues about this? How can I diagnose the problem?

Joomla 3.8.1
VM  3.2.4
PHP 7.0.24

roman5527

  • Jr. Member
  • **
  • Posts: 135
Re: Hardcoded Language String - Notify Customer
« Reply #3 on: October 04, 2018, 21:45:40 pm »
I have this problem too.

any idea to fix ?

i have joomla 3.8.12 and VM 3.4

thanks

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3512
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Hardcoded Language String - Notify Customer
« Reply #4 on: October 05, 2018, 00:26:07 am »
Does the keys exist in back-end ?
COM_VIRTUEMART_REG_COMPLETE
COM_VIRTUEMART_DISPLAYED_NAME
Virtumeart load some keys from back-end so perhaps, the problem is here.
Another problem can be if the option to show the order in user language is not checked. It's possible that in this case Virtuemart always load default language(i never tested).