Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1374630

    Sandie
    Participant

    Hi,

    My URL: https://youpheal.com

    I am using WooCommerce and I want all the text strings that my customers to see to be in Swedish.

    Most of them are translated from english to swedish, so that is great. But there are around 10 text strings that are still in english, which makes the webshop look unproffesional as I sell to just swedish customers.

    Among the untranslated text strings:
    Related Products
    Reviews

    I have after talking to WooCommerce support installed the plugin “Loco Translate”, and I have changed the text strings in the language file for the plugin WooCommerce. That helped a few more text strings to be translated. But some of them are still in English even though I translated them in that file.

    I read on another forum that it could be worth checking the language file in Loco Translate for both the plugin and the theme. So I have done that as well, both for parent theme X and child theme X. But without any luck.

    WooCommerce says I need to contact the Loco Translate support, as they think its their issue. I contacte the support for the plugin Loco Translate, and they gave me this answer:

    It’s possible that your theme is overriding the woocommerce translations. See similar question from last week: https://wordpress.org/support/topic/woocommerce-issues-with-checkout-page/

    You don’t seem to be running the latest version of woocommerce. Perhaps your theme is expecting a different version to what you have installed, and so expecting different strings? (guessing). Note that the current version of woocommerce does not contain the string “Apply coupon”, but it does contain “Apply Coupon” (with capital “C”).

    Whatever the cause of your problem, it’s unlikely to be related to my plugin. Either your site’s translations are being loaded from some other file, or there is a fault in the code that displays the missing strings. Loco Translate is looking at the woocommerce.pot file for available strings and saving what you enter. It can’t control how these files are use by your website.

    But I am still stuck here now with text strings that are still in english, so I need help what to do to sort this out. So I ask if you could help me or if you know who I should contact? And please don’t say the support for WooCommerce or the plugin Loco Translate as they say they can’t help me out any more.

    Thanks!

    Best Regards
    /Sandra

    #1374807

    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Each string belongs to their own textdomain, and theme and plugins could have their own textdomain. Maybe what you’re translating only belongs to specific textdomain.

    Would you mind providing your Admin and FTP login credentials? And the URL where the strings are.

    Thanks!

    #1376020

    Sandie
    Participant
    This reply has been marked as private.
    #1376500

    Rad
    Moderator

    Hi there,

    Ah, you translated it along with Woocommerce textdomain, in that case, let’s change X template’s textdomain to woocommerce. Please copy the folder /x/woocommerce/ to your child theme (eg. /x-child/woocommerce/). Edit all your child theme’s woocommerce templates (all files under /x-child/woocommerce/) and find all instances of __x__ and replace them with woocommerce. Then try it translating them again.

    Thanks!

    #1376770

    Sandie
    Participant

    Hi,

    I have copied the folder /x/woocommerce/ to my child theme (/x-child/woocommerce).

    But I don’t understand the next step, to edit all my child theme’s woocommerce templates (under /x-child/woocommerce/) and find all instances of __x__ and replace them with woocommerce.

    These are all folders under WooCommerce in my Child theme right now: http://prntscr.com/eal9ms

    How do I go about to edit them? Do I do that in the FTP client?

    Thanks!

    Best Regards
    /Sandra

    #1376954

    Rad
    Moderator

    Hi there,

    You have to edit all PHP files and find __x__ and replace it with woocommerce. All those folders contain all the PHP files, you need to edit them one at a time. You can use any code editing software, or notepad, or if you have the hosting’s File Manager that has code editing capability then that’s okay too.

    Thanks!