Support » Plugin: WooCommerce PDF Invoices & Packing Slips » PDF is not fully translated

  • Hello,
    I noticed that Order Totals area that are automatically generated are not translated.

    I can see that in the default template, <?php echo $total[‘label’]; ?> generates shipping cost and subtotal, and grand total label.
    but only these areas are not translated by wpml.

    even if I removed $label =…. in PHP, it still shows labels in English, I assume that labels are taken from woocommerce directly.
    maybe since the last update of woocommerce?

    otherwise, all of the parts are correctly recognized and translated such as Product, price, quantity, blah blah blah.

    But only the labels in the table_total such as Subtotal, total still remain in English. that is so odd.
    this will be fixed?

    My environments are like this below.

    WordPress (ver 4.8.1)
    Woocommerce (ver 3.1.2)
    WPML (ver 3.7.1)
    WooCommerce Multilingual (ver
    WooCommerce PDF Invoices & Packing Slips (ver 2.0.9)

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having the same issue, only I am using Loco Translate.
    Before the update my PDF is fully translated (NO), afterwards it is back to English. All of the translations are still set in Loco Translate correctly, so I’m not sure why it’s not picking them up.

    My translate is a little worse than the one mentioned above as ALL of the text has been reverted back to English, including Product, price, quantity, etc.

    Plugin Author Ewout


    These are two separate issues I think.

    The first thing to check is that in the 2.0 version, the textdomain has changed: in older versions this was wpo_wcpdf, since 2.0 this is woocommerce-pdf-invoices-packing-slips.

    @georgeharrisun: I believe your issue may be caused by WPML.
    The totals in the PDF invoice (from the free Simple template) come directly from WooCommerce, and are thus also translated by the WooCommerce textdomain.

    @b-summers: are you perhaps still using the old textdomain? wpo_wcpdf?
    That said, Loco Translate is certainly supported in the free version. I just did a quick test and it worked:
    Loco Translate:


    Settings (Loco Translate > Plugins > WooCommerce PDF Invoices & Packing Slips > Advanced):

    If you want, you can contribute translations here too:
    When the translations are 95% completed, wordpress will automatically release them with the plugin.


    • This reply was modified 3 years, 6 months ago by Ewout. Reason: added Loco Translate screenshots
    Thread Starter georgeharrisun


    Dear Ewout

    Thank you for your reply.
    I do think so. New version of WPML has been released around 2 days ago.
    But I am still observing the reports and waiting for the latest version to be more stable, since I’ve seen that there are many changes in that version. I am scared of any contingency bugs 🙂

    I Hope all will be okay for the another person who had the similar issue.

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PDF is not fully translated’ is closed to new replies.