JensenDalgaard Posted May 19, 2014 Share Posted May 19, 2014 Can someone please help with the translation of the text "Pay with your card or your PayPal account" - See the enclosed screenshot. The text occurs during checkout - where you can decide on your method of payment (Bank wire or PayPal). The topic has been discussed before but the proposed solution does not work. Kind regards BeMike Denmark 1 Link to comment Share on other sites More sharing options...
kmorgen Posted May 31, 2014 Share Posted May 31, 2014 Did you figure it out? I also still struggle with this. Just cannot get it translated for Danish language. Link to comment Share on other sites More sharing options...
JensenDalgaard Posted June 2, 2014 Author Share Posted June 2, 2014 No, sorry - No help or solution yet. So please if anyone out there knows how to change the text - Please help! Link to comment Share on other sites More sharing options...
CartExpert.net Posted June 13, 2014 Share Posted June 13, 2014 Hi. The text can be found in translations.xml Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
kmorgen Posted June 13, 2014 Share Posted June 13, 2014 Does not work for Danish language for some reason. Both tried to edit 'Default' and create 'DA' locale with no luck. 2 Link to comment Share on other sites More sharing options...
EnsoSzL Posted September 3, 2014 Share Posted September 3, 2014 (edited) Also doesn't work for Hungarian language (using the latest PrestaShop and PayPal module).I had to edit the .tpl file: http://ctrlv.in/420107 I commented out the original not working code part (marked with red arrow). You can also override the tpl file: http://www.prestashop.com/forums/topic/201446-translate-pay-with-card-or-paypal-account/?do=findComment&comment=1359223 Edited September 3, 2014 by EnsoSzL (see edit history) Link to comment Share on other sites More sharing options...
JensenDalgaard Posted September 4, 2014 Author Share Posted September 4, 2014 EnsoSzl Where is this expres_checkout_payment.tpl file located? Link to comment Share on other sites More sharing options...
kmorgen Posted September 4, 2014 Share Posted September 4, 2014 Please notice that with the latest Paypal 3.7.2 version, you can now finally do the translation with the regular Prestashop translation system. Link to comment Share on other sites More sharing options...
JensenDalgaard Posted September 4, 2014 Author Share Posted September 4, 2014 Oh, great - Thanks. Tak, Kmorgen - Det vil jeg straks forsøge Link to comment Share on other sites More sharing options...
JensenDalgaard Posted September 4, 2014 Author Share Posted September 4, 2014 Please notice that with the latest Paypal 3.7.2 version, you can now finally do the translation with the regular Prestashop translation system. Perhaps you can point me in the right direction. I can't locate the phrase in the Translation module - Sorry.... Link to comment Share on other sites More sharing options...
kmorgen Posted September 4, 2014 Share Posted September 4, 2014 It is in 'Installed Modules translations' (installerede modul oversættelser). Select your Theme and language The easiest is probably to expand all fields and then to do a browser search (Ctrl + F) and search for: Pay with Link to comment Share on other sites More sharing options...
JensenDalgaard Posted September 4, 2014 Author Share Posted September 4, 2014 Dear Kmorgen The text can't be located. It is the text in the PayPal "logo" window which appears at the end of check-out process. Please see enclosed screen shot. Regards BeMike Link to comment Share on other sites More sharing options...
kmorgen Posted September 4, 2014 Share Posted September 4, 2014 Just tried here, and it works with Paypal 3.7.2 and the default OPC. The string is called: EXPRESS_CHECKOUT_PAYMENT and my english default title say: Pay with Paypal You can see the result at checkout @ www.chill-innovation.com 2 Link to comment Share on other sites More sharing options...
marboo Posted September 6, 2014 Share Posted September 6, 2014 (edited) @kmorgen, the phrase we are all looking for translating does not exist in the translation page you mention. This phrase only exists in the translations.xml file, which does not seem to work if edited. The phrase is not "Pay with Paypal", but "Pay with your card or your PayPal account". These are 2 different phrases. In other words, even if I change the phrase "Pay with Paypal" through the translation page, the phrase "Pay with your card or your PayPal account" will remain english by default. Actually in your site, the phrase is "Pay with your Card (Visa, MasterCard etc.) or PayPal account" - in english. The following worked for me, 1.6.0.9, paypal 3.7.2. - thank you EnsoSzL. You can also override the tpl file: http://www.prestashop.com/forums/topic/201446-translate-pay-with-card-or-paypal-account/?do=findComment&comment=1359223 Edited September 6, 2014 by marboo (see edit history) Link to comment Share on other sites More sharing options...
fandal Posted December 19, 2014 Share Posted December 19, 2014 I had the same problem and I found a function in papypal.php called getCountryDependency: public function getCountryDependency($iso_code) { $localizations = array( 'AU' => array('AU'), 'BE' => array('BE'), 'CN' => array('CN', 'MO'), 'CZ' => array('CZ'), 'DE' => array('DE'), 'ES' => array('ES'), 'FR' => array('FR'), 'GB' => array('GB'), 'HK' => array('HK'), 'IL' => array('IL'), 'IN' => array('IN'), 'IT' => array('IT', 'VA'), 'JP' => array('JP'), 'MY' => array('MY'), 'NL' => array('AN', 'NL'), 'NZ' => array('NZ'), 'PL' => array('PL'), 'PT' => array('PT', 'BR'), 'RA' => array('AF', 'AS', 'BD', 'BN', 'BT', 'CC', 'CK', 'CX', 'FM', 'HM', 'ID', 'KH', 'KI', 'KN', 'KP', 'KR', 'KZ', 'LA', 'LK', 'MH', 'MM', 'MN', 'MV', 'MX', 'NF', 'NP', 'NU', 'OM', 'PG', 'PH', 'PW', 'QA', 'SB', 'TJ', 'TK', 'TL', 'TM', 'TO', 'TV', 'TZ', 'UZ', 'VN', 'VU', 'WF', 'WS'), 'RE' => array('IE', 'ZA', 'GP', 'GG', 'JE', 'MC', 'MS', 'MP', 'PA', 'PY', 'PE', 'PN', 'PR', 'LC', 'SR', 'TT', 'UY', 'VE', 'VI', 'AG', 'AR', 'CA', 'BO', 'BS', 'BB', 'BZ', 'CL', 'CO', 'CR', 'CU', 'SV', 'GD', 'GT', 'HN', 'JM', 'NI', 'AD', 'AE', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AT', 'AW', 'AX', 'AZ', 'BA', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BV', 'BW', 'BY', 'CD', 'CF', 'CG', 'CH', 'CI', 'CM', 'CV', 'CY', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ET', 'FI', 'FJ', 'FK', 'FO', 'GA', 'GE', 'GF', 'GH', 'GI', 'GL', 'GM', 'GN', 'GQ', 'GR', 'GS', 'GU', 'GW', 'GY', 'HR', 'HT', 'HU', 'IM', 'IO', 'IQ', 'IR', 'IS', 'JO', 'KE', 'KM', 'KW', 'KY', 'LB', 'LI', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MD', 'ME', 'MF', 'MG', 'MK', 'ML', 'MQ', 'MR', 'MT', 'MU', 'MW', 'MZ', 'NA', 'NC', 'NE', 'NG', 'NO', 'NR', 'PF', 'PK', 'PM', 'PS', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SC', 'SD', 'SE', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'ST', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TN', 'UA', 'UG', 'VC', 'VG', 'YE', 'YT', 'ZM', 'ZW'), 'SG' => array('SG'), 'TH' => array('TH'), 'TR' => array('TR'), 'TW' => array('TW'), 'US' => array('US')); foreach ($localizations as $key => $value) if (in_array($iso_code, $value)) return $key; return $this->getCountryDependency(self::DEFAULT_COUNTRY_ISO); } as u can see there are many countries under 'RE' so if your localization is set something from that array you will get the translation for 'RE' from the translations.xmlso u can remove your country from that array and make a new for it.'HU' => array('HU'),after that you make a new country entry in the translations.xml with your country's iso code <country iso_code="HU"> <yes>Yes</yes> <no>No</no> <payment_choice>Pay with your card or your PayPal account</payment_choice> <leader>Leader in</leader> .... Sorry for my english :/ 2 Link to comment Share on other sites More sharing options...
Nick Lappage Posted December 19, 2014 Share Posted December 19, 2014 I had the same problem and I found a function in papypal.php called getCountryDependency: public function getCountryDependency($iso_code) { $localizations = array( 'AU' => array('AU'), 'BE' => array('BE'), 'CN' => array('CN', 'MO'), 'CZ' => array('CZ'), 'DE' => array('DE'), 'ES' => array('ES'), 'FR' => array('FR'), 'GB' => array('GB'), 'HK' => array('HK'), 'IL' => array('IL'), 'IN' => array('IN'), 'IT' => array('IT', 'VA'), 'JP' => array('JP'), 'MY' => array('MY'), 'NL' => array('AN', 'NL'), 'NZ' => array('NZ'), 'PL' => array('PL'), 'PT' => array('PT', 'BR'), 'RA' => array('AF', 'AS', 'BD', 'BN', 'BT', 'CC', 'CK', 'CX', 'FM', 'HM', 'ID', 'KH', 'KI', 'KN', 'KP', 'KR', 'KZ', 'LA', 'LK', 'MH', 'MM', 'MN', 'MV', 'MX', 'NF', 'NP', 'NU', 'OM', 'PG', 'PH', 'PW', 'QA', 'SB', 'TJ', 'TK', 'TL', 'TM', 'TO', 'TV', 'TZ', 'UZ', 'VN', 'VU', 'WF', 'WS'), 'RE' => array('IE', 'ZA', 'GP', 'GG', 'JE', 'MC', 'MS', 'MP', 'PA', 'PY', 'PE', 'PN', 'PR', 'LC', 'SR', 'TT', 'UY', 'VE', 'VI', 'AG', 'AR', 'CA', 'BO', 'BS', 'BB', 'BZ', 'CL', 'CO', 'CR', 'CU', 'SV', 'GD', 'GT', 'HN', 'JM', 'NI', 'AD', 'AE', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AT', 'AW', 'AX', 'AZ', 'BA', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BV', 'BW', 'BY', 'CD', 'CF', 'CG', 'CH', 'CI', 'CM', 'CV', 'CY', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ET', 'FI', 'FJ', 'FK', 'FO', 'GA', 'GE', 'GF', 'GH', 'GI', 'GL', 'GM', 'GN', 'GQ', 'GR', 'GS', 'GU', 'GW', 'GY', 'HR', 'HT', 'HU', 'IM', 'IO', 'IQ', 'IR', 'IS', 'JO', 'KE', 'KM', 'KW', 'KY', 'LB', 'LI', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MD', 'ME', 'MF', 'MG', 'MK', 'ML', 'MQ', 'MR', 'MT', 'MU', 'MW', 'MZ', 'NA', 'NC', 'NE', 'NG', 'NO', 'NR', 'PF', 'PK', 'PM', 'PS', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SC', 'SD', 'SE', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'ST', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TN', 'UA', 'UG', 'VC', 'VG', 'YE', 'YT', 'ZM', 'ZW'), 'SG' => array('SG'), 'TH' => array('TH'), 'TR' => array('TR'), 'TW' => array('TW'), 'US' => array('US')); foreach ($localizations as $key => $value) if (in_array($iso_code, $value)) return $key; return $this->getCountryDependency(self::DEFAULT_COUNTRY_ISO); } as u can see there are many countries under 'RE' so if your localization is set something from that array you will get the translation for 'RE' from the translations.xml so u can remove your country from that array and make a new for it. 'HU' => array('HU'), after that you make a new country entry in the translations.xml with your country's iso code <country iso_code="HU"> <yes>Yes</yes> <no>No</no> <payment_choice>Pay with your card or your PayPal account</payment_choice> <leader>Leader in</leader> .... Sorry for my english :/ Excellent post - That's solved the problem in a much easier way. Thanks!! 1 Link to comment Share on other sites More sharing options...
nicolamph Posted September 16, 2016 Share Posted September 16, 2016 Dear all, finally I found a solution following this thread and I translated it. But now I wish to delete definitely that phrase (I just want customer is able to see the payment logo, nothing else). Anyone could advice how I can do that? Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now