News:

Support the VirtueMart project and become a member

Main Menu

Translate order status

Started by patrik60, April 21, 2012, 16:09:17 PM

Previous topic - Next topic

patrik60

Is there any way to translate order status?

K&K media production

Get translatable custom fields:
[url="http://extensions.virtuemart.net/products/multilingual-translatable-custom-fields-detail"]http://extensions.virtuemart.net/products/multilingual-translatable-custom-fields-detail[/url]

patrik60

Thank you,but this makes no sense in a bilingual shop.

patrik60

It can be done by using language strings (language override). It works then fine in Virtuemart->Account Maintenace->Order Information->Order History.

But it doesn't work in "your orders" tab and confirmation E-Mail.

Studio 42

Hi,
You can use a language Key as joomla , but it's possible in some view the function jText is not in all template files.
Free XML sitemap generator [url="http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm"]http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm[/url]  , Free Unused Image cleaner [url="http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm"]http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm[/url]
Language Switch in product & category [url="http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm"]http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm[/url]
More extentions [url="http://shop.st42.fr/en/"]http://shop.st42.fr/en/[/url]

patrik60

Will there be any solution? It is somehow curious: in the same document I get once a correct translation and on the other side just the language string. See attached pic, it is from the confirm email. Once you can see "In Bearbeitung" (=correct translation) and once you see just the string BEARBEITUNG.


[attachment cleanup by admin]

jjk

Might be a typo in your 'Downloadable products' plugin language file. (Can't check that, because I don't have that plugin)
Non-English Shops: Are your language files up to date?
[url="http://virtuemart.net/community/translations"]http://virtuemart.net/community/translations[/url]

patrik60

#7
No, I don't think so. See the attached pic. There are problems also in other parts of VM.

[attachment cleanup by admin]

jjk

"Bearbeitung" is not part of the VM2 source code/language files. So I suppose it is somewhere in your 3rd party template.
Non-English Shops: Are your language files up to date?
[url="http://virtuemart.net/community/translations"]http://virtuemart.net/community/translations[/url]

patrik60

#9
"Bearbeitung" is a language override of "Pending". My question was, why this is working on some parts of VM and on others not.

Since I'm using a bilingual shop, I need to translate order status for both, English and German versions.

There are also other things like e.g. cart attributes which do not work on every part of VM.

jjk

#10
Got a hint from the lead devloper  ;)
Go to VM2 'Configuration' - 'Order Statuses' and select 'Pending'. In the field 'Order Status Name' enter "COM_VIRTUEMART_ORDER_STATUS_PENDING" (without the quotes) and click on 'Save'. Now it should pick the order status name from the language files. Do the same with the other order statuses. (Don't forget to delete your override)

This is similar to the translation of custom fields.

Update:
Initially works in the backend, but now the emails contain for example: Your order status is COM_VIRTUEMART_ORDER_STATUS_CONFIRMED. Didn't figure out yet how to adjust this now.
Non-English Shops: Are your language files up to date?
[url="http://virtuemart.net/community/translations"]http://virtuemart.net/community/translations[/url]

patrik60

QuoteUpdate:
Initially works in the backend, but now the emails contain for example: Your order status is COM_VIRTUEMART_ORDER_STATUS_CONFIRMED. Didn't figure out yet how to adjust this now.
Now you are as far as I am  ;) Have a look at my fourth post in this topic.

It doesn't matter wether I use COM_VIRTUEMART_ORDER_STATUS_PENDING or BEARBEITUNG. The result remains the same.

The problems with the translation of the custom fields (cart variant) are similar. It doesn't work on the details page of a product: There you will see e.g. COLOR_GREEN. In the cart and the invoice it is translated correctly: green.

patrik60

I have seen now that the order status has been updated in rev 6282. It works fine now in the confirm email.

It still not works in the order list (user -> edit_orderlist.php and orders -> list.php). The code there is

<?php echo ShopFunctions::getOrderStatusName($row->order_status); ?>

Could it be completed with a JText function?

patrik60

The line must be changed into

<?php echo JText::_(ShopFunctions::getOrderStatusName($row->order_status)); ?>

This way it works also in list.php and edit_orderlist.php

alatak

Hello,

I have fixed it by adding the JText in the getOrderStatusName function. It will be added in the 2.0.8.e release.
[url="//www.alatak.net"]www.alatak.net[/url]
Extensions for VirtueMart: [url=https://alatak.net/en/extensions.html]https://alatak.net/en/extensions.html[/url]