Jump to content

Localize orders statuses?


icreator

Recommended Posts

Orders Statuses not localized:

 

I install PS16 by default localization

then I load DE, US etc languages

but all order statuses made only in one default language

 

and I do manual translate in

index.php?controller=AdminStatuses&id_order_state=12

Link to comment
Share on other sites

I just tried this:

Go to BO > Orders > Statuses, edit a status.

Translate the status name using the language selector on the right of the field and save.

 

Then, the order status is correctly translated in both BO (orders page) and FO (my orders) according to the active language (I didn't check emails to customers...)

Isn't it the same for you? Which version do you use?

Regards

Link to comment
Share on other sites

When you create a language and set the ISO code, you should be proposed to download the related language pack if available. I never tried that, but I assume it get only "static" translations (i.e. within PHP). Order statuses are kind of "dynamic" data as you can edit them from the BO, and related translations are stored into the database (ps_order_state_lang) and then not covered by the language pack. This is to be checked...

 

From a technical point of view, it would be possible to automatically translate standard/default data when installing a language pack. You can still propose such an improvment on http://forge.prestashop.com/secure/Dashboard.jspa

 

Anyway, is your issue solved now?

Regards

Link to comment
Share on other sites

Yes, not so difficult, but...

1/ Previously defined order states shall remain when adding a language, otherwise previous orders will become invalid.

2/ At the moment, order states translations are part of installation package (cf. install/langs/en/data/order_state.xml), and install/ is required to be deleted after installation (at least renamed). So, some "core" elements would have to change. Unless you redundantly provide those translations another way, at the risk of inconsistency.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...