yoko-t Posted March 4, 2013 Share Posted March 4, 2013 I'm using Japanese as my default language and invoice PDFs are translated in Japanese. But I have a problem. in invoice PDF, there is a part which displays payment method. but the part is not translated to Japanese. instead it displays such as 'Paypal' or 'Bank Wire' and I want to make them displayed in Japanese. I checked the source code of /pdf/invoice-new.tpl and the part was like this: <td style="width: 50%">{$payment->payment_method}</td> I don't know how to fix this part and translate it into my default language. Thanks in advance. 1 Link to comment Share on other sites More sharing options...
sikera Posted February 26, 2014 Share Posted February 26, 2014 I have the same problem :/ Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 26, 2014 Share Posted February 26, 2014 Go to Localization > Translations In the Modify Translation Drop down box select PDF translations. Choose the language. Using your Browser Page Search function to find item you wish to change. Link to comment Share on other sites More sharing options...
sikera Posted February 27, 2014 Share Posted February 27, 2014 Go to Localization > Translations In the Modify Translation Drop down box select PDF translations. Choose the language. Using your Browser Page Search function to find item you wish to change. The paymend method translation is not there. We wont to change "PayPal", " Bank Wire".... Payment method is in English :/ Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 27, 2014 Share Posted February 27, 2014 (edited) First, PayPal is a "brand". You don't change or translate PayPal. In other words if you are on Mars and speaking to a Martian ... you are both saying PayPal. That said, to change PayPal it does depend on which PayPal module is in use. You might look in your PayPal Module folder and see if it contains a file called translations.xml , if so translations are arranged in that file by country ISO code. For Bank Wire, here is a thread that may help, http://www.prestashop.com/forums/topic/243561-solved-translate-bankwire-text-in-front-office/ Let me know if any of this helps you. Edited February 27, 2014 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
Omk Posted September 23, 2014 Share Posted September 23, 2014 (edited) Well, in Japan they translate everything into Japanese. In Japan, for instance, they have Makudonaldo instead of McDonald's. Edited September 23, 2014 by Omk (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted September 26, 2014 Share Posted September 26, 2014 Interesting. Payment methods are really brands. You can't translate them. I would use an {if} condition. Something like: {if $iso_code == 'ja'} {if $payment->payment_method == 'bankwire'} Bankwire in Japanese {elseif $payment->payment_method == 'paypal'} PayPal in Japanese {/if} {else} {$payment->payment_method} {/if} Variables must be changes. It is just an idea. Link to comment Share on other sites More sharing options...
Omk Posted September 28, 2014 Share Posted September 28, 2014 Thanks. This is a solution. Once done, how can we contribute the fixes to the bankwire module? Link to comment Share on other sites More sharing options...
tuk66 Posted September 29, 2014 Share Posted September 29, 2014 I don't know if it is possible. This patch is just for you, you need to translate texts as well. The solution is very individual. Link to comment Share on other sites More sharing options...
Recommended Posts