Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi there!
    The totals in the invoice come straight from WooCommerce, together with the already translated labels. If you want to change this, you have to update the WooCommerce translations.

    Let me know if you have any other questions!

    Ewout

    Hi,
    here the same problem. I cant find the “subtotal”. In all .PO Files it is translatet allready. And i use WPML and search for subtotal. But there is no string.

    This is after the last update happen, i think.

    Plugin Contributor Ewout

    (@pomegranate)

    Hello CanisMajoris,
    In the (unmodified) Simple template, the string “Subtotal” comes from WooCommerce and cannot be modified with the .po files from this plugin, you need to fix the translations in WooCommerce.

    What’s your language?

    Let me know and I’ll see if I can find the issue!

    Ewout

    Our language is german.

    Plugin Contributor Ewout

    (@pomegranate)

    Are you using the default Simple template?

    Also check whether in the WooCommerce email (the email text), this string is also translated (my guess is that it is not!).

    We use DIVI from Elegantthemes. And this problem is new. After last update i think. Before there was all ok.

    Hi again,

    dont exactly where the email strings are. i checkt all, there is no problem i think…

    Plugin Contributor Ewout

    (@pomegranate)

    I meant the PDF template (Simple in the free version), not the WordPress theme.
    Can you forward a WooCommerce Order email with the pdf attached to [email protected]?

    Again, although the problem may be new, those strings actually do not come from the PDF invoice plugin, so as far as I know this is unrelated. Please not that it might also be related to another plugin (like WooCommerce German Market for example, which has been known to make a lot of modifications to the WooCommerce output). You could test this by temporarily deactivating some suspect plugins and then try again. Also make sure that your WooCommerce translations are fully up to date.

    Thanks!

    Ok, i just send you a email.

    Thank you!

    Plugin Contributor Ewout

    (@pomegranate)

    It turned out that the translation was indeed missing from WooCommerce.
    Check wp-content/languages/plugins/woocommerce-de_DE.po /.mo

    You could also try to see if this has been solved already by going to WooCommerce > System Status > Tools and then do a force translation update (somewhere halfway down the page), although this may also overwrite any changes that you made to the WooCommerce translations.

    Hi Ewout,
    i want to change the phrase “subtotal”, were i can find it?in wich php file? this is because my invoice or receipt oredr must be ever in my italian language.

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Nicola,
    This phrase comes from WooCommerce and should normally already be translated. I’m starting to think there is an issue with the latest release of the WooCommerce translations and they somehow missed this string. You should not change this in the php files but update the language files as indicated above.

    Hope that helps!
    Ewout

    Hi
    in function.php put that code below
    as You see, You can use it for every string on page and email also
    in my case I have changed ‘subtotal’ to ‘Podsuma’ and ‘You are here’ to ‘Jeste? tutaj’
    Regards
    Bartek

    //string translate
    add_filter(‘gettext’, ‘translate_reply’);
    add_filter(‘ngettext’, ‘translate_reply’);
    function translate_reply($translated) {
    $translated = str_ireplace(‘You are here’, ‘Jeste? tutaj’, $translated);
    $translated = str_ireplace(‘subtotal’, ‘Podsuma’, $translated);
    return $translated;
    }

    Plugin Contributor Ewout

    (@pomegranate)

    That’s a neat trick Bartek, thanks for sharing!
    Ewout

    Thread Starter Eclipse16V

    (@eclipse16v)

    @btw_bartektw

    Where can I find the function.php?
    In WP or WooCommerce?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Translating "Subtotal" invoice and delivery’ is closed to new replies.