• Resolved euroexportvirtue

    (@euroexportvirtue)


    Hello,

    I have some problems. Some strings from the Woocommerce widget (on the pages: https://im-ua.com/cart/ and https://im-ua.com/chrckout/) are not translating correctly.

    I know some users have the same problem (Woocommerce strings not translating correctly | www.remarpro.com).

    I read your article (Translating WooCommerce – WooCommerce) very carefully and did all 4 options you suggested (Downloading translations from translate.www.remarpro.com manually; Creating custom translations with Loco Translate; Creating custom translations with PoEdit’ Translate or replace default text).
    Without effect.

    I opened the .po file and checked for all those words that were not translated. The result – all words with a translation into Ukrainian are in the .po file.

    I would see if the information provided by the .po file is correct. Everything looks correct, for example:
    #: includes/wc-cart-functions.php:124
    msgid “Continue Shopping”
    msgstr “Продовжити покупки”

    A screenshot of the file where the esc_html__ function is written and screenshots from the site pages where 8 terms need to be changed are shown on the page.

    I have one question – can such a powerful team like WooCommerce create a product with a relevant translation?

    Ok, if it can’t, maybe some relevant instruction will be provided that will allow you to do the translation? All of your tips that you refer to in your article do not work.

    Yes, I forgot, I first downloaded the WordPress theme in Ukrainian and then downloaded WooCommerce also in Ukrainian. Therefore, this disclaimer from WooCommerce does not work either.

    And the last. Can I edit the function esc_html__ and where to find it?

    If so, what algorithm should I use to be able to fix this feature again when WooCommerce automatically updates?

    Thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The pages that you mention are using templates from your theme, sinatra, not from woocommerce. You can see the templates which are used by sinatra at:
    themes/sinatra/woocommerce/….

    So this is a sinatra problem, not a WooCommerce one.

    I downloaded sinatra and it doesn’t come with a Ukrainian translation.

    It does come with a .pot file. Broadly, you need to start with that, make a .po file and then compile it to a .mo file. You can use PoEdit to do that. There are a lot of translations to work through.

    WooCommerce updates shouldn’t be a problem. They won’t affect your sinatra translations.

    If sinatra releases an update, you may need to use PoEdit to update any new translations in the sinatra .pot file.

    sinatra was last updated on 1 April 2021. That’s a long time ago for a theme. The WordPress download page warns us that “It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.” If the sinatra code eventually doesn’t work properly, translations could become the least of your problems. So before investing more time in sinatra, you may want to consider adopting another theme which is being maintained.

    Thread Starter euroexportvirtue

    (@euroexportvirtue)

    Thank you so much for your reply!

    I’m not an advanced user, so it’s hard for me to determine what the problem might be.

    For some reason, Sinatra automatically appeared when the site was first configured as one of the recommended themes along with WordPress themes.

    I will definitely change the theme.

    I am grateful for your advice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some strings from the Woocommerce widget are not translating correctly’ is closed to new replies.