- Posts: 7
- Thank you received: 0
Missing translation Paypal Payment Description
12 years 5 months ago #153540
by Fliegel
Missing translation Paypal Payment Description was created by Fliegel
-- 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!
-- 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.
12 years 5 months ago #153578
by nicolas
Replied by nicolas on topic Missing translation Paypal Payment Description
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.
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.
12 years 5 months ago #153638
by Fliegel
Replied by Fliegel on topic Missing translation Paypal Payment Description
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...?
$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.
12 years 5 months ago #153649
by nicolas
Replied by nicolas on topic Missing translation Paypal Payment Description
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.
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.
12 years 4 months ago #154004
by Fliegel
Replied by Fliegel on topic Missing translation Paypal Payment Description
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.179 seconds