Translations + breadcrumbs

edited May 2022 in Other

1)

I disabled the translation in the theme options and I use loco translate to translate from english to dutch.

But now some translations revert to the previous translation after a few days. It seems to go wrong in the translation of woocommerce plugin. I keep translating this way :(

2)

Breadcrumbs on single product pages show by default HOME. Even though I turned that off in the breadcrumbs settings. It goes well for a while and then home is just there again.


I have the following settings:

Theme: 26.3.2.1

PHP: 8.0.18

PHP memory limit: 2GB

PHP Time Limit: 600

PHP Max Input Vars: 9000

WP: 5.9.3

WooCommerce 6.4.1


Our testsite:

dev.dpcsolutions.nl


Thanks

Comments

  • Sorry, but we did not test this plugin with the theme. Our policy states that we do not support third-party plugins or custom code, so, unfortunately, we cannot help you.

    Also, we cannot recommend any plugins other than the ones we support. You can find the list on this page, in the sidebar:

    [Links visible only for registered users]

    Thanks

  • But the breadcrumbs are part of the theme.

    What is the solution for that problem?

  • Sorry, I did not notice the message about the breadcrumbs. Did you add it when you edited your message?

    Please attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.

    It is always a good idea to also attach a screenshot showing your issue.

    Thanks

  • The breadcrumbs is not a big problem.

    I don't want to use WPML because i only need to translate a few words

    • add to cart
    • on sale

    I tried your .pot and made .po/.mo files nl_NL and placed them in language folder in child theme, but that doesn't work.

  • You can check the following links, and try to change these texts by editing a child theme.

    [Links visible only for registered users]

    [Links visible only for registered users]


    Best regards

  • edited February 2023

    Hello,

    i tried the option by editing the child theme and it works.


    add_filter( 'woocommerce_sale_flash', 'wc_custom_replace_sale_text' );

    function wc_custom_replace_sale_text( $html ) {

    return str_replace( __( 'On Sale!', 'woocommerce' ), __( 'Aanbieding', 'woocommerce' ), $html );

    }


    Thanks

  • This text comes from WooCommerce, and to change them, file modification is required.

    You should contact your web developer. We do not provide help with file customization.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.