• Resolved Tomasz

    (@olibumboli)


    Hi First of all your plugin rocks! many thx for all the good work.

    I seem to have only one issue, I set the language of wordpress to Dutch, and most of the English is transleted correclty, only some of the fields in the invoice pdf:

    Invoice Number:

    Invoice Date: oktober 25, 2016
    Order Number: 179
    Order Date: oktober 25, 2016
    Payment
    Method: Directe bankoverschrijving
    Product
    Quantity
    Price

    I Used the POEDIT to check those fields, they appeared empty so I filled them like the FAQ suggest and save the filed uploaded it to my site with ftp.

    Unfortunately the changes don’t work.

    Any advise?

    thx in advance Tomasz

Viewing 6 replies - 16 through 21 (of 21 total)
  • Copied and changed strings affected to nl-NL formal. Which is at 100% too.

    Have a nice day! ??

    Thread Starter Tomasz

    (@olibumboli)

    you too! ??

    Plugin Contributor Ewout

    (@pomegranate)

    If you use the text-domain used by .org, all languages pack will be downloaded using WordPress updates. So it would not break anything I guess.

    What would break is the strings in custom templates that still refer to the old text domain. That’s pretty big! Basically I cannot just rename the text domain, I will need to put in backwards compatibility too.

    @olibumboli: just to make sure the next plugin update doesn’t overwrite your formal translations: make sure to put the custom translations in /public_html/wp-content/languages/plugins. This is safe from automatic updates.

    Ewout

    Thread Starter Tomasz

    (@olibumboli)

    Thx for the TIP!

    I’m wondering why you made this

    $wpo_wcpdf->get_woocommerce_totals()

    in the invoice template dependent on the wc textdomain.

    The problem is that this part of the invoice is translated to the
    admin user language.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Actually, this could be any text domain – plugins are free to add their own data to the woocommerce output (which this is – it’s the same that is displayed in the WooCommerce emails).
    Subsequently, it’s impossible for me to force this to any other text domain.

    If you’re using WPML or Polylang though, the Professional extension will make sure that the correct language is always set to the order language (unrelated to a specific text domain).

    Hope that helps!
    Ewout

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Languange issue on pdf invoice’ is closed to new replies.