News:

Support the VirtueMart project and become a member

Main Menu

PAYPAL: how to set russian localization in checkout?

Started by dron_gr, February 20, 2012, 14:49:33 PM

Previous topic - Next topic

dron_gr

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]

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

dron_gr

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?

jjk

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?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

dron_gr

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?

dron_gr

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!

alatak

Hi,

ok great.
I will do add the website front end language in the Paypal form.

Maggern