VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: jesussuarez on June 11, 2021, 11:25:09 AM

Title: Payment info translation
Post by: jesussuarez on June 11, 2021, 11:25:09 AM
Hello.

I have a site with 4 languages. I'm using native translation system of Joomla. My version ofg Joomla is 3.9.27
My version of VM is 3.8.8

The problem is that VM don't save the translations that I enter in Payment info field (Configuration tab on Standard payment info). I can use only one language for all the languages of the site.
If I write Payment info in english, it remains in the rest of the languages and even if I change it in another language, the change is made for all.

I cannot define languages separately. Please, can you help me. Some idea of what's happening and how to solve it?

Thank you very much & Best regards :-)
Title: Re: Payment info translation
Post by: Jörgen on June 11, 2021, 11:47:30 AM
Have You tried to use a language key ?

Jörgen @ Kreativ Fotografi
Title: Re: Payment info translation
Post by: jesussuarez on June 11, 2021, 11:59:06 AM
Can you explain me how to use language key please ?

Thank you very much
Title: Re: Payment info translation
Post by: Jörgen on June 11, 2021, 12:21:02 PM
First you create a language key with the Joomla language manager. One instance for each language.
Key:  'CUSTOM_PAYMENT_DESCRIPTION'
Language en: This is my payment description
Language de: Das ist meine Zahlungsbeschreibung
etc

Then use the key instead of the description:

CUSTOM_PAYMENT_DESCRIPTION

No extra blanks or CR/LF should be included. If it does not work, you may have to override the payment template file.

Jörgen @ Kreativ Fotografi
Title: Re: Payment info translation
Post by: jesussuarez on June 11, 2021, 12:28:54 PM
Ok. I'll probe it.

Thank you very much :-)
Title: Re: Payment info translation
Post by: Jörgen on June 17, 2021, 08:42:27 AM
Hello again

I have tried this with the standard payment and is seem to work.


This is the text that is displayed for the payment after the order is confirmed.

From what I can see does this not work for the Payment description field that is used in the check out.

Jörgen @ Kreativ Fotografi