VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dron_gr on February 20, 2012, 14:49:33 PM

Title: PAYPAL: how to set russian localization in checkout?
Post by: dron_gr on February 20, 2012, 14:49:33 PM
Hi!

How to set russian language so everything will be on russian in checkout?

So everything on picture needed to be in russian language. Also how to change that strange symbols on picture to be readable?

lc=ru_RU - that one i was using to change in russian when i was placing ADD TO CART button without virtuemart. Maybe there is a place where i can put iside that code?

[attachment cleanup by admin]
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: jjk on February 21, 2012, 11:25:04 AM
Quote from: dron_gr on February 20, 2012, 14:49:33 PM
Also how to change that strange symbols on picture to be readable?

I might have a solution for your strange symbols on the left side:

The problem appears to be that Paypal uses Content-Type: text/plain; charset=windows-1252

The solution is to adjust the encoding of the PayPal Business account . In this case the settings for the character encoding is hidden behind the 'My Profile' - 'More' - 'Language Encoding' - 'Additional Options' button.
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: dron_gr on February 22, 2012, 11:45:26 AM
Wow thanks !!! It was KOI8-R and the page charset was setted on utf-8 so i changed PayPal account settings in Profile -> PayPal button language encoding -> Advanced options -> UTF-8. Thats the solution! Thanks a lot!

What about Russian check out how to fix that?
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: jjk on February 22, 2012, 13:49:13 PM
Quote from: dron_gr on February 22, 2012, 11:45:26 AM
What about Russian check out how to fix that?

I'm not shure if PayPal has a russian checkout available. Does it still display english if you switch your browser language to russian?
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: dron_gr on February 22, 2012, 14:33:24 PM
Many thanks for your interesting.
Unfortunately no the switching does not help.  :(
And yes PayPal does have Russian because when i made some buttons (before using virtuemart) - ADD TO CART & VIEW CART - paypal support recommends me to put in custom variables lc=ru_RU which makes a paypal cart and checkout in Russian language. So that code in html interpretation was looking like that:

<input type="hidden" name="lc" value="ru_RU">

and its worked fine.

So maybe there is a special place where i can put that custom variable somewhere in virtuemart or in php?
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: dron_gr on February 22, 2012, 14:56:38 PM
Oh i just solved my problem : plugins/vmpayment/paypal/paypal.php
after row 145 which is:

$post_variables = Array(

i put mine variable:

'lc' => 'ru_RU',

and check out page is displayed in Russian language.

Anyway thank a lot for help!
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: alatak on February 22, 2012, 18:59:03 PM
Hi,

ok great.
I will do add the website front end language in the Paypal form.
Title: Re: PAYPAL: how to set russian localization in checkout?
Post by: Maggern on July 18, 2012, 18:12:34 PM
Thanks. This work with 2.0.8c!