• Hi!

    I want to translate my onlineshop, but I don’t know how to find the strings. For example, I’m looking for the string “CART UPDATED” or all strings of the green messages. Or the string “SHIPPING AND HANDLING”.

    <wpml-config>
    <admin-texts>
    <key name=”?”></key>
    </admin-texts>
    </wpml-config>

    I found and translated a few strings and it worked great. But it was really easy because it looked like this: <key name=”woocommerce_gzd_display_checkout_table_color”></key>
    But in WooCommerce or other plugins I’m not able to find key names.

    I hope you understand what I mean ?? Any suggestions are very appreciated!

    Thanks
    Daniel

    https://www.ads-software.com/plugins/polylang/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @Danile_BLN , Polylang And Woocommerce do not play well together right
    now, I have been developing a plugin for month now and it called “woo-poly-integration” the plugin will make using Woocommerce and polylang together possible , you can take look at the features list

    Here is the link : https://github.com/hyyan/woo-poly-integration

    Tell me if that helped you please

    Thread Starter Daniel_BLN

    (@daniel_bln)

    Hi!

    Thank you for your help! I installed your plugin and it is great.

    But I still have the following problems, if Polylang is activated:

    1. On the main page (german site) the green messages are in english.
    2. On the english checkout page the description of the payment methods are in german and the description of SHIPPING AND HANDLING is in german, too.

    And that’s why I ‘m looking for the right wpml-config.xml to translate the strings.

    Thanks in advance!

    Daniel

    I think you are having cache problem here , I would recommend to flush your browser cache first or you can use another browser , if that didn’t work make sure that all translations files are already in woocommerce folder.

    The only think I can think of for now .

    Thread Starter Daniel_BLN

    (@daniel_bln)

    Hi!

    Thanks for your help!

    I have tested the cache but there is no problem. If Polylang is activated, the green messages are in english. And if Polylang is not activated, the german version works perfectly.

    Here are the not translated describtion fields:

    id=”woocommerce_bacs_title”
    id=”woocommerce_bacs_description”
    id=”woocommerce_paypal_description”
    id=”woocommerce_free_shipping_title”
    id=”woocommerce_international_delivery_title”

    Can you tell me how to translate these strings? Is it possible to create a wpml-config.xml file to translate the strings in Polylang? I tried it but unfortunately it didn’t work.

    Thanks for your help!

    Daniel

    I am not aware of these strings , but if they strings which are used in your own templates then you can register them from your functions.php file with polylang like this :

    pll_register_string('woocommerce_bacs_title', 'woocommerce_bacs_title');

    and so on , then the strings will appear in polylang string translation tab
    so you translate them by your own to all register languages

    and whenever you want to use them do the following :

    pll__('woocommerce_bacs_title')

    Hope that helps

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘string translation’ is closed to new replies.