[Skip to main content](#vessel-content)

#   Missing translation Paypal Payment Description

##

- **[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")**
- [![Fliegel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32173.jpg)](/forum/user/32173-fliegel "View Fliegel's Profile") Topic Author
- [ Offline](/forum/user/32173-fliegel)

Less More

- Posts: 7
- Thank you received: 0
-
-
-

12 years 6 months ago [\#153540](#153540) by [Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")  *[Missing translation Paypal Payment Description](/forum/10-translation/867697-missing-translation-paypal-payment-description#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 - &quot;You can pay by credit card or paypal using this payment method&quot;)  This text should be translated according to the selected front end language  Any short how-to.hack code is welcome  Thanks!")* was created by *[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")*

-- url of the page with the problem -- : [ www.errorhead.com](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg2NzY5Ny1taXNzaW5nLXRyYW5zbGF0aW9uLXBheXBhbC1wYXltZW50LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 6 months ago [\#153578](#153578) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing translation Paypal Payment Description](/forum/10-translation/867697-missing-translation-paypal-payment-description#153578 "-- 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 - &quot;You can pay by credit card or paypal using this payment method&quot;)  This text should be translated according to the selected front end language  Any short how-to.hack code is welcome  Thanks!")*

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&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg2NzY5Ny1taXNzaW5nLXRyYW5zbGF0aW9uLXBheXBhbC1wYXltZW50LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")**
- [![Fliegel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32173.jpg)](/forum/user/32173-fliegel "View Fliegel's Profile") Topic Author
- [ Offline](/forum/user/32173-fliegel)

Less More

- Posts: 7
- Thank you received: 0
-
-
-

12 years 6 months ago [\#153638](#153638) by [Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")  Replied by *[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")* on topic *[Missing translation Paypal Payment Description](/forum/10-translation/867697-missing-translation-paypal-payment-description#153638 "-- 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 - &quot;You can pay by credit card or paypal using this payment method&quot;)  This text should be translated according to the selected front end language  Any short how-to.hack code is welcome  Thanks!")*

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-&gt;payment_description=JText::sprintf('CHECK_DOCUMENTATION'PAYPAL_PAYMENT_DESCRTIPTION'..) &lt;- i don't know the correct syntax!

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg2NzY5Ny1taXNzaW5nLXRyYW5zbGF0aW9uLXBheXBhbC1wYXltZW50LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 6 months ago [\#153649](#153649) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing translation Paypal Payment Description](/forum/10-translation/867697-missing-translation-paypal-payment-description#153649 "-- 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 - &quot;You can pay by credit card or paypal using this payment method&quot;)  This text should be translated according to the selected front end language  Any short how-to.hack code is welcome  Thanks!")*

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](/forum/user/32173-fliegel "View Fliegel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg2NzY5Ny1taXNzaW5nLXRyYW5zbGF0aW9uLXBheXBhbC1wYXltZW50LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")**
- [![Fliegel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32173.jpg)](/forum/user/32173-fliegel "View Fliegel's Profile") Topic Author
- [ Offline](/forum/user/32173-fliegel)

Less More

- Posts: 7
- Thank you received: 0
-
-
-

12 years 5 months ago [\#154004](#154004) by [Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")  Replied by *[Fliegel](/forum/user/32173-fliegel "View Fliegel's Profile")* on topic *[Missing translation Paypal Payment Description](/forum/10-translation/867697-missing-translation-paypal-payment-description#154004 "-- 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 - &quot;You can pay by credit card or paypal using this payment method&quot;)  This text should be translated according to the selected front end language  Any short how-to.hack code is welcome  Thanks!")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg2NzY5Ny1taXNzaW5nLXRyYW5zbGF0aW9uLXBheXBhbC1wYXltZW50LWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.199 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
