Thread Starter
wrip
(@wrip)
I’ve found a solution for this. It was all part of the language files. I created new language files woocommerce-pdf-invoices-en_US.mo and woocommerce-pdf-invoices-en_US.po through Poedit and placed them inside the lang folder. I could just replace the original text with whatever I wanted in those files.
I have one issue with this. When I update the plugin, these 2 language files are automatically removed. How do I override these language files?
Hello,
Yes, this is the correct way! 🙂
There is a filter to change the path of the language files. Will look it up for you and add an example in the FAQ tab.
Just wanted to know if you get it to work. Please let me know. 🙂
Thread Starter
wrip
(@wrip)
Yes. I simply moved the .mo and .po files to /wp-content/languages/plugins directory. That seems to provide an override.
Great! The files are still there after updating WP?
Would you be so kind to rate the plugin? This would support the future development a lot. Thanks!
Thread Starter
wrip
(@wrip)
Yes the files are still there in /wp-content/languages/plugins after updating the plugin. So that’s working well.
In your comment, you said there is a filter to change the path of the language files. Can you let me know what filter that is?