• Resolved ryancole

    (@ryancole)


    Currently Statuses are not translated, can’t be found in plugin strings. Also need to translate custom added statuses!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi Ryan,

    You create and name the statuses yourself, so there could be no existing translations, as there would be no way to know what you would call your statuses. And, when you create a status, it’s stored in your WordPress database, not the plugin files, so, naturally, it would not be found in the plugin strings.

    That being said, you would have two options to accomplish this:

    1) You could create a separate set of statuses for each translation. For example: translate “pending payment, processing, on-hole, complete, etc.” in Language A, and “pending payment, processing, on-hole, complete, etc.” in Language B. That way, for orders that are in one language, you can use the statuses that you’ve created for that language, and then use the separate set for the other language.

    2) Translation plugins like WPML often have a feature to translate database entries. For example, WPML’s String Translation add-on lets you translate entries from the wp_options table, etc. Since our statuses are stored in the database, if you have a translation plugin that allows you to translate database entries, you should be able to find and translate them there.

    Thread Starter ryancole

    (@ryancole)

    Neither ways are working, because in multilingual websites, same exact statuses should be auto translated for each language, can’t be different. WPML translates strings, but it won’t reflect on front end for proper order tracking.

    The only solution I figured is to edit 4 template files below to replace all key variables with string translation function __():

    DisplayGraph.php
    EWD_OTP_Return_Results.php
    EWD_OTP_Woo_Commerce_Integration.php
    InsertTrackingForm.php

    Note: DisplayGraph has inline styles that should be fixed for rtl layouts

    I hope you include those fixes in future updates. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Status Translation Polylang’ is closed to new replies.