Support » Plugin: [DEPRECATED] WooCommerce (nl) » Woocommerce nl 2.1.7?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same problem here! “Billing Details” and “I’ve read and accept the terms&conditions” are not translated in Dutch. They are not in the .po file as well.

    Have you any idea when this can be expected?

    Kind regards
    Ger

    https://wordpress.org/plugins/woocommerce-nl/

    There’s a workaround for the translation of billing details. Put this in de functions.php

    add_filter(‘gettext’, ‘translate_text’);
    add_filter(‘ngettext’, ‘translate_text’);
    function translate_text($translated) {
    $translated = str_ireplace(‘Billing Details’, ‘Betalingdetails’, $translated);
    }

    Unfortunately this doesn’t work for the ‘i’ve read and accept…’ text.

    Quick and dirty you can indeed translate or force text replace through the add_filter function.

    Also for the I’ve read and accept’ this is possible.

    Use the following to cover both:

    add_filter('gettext', 'translate_text');
    add_filter('ngettext', 'translate_text');
    function translate_text($translated) {
    $translated = str_ireplace('Billing Details', 'Factuurgegevens', $translated);
    $translated = str_ireplace('I’ve read and accept the ', 'Ik aanvaard de ', $translated);
    $translated = str_ireplace('terms & conditions', 'voorwaarden', $translated);
    return $translated;
    }

    The “&” from “terms & conditions” should be & amp; but editor replaces the code

    Thanks Jaap!

    It workes but …………….

    ‘I’ve read and accept the ‘

    should be

    ‘I’ve read and accept the ‘

    At least in woocommerce 2.1.8

    https://wordpress.org/plugins/woocommerce-nl/

    In previous post:

    The “‘” in “I’ve read and accept the ” should be & rsquo; (without the space in between) but editor changes this

    Ckheers,
    Ger

    Thanks for the replies. I’ve made some typo’s in my code. I managed to translate i’ve read and accept…. I’m happy!

    final code:

    add_filter('gettext', 'translate_text');
    add_filter('ngettext', 'translate_text');
    function translate_text($translated) {
    $translated = str_ireplace('Billing Details', 'Betalingdetails', $translated);
    $translated = str_ireplace('Please use the shipping calculator to see available shipping methods.', 'Gebruik de verzendcalculator om de beschikbare verzendmethoden te zien.', $translated);
    $translated = str_ireplace('I’ve read and accept the', 'Ik ga akkoord met de', $translated);
    $translated = str_ireplace('terms & conditions', 'algemene voorwaarden', $translated);
    return $translated;
    }

    & in code needs to be replaced by & amp ; (without spaces)

    Plugin Author Remco Tolsma

    (@remcotolsma)

    We just updated the plugin for WooCommerce version 2.1.8.

    Sam

    (@rossamreaksa)

    Hack file by wp-content\plugins\woocommerce\templates\checkout\payment.php
    Good Luck

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce nl 2.1.7?’ is closed to new replies.