Transaltion of the fields Ship to Information, Select paymen

Transaltion of the fields Ship to Information, Select paymen

Postby marco@.....com » Tue Apr 24, 2012 12:21 pm

Hi to All,
I'm trying translate some fields from english to others languages.
I use Joomfish and Virtuemart.
Some fields are translate (Bill to information, Shipping information, Confirm Order), others aren't translated:

1. Ship to information
4. Select Payment
6. Checkout
-. Show Login
-. Guest Checkout

Which file I have to modify or which procedure I have to do?

Thanks
Marco
marco@.....com
 
Posts: 5
Joined: Tue Apr 24, 2012 12:12 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby admin » Wed Apr 25, 2012 10:37 pm

Hello,
some of the three column themes have these language strings hard written within the onepage.logged (and unlogged) files. If you'd like to create a language string, you can add it to your /administrator/components/com_virtuemart/languages/common/langxyz.php in the format as others are with a field name like 'OPC_STRING' and then show it with echo $VM_LANG->_('OPC_STRING');

example within /components/com_virtuemart/themes/default/templates/onepage/three_column_SOMETHING/onepage.logged (and unlogged).tpl.php:
Code: Select all
<h3>Payment section</h3>


would look like this:
Code: Select all
<h3><?php echo $VM_LANG->_('OPC_PAYMENT_SECTION'); ?></h3>


and in the lang file:
Code: Select all
...
'OPC_PAYMENT_SECTION' => 'Payment section in your lang',
...


In OPC2 we will add full language editor soon. In OPC1 only a partial language editor is avaiable.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby marco@.....com » Thu Apr 26, 2012 9:55 am

Hello,

thanks but I need more details.

I use the threecolumn_special_2 and within the file onepage.logged.tpl.php I don't find where I have to put the echo $VM_LANG.
For example if I want to translate the string:

2. SHIP TO INFORMATION

In /administrator/components/com_virtuemart/languages/common/italian.php I put

'ONEPAGE_SHIP_TO_INFORMATION'=> 'Indirizzo di spedizione',

In /components/com_virtuemart/themes/default/templates/onepage/three_column_2/onepage.logged (and unlogged).tpl.php I don't find where put the <h3><?php echo $VM_LANG->_('ONEPAGE_SHIP_TO_INFORMATION'); ?></h3>

The same for Show Login, Guest checkout, Payment Metod and Checkout strings.



Thanks,
Marco
marco@.....com
 
Posts: 5
Joined: Tue Apr 24, 2012 12:12 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby admin » Fri Apr 27, 2012 6:16 pm

Hello Marco, please send me here exact translations of missing strings and i will send you a full template with the needed modification of the VM lang strings - this will be done till end of next week.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby marco@.....com » Sun Apr 29, 2012 11:44 am

Hello Stan,

thanks.
The strings to transtate or modify are:

Show Login = Login
Guest Checkout = Nuovo Cliente

SHIP TO INFORMATION = INDIRIZZO DI SPEDIZIONE
Default address = Uguale a quello di fatturazione

INFORMAZIONI DI SPEDIZIONE = TIPO DI SPEDIZIONE

SELECT PAYMENT = TIPO DI PAGAMENTO


My target is also translate the site in others languages (French, Spanish and German): of course I should prefer to modify the template by myself. Is it possible with this new template?


I have another issue when we go to the Confirmation Order. Now my site is in english as default, when I use an italian browser the template works properly (except the translation that we are changing) till the confirmation order: the problem is that when we go to the payment the layout of the credit card is everytime in english. It's seem to be that OnePage uses the default language of the site and not the language of the browser (as Joomfish that I use). Is there an option to force it?

Thanks,
Marco
marco@.....com
 
Posts: 5
Joined: Tue Apr 24, 2012 12:12 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby marco@.....com » Fri May 11, 2012 9:21 am

Hi Stan,

do you have some news for me?

Thanks for your help,
Marco
marco@.....com
 
Posts: 5
Joined: Tue Apr 24, 2012 12:12 pm

Re: Transaltion of the fields Ship to Information, Select paymen

Postby marco@.....com » Wed May 16, 2012 8:48 am

Hi Stan,

please let me know if you can solve my problem otherwise I will consider other solution.

thnaks for your help,
marco
marco@.....com
 
Posts: 5
Joined: Tue Apr 24, 2012 12:12 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron