VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: cuie on February 19, 2013, 07:01:26 AM

Title: Where to edit the view after sent order?
Post by: cuie on February 19, 2013, 07:01:26 AM
Hi!

I have spent hours for this and just can´t find an answer.

I have localized version (finnish) of VM and my view after the order is done and sent still shows some un-localized (english) text:

(http://creatic.fi/asiakkaat/demo.png)

Any idea where I can translate those texts in finnish? I have looked all the files in /language/en-GB/ but can´t find the relevant one.. :(

Title: Re: Where to edit the view after sent order?
Post by: tzic on February 20, 2013, 11:28:58 AM
You should edit this file: YOUR_LANGUAGE.com_virtuemart.ini located in /language/YOUR_LANGUAGE. Open the ini file and use search (CTRL-F) to find any non translated items
Title: Re: Where to edit the view after sent order?
Post by: cuie on February 20, 2013, 11:35:37 AM
Quote from: tzic on February 20, 2013, 11:28:58 AM
You should edit this file: YOUR_LANGUAGE.com_virtuemart.ini located in /language/YOUR_LANGUAGE. Open the ini file and use search (CTRL-F) to find any non translated items

Hi Tzic  and thanks for your reply,

I know that I have to edit my own language file but I`m trying to find correct variable that I have to translate. My own language file (finnish) doesn´t hold all the same items than the english one. That´s why I tried to find where they are in english.

VM replaces missing language variables with default one (en_GB).
Title: Re: Where to edit the view after sent order?
Post by: xpozay on March 29, 2013, 01:13:54 AM
I suspect I am late in replying to your message.  Load up a text editor that includes a search in files function.  Then search across the files for the english language string that you are trying to find.

Unfortunately, I do not recognise what part of virtuemart your picture is from.  Is it the order that is sent, the order viewed online, etc.?  Without that it is hard to direct you specifically.  Thus these are the english ones.

administrator\language\en-GB\en-GB.com_virtuemart.ini
Line 993: COM_VIRTUEMART_ORDER_PRINT_PAYMENT_LBL="Payment Method"
Line 1053: COM_VIRTUEMART_PAYMENTMETHOD="Payment Method"
Line 1075: COM_VIRTUEMART_PAYMENT_CLASS_NAME="Payment Method"
Line 1077: COM_VIRTUEMART_PAYMENT_ELEMENT="Payment Method"

administrator\language\en-GB\en-GB.plg_vmpayment_standard.ini
Line 30: VMPAYMENT_STANDARD_PAYMENT_INFO="Payment method"

plus each plugin for the different payment method types may have their own.
Title: Re: Where to edit the view after sent order?
Post by: Peter Pillen on March 29, 2013, 08:27:24 AM
I think the files you are looking for are somewhere in the folder of components\com_virtuemart\views\cart\tmpl\order_done.php. Maybe you'll find a hint to the language variables there.
Title: Re: Where to edit the view after sent order?
Post by: dragos.d on May 10, 2013, 16:11:45 PM
Hello,

Any luck in finding that translation variables? I have the same problem.
The file is order_done.php but I can't figure out how that table is created. 
Title: Re: Where to edit the view after sent order?
Post by: Peter Pillen on May 10, 2013, 18:32:00 PM
the language variables are defined in languages\*your language*\* your language*.com_virtuemart.ini

mine is created like below
<?php 
echo "<h3>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";
echo 
"<p>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_NOTICE')."</p>";
?>