• 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 15 replies - 1 through 15 (of 21 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Tomasz,
    Is this on a site with WPML or Polylang? If so: these are only supported via the Professional extension.
    Otherwise, the Dutch translations are pretty much complete (apart from some backend strings recently added), so I’m not sure why the fields were blank.

    Thread Starter Tomasz

    (@olibumboli)

    Thanks for the fast reply! didn’t expect it to bee so soon ??

    The theme is translation ready like your plugin, but i didn’t installed any of these translation plugins. So no polylang or WPML.

    see the screenshot:
    Screenshot of the invoice

    Plugin Contributor Ewout

    (@pomegranate)

    The ‘Subtotaal’ and ‘Verzending’ translations come from WooCommerce (the woocommerce text domain), all other translations are normally included in the plugin. Not sure why it’s not working for you… Translations of the last version (included with the plugin) are here: https://plugins.svn.www.ads-software.com/woocommerce-pdf-invoices-packing-slips/tags/1.5.37/languages/

    As you can see in the dutch PO file, all these strings that are english in your screenshot are actually translated. Is your admin language different from the frontend language?

    Ewout

    Thread Starter Tomasz

    (@olibumboli)

    I downloaded the files from your link, uploaded them to the content/pdf invoice language folder but the result remains the same. odd.

    Btw i did empty my cache.

    any idea how to target the issue to find a clue?

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Tomasz,
    I’m flat out of ideas here. The translations you downlaoded are already bundled with the plugin, so this should work out of the box. Do make sure there are no translations in the wp-content/languages/plugins/ folder, as this would override the ones in the plugin directory.

    If that doesn’t work, I really don’t know. I would suspect a plugin that overrides translations but that’s not the case if I understand correctly. Again, assuming that both frontend and backend are in Dutch and you’re not using a multilingual plugin, this should normally pickup the Dutch translations automatically.

    Hope that helps though!
    Ewout

    • This reply was modified 8 years, 1 month ago by Ewout.
    Thread Starter Tomasz

    (@olibumboli)

    So to just round it up,here is a quick overview of the files that are installed, there was one extra but i deleted it since it might be the one who overrides like you mentioned: (have downloaded a backup just in case):

    Just hope this gives you an AHA…

    Deleted file

    Bestandspad:
    /public_html/wp-content/languages/plugins/wpo_wcpdf.pot

    Remaining Existing files
    In FOLDER:

    /public_html/wp-content/languages/plugins
    /public_html/wp-content/languages/admin-network-nl_NL_formal.mo
    /public_html/wp-content/languages/admin-network-nl_NL_formal.po
    /public_html/wp-content/languages/admin-nl_NL_formal.mo
    /public_html/wp-content/languages/admin-nl_NL_formal.po
    /public_html/wp-content/languages/continents-cities-nl_NL_formal.mo
    /public_html/wp-content/languages/continents-cities-nl_NL_formal.po
    /public_html/wp-content/languages/nl_NL_formal.mo
    /public_html/wp-content/languages/nl_NL_formal.po

    Bestandspad:
    /public_html/wp-content/languages/plugins/woocommerce-nl_NL_formal.mo
    /public_html/wp-content/languages/plugins/woocommerce-nl_NL_formal.po

    Bestandspad:
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-cs_CZ.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-cs_CZ.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-da_DK.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-da_DK.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-de_DE.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-de_DE.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-de_DE_formal.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-de_DE_formal.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-en_AU.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-en_AU.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-es_ES.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-es_ES.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-et.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-et.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-fi.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-fi.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-fr_FR.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-fr_FR.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-hr.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-hr.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-hu_HU.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-hu_HU.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-it_IT.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-it_IT.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ja.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ja.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nb_NO.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nb_NO.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pl_PL.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pl_PL.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pt_BR.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pt_BR.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pt_PT.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-pt_PT.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ro_RO.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ro_RO.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ru_RU.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-ru_RU.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sk_SK.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sk_SK.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sl_SI.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sl_SI.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sv_SE.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-sv_SE.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-uk.mo
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-uk.po
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf.pot

    You are using Dutch formal? Is that correct? AFAIK WooCommerce is not translated yet in nl-NL formal:

    https://translate.www.ads-software.com/locale/nl/formal/wp-plugins/yith-essential-kit-for-woocommerce-1

    Fallback language is English for now.

    Plugin Contributor Ewout

    (@pomegranate)

    Thank you Chantal, that would explain. I didn’t even know there was a Dutch formal locale! (only knew this from de_DE_formal.

    So if that’s indeed the case, wpo_wcpdf_nl_NL_formal.po|mo should be your filename.

    Ewout

    Thread Starter Tomasz

    (@olibumboli)

    WOW thank you! It makes sense now.

    Woocommerce is transleted and ready for dutch formal, but the pdf invoices plugin not yet.

    Would it be ok then to duplicate and rename the files?

    FROM
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL.mo

    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL.po

    TO
    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL_formal.mo

    /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/languages/wpo_wcpdf-nl_NL_formal.po

    Or is it not that simple?

    Plugin Contributor Ewout

    (@pomegranate)

    No that would work perfectly (apart from the fact that you may need to change some of the translations to formal, not sure if there are any informal strings in the plugin).

    No, WooCommerce is not yet available as formal translation. What happens is that it falls back to English.

    Only solutions at this moment, is to use the Language Fallback plugin (which isn’t tested with latest WordPress version) https://www.ads-software.com/plugins/language-fallback/

    You can set Dutch nl-NL as fallback language, so everything will be Dutch.

    Currently a team is starting a feature project to get fallback languages in core in the future.

    Thread Starter Tomasz

    (@olibumboli)

    EXCELLLENT!

    Everything works perfect now! Very happy with the excellent service!

    thank you!

    @pomegranate, we could import the nl-NL strings into the nl-NL formal strings: https://translate.www.ads-software.com/locale/nl/formal/wp-plugins/woocommerce-pdf-invoices-packing-slips

    We only need to change the strings with informal use.

    Plugin Contributor Ewout

    (@pomegranate)

    Definitely! I’m not using the wordpress language packs yet – the problem with this is that I’ve been using a different text domain from the beginning (when this function of www.ads-software.com didn’t exist yet), and people with custom templates (=old text domain) would then suddenly be without translations. Not something that can’t be fixed, but I haven’t taken the time to implement this yet.

    Ewout

    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.

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