- Posts: 2
- Thank you received: 0
Translate "Bank account information" in "Bank Transfer" payment plugin
- aetoseditions
-
Topic Author
- Offline
Less
More
3 years 3 months ago - 3 years 3 months ago #352291
by aetoseditions
-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.0.28
-- Browser(s) name and version -- : Chrome 114.0.5735.110 (64-bit)
I would like to translate the field "Bank account information" of the "Bank Transfer" payment plugin, but when i click at the translation flags (at the hikashop backend) then only the Name and Description fields of the payment method can be translated.
I created a language override called BANK_ACCOUNT_INFO for each one of the languages of my site and put that override constant at the field "Bank account information" but it is not translated at the front end. The translation should be shown at the confirmation page, when the user chooses "Bank account deposit" to be the payment method for his order and then clicks the Finnish button, but instead of that only the constant name BANK_ACCOUNT_INFO shows up at the confirmation page.
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.0.28
-- Browser(s) name and version -- : Chrome 114.0.5735.110 (64-bit)
I would like to translate the field "Bank account information" of the "Bank Transfer" payment plugin, but when i click at the translation flags (at the hikashop backend) then only the Name and Description fields of the payment method can be translated.
I created a language override called BANK_ACCOUNT_INFO for each one of the languages of my site and put that override constant at the field "Bank account information" but it is not translated at the front end. The translation should be shown at the confirmation page, when the user chooses "Bank account deposit" to be the payment method for his order and then clicks the Finnish button, but instead of that only the constant name BANK_ACCOUNT_INFO shows up at the confirmation page.
Last edit: 3 years 3 months ago by aetoseditions.
Please Log in or Create an account to join the conversation.
3 years 3 months ago #352321
by nicolas
Replied by nicolas on topic Translate "Bank account information" in "Bank Transfer" payment plugin
Hi,
You need to make sure you don't have any other characters other than the translation key in the "bank account information" setting: no spaces, no return lines, no HTML tags.
Then, you'll have the translation instead of the translation key at the end of the checkout.
You need to make sure you don't have any other characters other than the translation key in the "bank account information" setting: no spaces, no return lines, no HTML tags.
Then, you'll have the translation instead of the translation key at the end of the checkout.
The following user(s) said Thank You: aetoseditions
Please Log in or Create an account to join the conversation.
- aetoseditions
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
3 years 3 months ago - 3 years 3 months ago #352328
by aetoseditions
Replied by aetoseditions on topic Translate "Bank account information" in "Bank Transfer" payment plugin
Hi Nicolas, thank you very much for your immediate response.
You were absolutely right. I didn't notice that my WYSIWYG editor (TinyMCE) added the html tags <p> and </p> before and after the translation key: <p>BANK_ACCOUNT_INFO</p>. Now i have chosen the Joomla CodeMirror editor and i deleted the <p> and </p> tags from the field "Bank account information" (so i have left only the translation key BANK_ACCOUNT_INFO in the field). So now everything works as expected.
You were absolutely right. I didn't notice that my WYSIWYG editor (TinyMCE) added the html tags <p> and </p> before and after the translation key: <p>BANK_ACCOUNT_INFO</p>. Now i have chosen the Joomla CodeMirror editor and i deleted the <p> and </p> tags from the field "Bank account information" (so i have left only the translation key BANK_ACCOUNT_INFO in the field). So now everything works as expected.
Last edit: 3 years 3 months ago by aetoseditions.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 75
- Thank you received: 4
3 years 2 weeks ago - 3 years 2 weeks ago #354946
by Petike1007
Replied by Petike1007 on topic Translate "Bank account information" in "Bank Transfer" payment plugin
Would be great to make that field translatable by hikashop so we can manage it from one place and don't have to use language strings.
Last edit: 3 years 2 weeks ago by Petike1007.
Please Log in or Create an account to join the conversation.
Time to create page: 0.201 seconds