WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce PDF Invoices
[resolved] I would like to help getting the plugin translatable (6 posts)

  1. frekel
    Member
    Posted 1 year ago #

  2. frekel
    Member
    Posted 1 year ago #

    If so, here it is:

    Note to others: This is a quickfix until developer adds this to the plugin himself:

    1. Add the following to index.php:
      function load_textdomain_for_woocommerce_pdf_invoices() {
      	load_plugin_textdomain( 'woocommerce-pdf-invoices', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
      }
      add_action('init', 'load_textdomain_for_woocommerce_pdf_invoices');
    2. and download the po file from: http://www.bonusboek.nl/woocommerce-pdf-invoices.po
    3. Create /wp-content/plugins/woocommerce-pdf-invoices/lang/
    4. upload your translation to woocommerce-pdf-invoices-[LANGCODE].mo into /wp-content/plugins/woocommerce-pdf-invoices/lang/
  3. baaaaas
    Member
    Plugin Author

    Posted 1 year ago #

    Please try my new version 1.0.2. It is translation ready.
    Thank you for your advice!
    Would be so kind to rate my plugin with 5 stars? :)

  4. flapane
    Member
    Posted 1 year ago #

    woocommerce-pdf-invoices-it_IT mo and po uploaded in lang folder.
    However, the PDF is still in english.
    Regards

  5. JustArnold
    Member
    Posted 1 year ago #

    Noticed this too. When adding code from frekel in index.php it works.

  6. baaaaas
    Member
    Plugin Author

    Posted 1 year ago #

    In the next update (coming soon) all fixed it. :)
    Almost ready.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic