In this article, we will see how the WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Label plugin can be translated into your desired language using WPML.
Once the WPML plugin is installed and activated, you need to first configure it for the required languages. Once the languages have been set up, navigate to WPML > String Translations as shown below for customizations w.r.t the plugin:
The String Translation page opens up. From the Select strings with domain drop down choose wf-woocommerce-packing-list which is the domain pertaining to the WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Label Plugin.
On selecting wf-woocommerce-packing-list from the Select strings within domain drop-down, all the strings pertaining to the plugin will be loaded on the screen. Conversely, an individual string can be searched from the search box for translating it separately. For instance, let us go through the steps involved in translating the string ‘Shipping Address:’.
Click on the translations link, enter the translation text in respective languages as shown below:
Note: Here, the translations can be given for three languages; Danish (da), French (fr), and German (de) since these are the only languages configured in WPML. All the languages configured in WPML will be listed here for the translation.
Enter the translated text in the field provided. For example, Afsendelsesadresse: is entered for danish translation. Adresse de livraison: is entered for french translation and Lieferanschrift: is entered for german translation. This means that instead of Shipping Address: text, the concerned translated text will be displayed in thePDF Invoices, Packing Slips, Delivery Notes & Shipping Label plugin when switched to respective languages.
Once done, tick the Translation is complete check box.
Click on Save button.
Now switch the language option in your website to see the changes. Switch the language to Danish and print the invoice, you can see that the Shipping Address on the invoice will be as shown below:
Note:
- Please ensure that the profile language is switched to the desired language for accurate translation.
- If the strings that you wish to be translated are not listed in the selected domain, just go to WPML > Themes and plugin localization. From the screen, navigate to the section Strings in the plugins. Select the WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Label plugin from the list and click on Scan selected plugins for strings button as shown below.
At the end of the scan, all the strings in the plugin will be auto-populated into the String Translation domain, further to which you can make the necessary translations as mentioned at the beginning of this article.
- Was this article helpful?
- Yes, thanks!Not really
Comments (14)
Adi AP
August 16, 2023
Hello,
I would have a small problem vis-à-vis the create of invoices for printing. The website is in two languages: RO and EN and when I try to create the invoice for printing, the names of the products appear in EN, but the order was made in RO. When I view the invoice (after it was created), it appears in RO. Any idea why and how I can fix this?
Thank you very much.
Hema
August 21, 2023
Hello Adi AP,
Thanks for reaching out. The invoice generation is based on the WooCommerce profile language. Kindly make sure that the profile language chosen for both orders are correct. For further assistance contact customer support.
Ed
August 25, 2021
Hi, with this plugin will the customer be able to download pdf invoice from My Account?
Mark
August 26, 2021
Hi Ed,
You can download the PDF or print Invoice directly from My accounts > Orders page.
Paolo
May 4, 2021
Hi,
Where I could translate the voices of the PDF “Order”, “Date”, “Image”, “Total Weight” in languages different from english?
My website has two langs: IT and DE.
This plugin is compatible with WPML, but I can’t found the correct strings to translate in the WPML settings. How could I solve this problem?
Thanks,
Best regards
Mark
May 6, 2021
Hi Paolo,
Please follow the instructions here:
1. Open WPML string translation settings and enable “Look for strings while pages are rendered”
2. Open an order from the WooCommerce order page and print the invoice for rendering the strings.
3. Again go to the WPML string translation page and look for your desired fields and translate it.
4. You are done. Now you can disable “Look for strings while pages are rendered” option in the WPML string translation page.
Refer link for better clarification.
dev
June 4, 2019
Hello,
I used the same way but this is not working for me.
I tried by switching the langugage from WP dashboard but still no success.
One thing that I am using this plugin upgrade version i.e. 3.
Is it compatible or I need to use its downgrade version?
WPML integration support only for downgrade version?
Let me know if its not compatible and how can I get its downgrade version.
Thank you.
Mark
June 4, 2019
Hi,
The latest version is compatible with WPML. Try switching language from user profile edit page and check.
dev
June 6, 2019
Hello,
I already tried this. But still its not working.
Its only updating the “Billing Address” label from PDF after switching language from user profile edit screen.
Rest of the labels are still not translated. And I alredy set their translation in WPML > String translation.
Can you please let me know the issue
Mark
June 12, 2019
Hi,
As mentioned on the support ticket, updating the plugin to the latest version has fixed the issue for you. Hope everything works fine now.
devadmin
May 3, 2019
Hello,
I have used the same way to add string translation of invoices label in WPML.
But this is not working at my end. It is displaying the default language (English) translation.
Also I have used the custom invoice template.
Can you please let me know if I missed something here.
Thank you.
Mark
May 3, 2019
Hi,
Please try printing the invoices by switching the language from the WordPress admin dashboard. If the issue persists, please reach us via support link above.
Juergen Bauer
March 12, 2021
It is still not possible to print multi language invoices. What a pity!
Mark
March 16, 2021
Hi Juergen,
You can switch the user language and print the invoices according to users language.