• FrauK

    (@schreikrampf)


    I’m currently working on my web shop. I’m using the Mystile theme and now want to change the language for the words “Checkout”, “items” or the “Search Products” bar on top of the website.

    I can’t believe that it’s necessary to translate a whole file for this, or anything else I read about it – which was all way to complicated for me to understand or to do. Isn’t there a possibility just to change this three words, somewhere in the code?

    In my wp-config.php it already says: ‘define (‘WPLANG’, ‘de_DE’)’
    You can find my website here: http://zabird.de

    I would love to get your support,
    thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter FrauK

    (@schreikrampf)

    I now managed at least to change it for 1/4 seconds, haha. 😀

    I changed the words “item” and “items” in the theme-woocommerce.php and if you switch now from page to page, you can see the new word “Produkt” pop out for less than a second. -.-

    “/ <?php
    echo $woocommerce->cart->get_cart_total();
    echo ‘<span class=”contents”>’ . sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->get_cart_contents_count(), ‘woothemes’), $woocommerce->cart->get_cart_contents_count()) . ‘</span>’;
    ?>
    </span>

    <?php “/

    Anybody an idea where I find the code that overrides my new words?

    Thread Starter FrauK

    (@schreikrampf)

    …Log-In, Log-Out an this code in addition…

    “/function wpa_change_my_basket_text( $translated_text, $text, $domain ){
    if( $domain == ‘woothemes’ && $translated_text == ‘items:’ )
    $translated_text = ‘Produkte:’;

    return $translated_text;
    }
    add_filter( ‘gettext’, ‘wpa_change_my_basket_text’, 10, 3 );”/

    …solved this kind of problem. But I don’t have any idea where I can find the “Checkout”. Oh my. -.-

    [ No bumping please. ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[woocommerce] Change Words’ is closed to new replies.