Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Translation for order status
(1 viewing) (1) Guest
If you have made full or even partial translation to your language, please, upload it here to share with others.
  • Page:
  • 1

TOPIC: Translation for order status

Translation for order status 7 years ago #34265

My e-shop has two languages (English and Chinese) and I use language override in Virtuemart to display the order status (i.e. in order status is named as "COM_VIRTUEMART_ORDER_STATUS_XXXX" and it is translated to the corresponding order status in the language override file.) and it works fine in the Virtuemart orders.

For example, for the confirmed order, its order status in the database is "COM_VIRTUEMART_ORDER_STATUS_CONFIRMED". In en-GB.override.ini file (the English language override file), "COM_VIRTUEMART_ORDER_STATUS_CONFIRMED" is translated as "Confirmed". Hence, the order status will be shown as "Confirmed" in English.

in VM Invoice: Invoice / Order Management, the order status is shown as "COM_VIRTUEMART_ORDER_STATUS_CONFIRMED" rather than the translated word "Confirmed". I have checked the program code and suspected that the following code in 'administrator/components/com_vminvoice/views/invoices/tmpl/default.php' may be amended for the translated.

Code to be amended :
<?php echo JHTML::_('select.genericlist', $this->statuses, 'filter_order_status[]', 'multiple="multiple" size="5"', 'id', 'name', JRequest::getVar('filter_order_status',array())); ?>

However, since I am not familiarize with the php coding, would you please advise how this coding should be amended in order to show the translated word.

Many thanks.

Re: Translation for order status 4 years, 9 months ago #46059

I have the same problem with product attributes. I have different product attributes defined with constant strings in VM, and those constant strings are translated on each language.
But on invoice it appears the constant string instead of the translated string. The problem is usually not adding the JTEXT function so Joomla knows this is a translatable string.
Can you point me where to change this so i get my translated product attribute on the invoice?
Thanks!
  • Page:
  • 1
User Login Empty