Title: Translation issues
Last modified: August 22, 2016

---

# Translation issues

 *  Resolved [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/)
 * Hi there NICE plugin 🙂
 * I have some issues with locale settings i can’t get it to work 🙁
 * I’ve translated:
    woocommerce-pdf-invoices.po to woocommerce-pdf-invoices-sl-
   SI.po (Slovenian) +.mo file i’ve added both files to /lang/ dir aside to original
   two (.mo .po) files (as i am used to with every other plugin – same procedure)
 * but pdf is still in english…
 * i’ve also tried to rewrite original (.mo . po) files with translated files, but
   still no luck… it seems like plugin isn’t loading (.PO .MO) at all?
 * someone has any similar troubles or solution?
 * warm regards,
    Jan
 * [https://wordpress.org/plugins/woocommerce-pdf-invoices/](https://wordpress.org/plugins/woocommerce-pdf-invoices/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/translation-issues-6/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/translation-issues-6/page/2/?output_format=md)

 *  Thread Starter [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934581)
 * Hm, i’ve tried to update from 1.1.2 to 2.0 but i get:
 * Parse error: syntax error, unexpected ‘[‘ in /home/mestonorci/domains/mestonorcij.
   si/public_html/wp-content/plugins/woocommerce-pdf-invoices/admin/classes/woocommerce-
   pdf-invoices.php on line 276
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934584)
 * Hello jny007,
    Please look at this thread. Your problem is solved. [https://wordpress.org/support/topic/parse-error-after-update-200?replies=6](https://wordpress.org/support/topic/parse-error-after-update-200?replies=6)
 *  Thread Starter [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934586)
 * I’ve posted new thread in [resolved] topic as i cannot see any solution there–
   only one guy who figured out that he was updat-ing wrong plugin…?
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934602)
 * For parse error try 2.0.1
    [https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/](https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/)
 *  Thread Starter [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934617)
 * Hi 🙂
 * ok now everithing works fine except of translation of PDF …
 * i’ve translated be-woocommerce-pdf-invoices-sl_SI.PO and . MO
 * Translation works in Admin – but PDF invoice is still in english?
 * any ideas?
 * now i go and give you 5* 🙂
 * Warm regards,
    Jan
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934618)
 * Did you Cancelled and Recreated the invoice? If the invoice is generated before
   you added the language file, it will still be in English. You should regenerate.
   Thanks for your review! :D:D
 *  Thread Starter [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934621)
 * Sure i’ve created new order 🙂
 * You have mail 🙂
 *  [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * (@pskli)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934635)
 * Hi,
 * Is this bug fixed ?
    I did create a new French translation (be-woocommerce-pdf-
   invoices-fr_FR.mo / .po) but the generated PDF is still in English, even if the
   strings are correctly translated in POEdit and uploaded to FTP.
 * I did regenerate the PDF too.
 * Any idea ?!
 * Thanks
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934637)
 * Please send me your files and I will test it.
 *  [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * (@pskli)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934638)
 * Here are the files : [http://img.saika.li/aS5k](http://img.saika.li/aS5k)
 * As you can see, the only string from the settings that I translated is correctly
   displayed in French in the admin.
    But all the other strings that I translated(
   the one in the invoice template) are not used when the invoice is generated.
 * Thanks for your help !
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934639)
 * I’ve made a little mistake. Your files are fine.
 * Open admin/classes/woocommerce-pdf-invoices.php
 * On line 71 you see
    `add_action( 'init', array( &$this, 'init_load_textdomain'));`
 * This should be placed before the
    `add_action( 'init', array( &$this, 'init_plugin_actions'));`
   on line 61.
 * I will add this fix to the next update. Thank you very much!
 *  [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * (@pskli)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934640)
 * Thanks for your help !
 * Looking forward seeing the new version then 🙂
 * Cheers
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/#post-5934641)
 * Launched 2.0.4.
    [https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/](https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/)
   Please let me know if it’s all ok.
 *  [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * (@pskli)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/page/2/#post-5934642)
 * Thanks Bas, that’s awesome !!!
 * I updated the French language, everything is translated now. French users will
   be happy.
    It’s downloadable here : [http://img.saika.li/aR5Y](http://img.saika.li/aR5Y)
 * The only missing un-translatable strings remaining are the ones in the metabox:
   [http://img.saika.li/aS0J](http://img.saika.li/aS0J)
 * Thanks !
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/page/2/#post-5934643)
 * Great pskli, thanks for your files!! 😀
    I will make the missing strings translatable
   in the next update. Hope you like my plugin. Please let me know if you have some
   feature requests. 🙂 Could you be so kind to rate my plugin [here](https://wordpress.org/support/view/plugin-reviews/woocommerce-pdf-invoices?rate=5#postform)?
   That would be awesome!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/translation-issues-6/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/translation-issues-6/page/2/?output_format=md)

The topic ‘Translation issues’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 18 replies
 * 3 participants
 * Last reply from: [Pierre Saïkali](https://wordpress.org/support/users/pskli/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/translation-issues-6/page/2/#post-5934644)
 * Status: resolved