Setup #
Requirements:
- Polylang
- Polylang WooCommerce addon (recommended)
Note: While Polylang by itself allows for PDF translations, managing multilingual content efficiently is difficult without the Polylang WooCommerce addon. This documetation focuses on the basics of our Polylang compatibility.
![An image of the multilingual settings](https://i.ibb.co/CJPnq7h/multilingual-settings-tablepng.png)
WooCommerce > PDF Invoices > Pro
At WooCommerce > PDF Invoices > Pro, unless you need to set the language to a fixed one, set the Document language to Order/customer language.
With Polylang configured, users will receive their documents in the language in which Polylang set their Checkout at the time of purchase,
Polylang also enhances certain settings of our Invoicing plugin by adding multi-lingual tabs to them. These language tabs are set via the Polylang ‘Languages’ menu.
![An image of Polylang settings](https://i.ibb.co/q566Mxr/languages-polylang.png)
The following list shows how the multilingual tabs appear for compatible settings.
Multilingual settings #
All document settings are saved in the WooCommerce order meta. These multilingual settings keep existing even if Polylang is uninstalled.
Shop Logo #
- Path: WooCommerce > PDF Invoices > General
![](https://i.ibb.co/G06w1RF/shop-header-logo.png)
Since this adds the ability to set a different shop logo per language (language locale), it becomes possible to add the same shop logo – with different text, to truly reach a multilingual shop feeling.
Examples #
The images below represent an example of multilingual-friendly logos:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-1.jpeg)
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image.jpeg)
- Example – Logo set for Spanish:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-36-1024x447.png)
- Example – Logo set for German:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-35-1024x438.png)
Shop Name #
- Path: WooCommerce > PDF Invoices > General
Note that the Shop Name setting is selected in French:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-37.png)
Result on document in French:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-38.png)
Shop Name setting selected in German:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-39.png)
Result for document in German:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-40-1024x379.png)
Shop Address #
- Path: WooCommerce > PDF Invoices > General
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-41.png)
Footer #
- Path: WooCommerce > PDF Invoices > General
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-42.png)
Extra template fields #
- Requirement: Premium Templates extension (part of our PDF Invoices & Packing Slips Bundle)
- Requirement: Modern template
- Path: WooCommerce > PDF Invoices > General
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-43.png)
Document title #
- Path: WooCommerce > PDF Invoices > Documents, select the document type then scroll to Document title.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-45.png)
PDF filename #
- Path: WooCommerce > PDF Invoices > Documents, select the document type then scroll to PDF filename.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-44.png)
Document number label #
- Path: WooCommerce > PDF Invoices > Documents, select the document type then scroll to Document number label.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-46.png)
Document date label #
- Path: WooCommerce > PDF Invoices > Documents, select the document type then scroll to Document date label.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-47.png)
Due date label #
- Path: WooCommerce > PDF Invoices > Documents, select the document type then scroll to Due date label.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-48.png)
Address customization #
- Requirement: Professional extension
- Path: WooCommerce > PDF Invoices > Pro
Enjoy different address structures based on your document language.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-49.png)
The fields to overwrite the Billing Address:
Similar to above, the fields to overwrite the Shipping Address:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-50.png)
String translation #
Example: Custom Block translation #
- Requirement: Premium Templates extension (part of our PDF Invoices & Packing Slips Bundle)
The content from Custom Blocks is not translated by default, as the strings are not from our plugin itself. Instead, they were inserted manually (via a Custom Block in our case).
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-52.png)
The document language below is in French, so we expect our manually added text to be in French, not in English.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/billng-address-string-polylang.png)
In order to translate these strings, they need to be searched via the Polylang settings at Languages > Translations.
Once in Polylang’s ‘Translations‘ settings:
– Change the current language to the language in which you want to edit the translation.
– Search for the string (text) you would like to translate.
In our example, our target language is French.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/polylang-select-language-then-search-string-1024x495.png)
When viewing the search results, the Group should always be PDF Invoices & Packing Slips for WooCommerce – Premium Templates if it is from a Custom Block. This Group column will always give a hint regarding where the inserted string came from.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/group-of-sreach-result-string-translation-polylang.png)
From here, the desired text can now be inserted. Remember to save your translation.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/French-translation-updated-polylang.png)
Here is the result on a document:
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/successfull-french-translation.png)
Troubleshooting #
- When viewing search results from the Polylang translation settings at Languages > Translations, it is important to take note of both the Name and Group of the result.
![](https://docs.wpovernight.com/wp-content/uploads/2024/05/image-57.png)
- Remember to leave the the Document language setting at ‘Order/customer language’ to avoid sending all your customers documents in the same forced language.
WooCommerce > PDF Invoices > Pro