Support » Plugin: WooCommerce » Untranslated WooCommerce strings in Cart and Checkout pages

  • Resolved lauri143

    (@lauri143)


    Hello!

    I’ve spent days now searching for a future-proof solution for my problem. This means I am not looking for a hard-coded solution for this. It seems that even when we have gone through woocommerce, our website theme and wordpress translation files, I am unable to translate [woocommerce-cart] and [woocommerce-checkout] specific strings like Product, Price, Quantity, Subtotal, Total, Coupon, Coupon code, Apply Coupon, and Update Cart and also strings like Your order, Subtotal, Total, etc.
    We are looking to translate these strings from English to Estonian.

    If anyone has had the same problem and there is an intelligent solution for that, please do share the solution. I am quite devastated and desperate.

    Waiting for your feedback.

    • This topic was modified 9 months, 3 weeks ago by lauri143.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I set my site to “Eesti” and, as you say, the translation missed several words.

    You can wait for the translation file to catch up. That might take a while.

    You can use the Loco Translate plugin. This allows you to start with the existing translation file and expand it to include the missing words. Be sure to save your customised translation file in the custom location so it won’t be overwritten by updates. The Loco Translate help file explains the locations. The drawback of this method is that you will need to maintain the translation file yourself when WooCommerce introduces new strings.

    I suggest the Say What? plugin:
    https://wordpress.org/plugins/say-what/

    Go to Tools > Text changes, and setup changes for each untranslated word.
    Original String: <must be exactly what you get if the site is in US English>
    Domain: woocommerce
    Context:
    (leave blank)
    Replacement string: <your translation>

    Some of the strings contain embedded numbers and these can be tricky. If you can’t get Say What? to work with some of the strings, please come back here.

    Thread Starter lauri143

    (@lauri143)

    Hi!

    First of all, I would like to thank you for guiding us to find Loco Translate. This plugin is really a good asset for translating the website.
    I’ve almost found a solution for all the text strings through Loco Translate for finding out that under a specific theme, there are also translations available for specific woocommerce parts. I’ve managed to translate all, except “No products in the cart”.

    So for all, who are having a hard time translating your website to your preferred language, should go through the theme-specific Woocommerce translations as well.
    I’ve contacted the theme developer to understand whether it’s a bug that “No products in the cart.” is not translated even when I found a matching string.

    After a change, the trick with the “No products in the cart.” message is to add a product to the cart and then delete it. This flushes the mini-cart cache.
    https://wordpress.org/support/topic/change-the-no-products-in-the-cart-message/

    Plugin Support laceyrod a11n

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now for the overall health of the forums. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Untranslated WooCommerce strings in Cart and Checkout pages’ is closed to new replies.