Home Forums Technical Support Change Default Woocommerce Language

Topic Resolution: Resolved

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Nitro Support 1 day, 17 hours ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22107

    I would like to change the language files. I have edited the .pot files in my child theme to do this and the changes to not show on the front end of the site. I also tried using Poedit and that created .po and .mo files and placeing them in a language folder in the child theme. I have even tried to change the main language file in Woocommerce and the changes did not show. I am not sure what else to do this should be a simple modification.

    Any help or direction you can provide would be great.

    Patrick

    Attachments:
    You must be logged in to view attached files.
    #22109

    Hello,

    Could you please provide your problem page url to help check?

    Thank you

    #22119

    The screenshot was from the Checkout page. The other places I want to change language are on the Recommended products section of each product.

    With this Product:

    https://www.novadisplaysystems.com/store/acrylic-products/accessories-for-cable-rod-rail/acrylic-poster-frames/1-4-clear-acrylic-panel-with-6-holes-for-m8-studs/

    The language on the “RECENT VIEWED PRODUCTS” near the bottom should be changed.

    Now add the above item to the cart, the wording below the cart item “You may be interested in…” we want to change this too.

    Like I said I have added new language files to the child theme. That did not work so then I tried to do it through the main theme and that did not work.

    Any thoughts on how to accomplish this woudl be great. I have researched this and followed a couple how-tos and they did not work either.

    Patrick

    #22120

    Dear Patrick,

    You can try the JS below to change it (add to Customize > System > Custom JS at the first line):

    jQuery(".p-related h3.wc-heading").text(function () {
        return jQuery(this).text().replace("Related Products", "Text");
    });
    
    jQuery(".cross-sells h4").text(function () {
        return jQuery(this).text().replace("You may be interested in…", "Text");
    });

    Thank you

    #22124

    Thank you that worked. I was able to add this JS to other changes I needed. Thank you so much.

    Patrick

    #22125

    Dear Patrick,

    We are happy to see that problem solved 🙂

    Also if you have some spare time and if you are satisfied with our support, we would really appreciate it if you would be willing to rate us with 5 stars on this link – http://themeforest.net/downloads

    By doing this you will be helping us build even better themes and provide better support.

    Thank you in advance.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Change Default Woocommerce Language’ is closed to new replies.