Flexible Invoices plugin is compatible with WPML plugin and ready for translations. The invoices will be issued in a language of a user session during placing an order in WooCommerce. Text below will explain how the translation works and hot to introduce WPML support for Flexible Invoices in your WooCommerce store.
WPML & Flexible Invoices for WooCommerce
Invoices which you issue for WooCommerce orders will always be saved in a language in which the order was placed during the WPML session.
All of the fields visible on the invoice can be translated. Furthermore, plugin also supports the translations of:
- VAT number field in the checkout form
- Order items
- Shipping method
- Payment method
- E-mails with invoice download link that are sent to the customers
- Download link in the My account section of your site
Adding the translations
During the configuration of the plugin, you can adjust the phrases which can be edited (eg. Invoice Prefix). You can only edit them using default site Language. For languages different than default, fields won't be editable - you should use String Translation tool to translate them:
In order to add translations for Flexible Invoices phrases, use String Translation tool, just like translating any other plugin. Open String Translation screen and add translated phrases:
Text domains you should be using while working with translations:
Flexible Invoices for WordPress
If you decide to issue an invoice which won't be related to WooCommerce order (using Invoices -> Add New), the invoice language will be the same as logged in user's language which generates the invoice.
Phrase's language flag does not match its actual language
If you notice that phrase's language flag does not match its actual language during the work on translation, it might mean that this phrase has been saved while current phrase language was set as site's language (eg. before activating WPML).
To solve this issue, choose one of the solutions below:
- delete the string (after deleting, it will be added again automatically)
- manually change the string's language using Change the language of selected strings button
There are string in different languages on the invoice
If there are mixed languages on the invoice, please make sure that all phrases are translated in String Translation tool. If one of the strings does not have a translation set, it may lead to incorrect loading of other strings. Translating remaining phrases will solve this issue.