WordPress.org

Support

Support » Plugins and Hacks » [Resolved] I would like to help getting the plugin translatable

[Resolved] I would like to help getting the plugin translatable

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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/
    Plugin Author Bas Elbers
    Participant

    @baaaaas

    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? 🙂

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

    JustArnold
    Member

    @justarnold

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

    Plugin Author Bas Elbers
    Participant

    @baaaaas

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] I would like to help getting the plugin translatable’ is closed to new replies.