• Resolved nexau

    (@nexau)


    In the file “class-wwp-wholesale-prices.php” replace line 669.

    <span class="wholesale_price_title">' . $wholesale_price_title_text . '</span>

    Replace with this:

    <span class="wholesale_price_title">' . __('Wholesale Price:', 'woocommerce-wholesale-prices') . '</span>

    After that the line translation will start to work properly.
    P.S. I haven’t looked elsewhere, but I think there will be the same problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi @nexau thanks for the message!

    This text is actually changeable in the backend settings which is why it’s a variable.

    If you’re using a system like WPML you can translate that setting as well.

    Hope this helps!

    Thread Starter nexau

    (@nexau)

    Yeah, I see. I understood why it works through a variable. And no I do not use WPML for translations, I like the implementation on multisites. And I’ve also done translations for some languages locally using Gettext. That’s why this problem arose…

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    @nexau if it helps, there’s also a filter available on that variable when it’s declared higher up in that function (and it’s also using gettext function), line 511 in the same file:

    $wholesale_price_title_text = trim(apply_filters(‘wwp_filter_wholesale_price_title_text’, __(‘Wholesale Price:’, ‘woocommerce-wholesale-prices’)));

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug fix’ is closed to new replies.