Viewing 5 replies - 1 through 5 (of 5 total)
  • Use Loco Translate plugin. Find the word in the Woocommerce’s translation for your language and change it.

    Thread Starter janbrokes

    (@janbrokes)

    thanks, i hope i find language files

    Loco Translate is great but sometimes I feel its a bit heavy for changing just the odd string. You could either do the change every time the supplied translation file is updated, or you could maintain your own custom translation file. So not ideal.

    Instead, you could try this code:

    <?php
    add_filter( 'gettext', 'translate_text' );
    add_filter( 'ngettext', 'translate_text' );
    function translate_text( $translated ) {
      $translated = str_ireplace( 'skladem', 'mist', $translated );
      return $translated;
    }

    It can go in functions.php for your child theme or you can use the “My Custom Functions” plugin.

    Thread Starter janbrokes

    (@janbrokes)

    perfect thank you very much

    Hello,

    use a simple plugin called “Say What“. It’s recommended by WooCoommerce support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“In stock” text rewrite’ is closed to new replies.