Missing translation Paypal Payment Description

  • Posts: 7
  • Thank you received: 0
8 years 2 months ago #153540

-- url of the page with the problem -- : www.errorhead.com
-- HikaShop version -- : Business 2.3.0-- Joomla version -- : 3.2.3 -- PHP version -- : 5.5.x
-- Browser(s) name and version -- : Chrome/IE
-- Error-message(debug-mod must be tuned on) -- : - None -

I noticed that there is a hardcoded Paypal Payment description (in file paypal.php, around line 392 - "You can pay by credit card or paypal using this payment method")

This text should be translated according to the selected front end language

Any short how-to.hack code is welcome

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 75835
  • Thank you received: 11830
  • MODERATOR
8 years 2 months ago #153578

Hi,

No hack needed.
That text is set as the default description of your payment method, which you can change when you edit it via the menu System>Payment methods.
You can also translate it there if you have Falang/JoomFish installed and the "Activate the edition of content in multiple languages" option of the configuration turned on.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
8 years 2 months ago #153638

Thanks Nicolas, i wasn't aware that this text is accessible from the backend - but: my site is multilingual (germna/english) so i was wondering if i could replace the hardcoded Default test in payppal.php with some 'placeholder' like

$element->payment_description=JText::sprintf('CHECK_DOCUMENTATION'PAYPAL_PAYMENT_DESCRTIPTION'..) <- i don't know the correct syntax!

and then add the new placeholder to those language.ini files...?

Please Log in or Create an account to join the conversation.

  • Posts: 75835
  • Thank you received: 11830
  • MODERATOR
8 years 2 months ago #153649

Hi,

As I said, that text is for the default description of the payment method.
If you do that change, it means that when you create a new instance of that payment method, the description will be in one language or another based on the language you are in on your backend. But then the text will be the same on the frontend, regardless of the language, as it is used only to set the default text there.

So It won't do what you want.
I would recommend to use the solution I proposed.

The following user(s) said Thank You: Fliegel

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
8 years 1 month ago #154004

I see, i'll have a bilingual text description then.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum