Thread Starter
jny007
(@jny007)
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
Thread Starter
jny007
(@jny007)
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…?
Thread Starter
jny007
(@jny007)
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
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
(@jny007)
Sure i’ve created new order 🙂
You have mail 🙂
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
Please send me your files and I will test it.
Here are the files : 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 !
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!
Thanks for your help !
Looking forward seeing the new version then 🙂
Cheers
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
The only missing un-translatable strings remaining are the ones in the metabox : http://img.saika.li/aS0J
Thanks !
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? That would be awesome!