Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Translating WooCommerce Invoice and Packing Slip Using WPML

Translating WooCommerce Invoice and Packing Slip Using WPML

Last updated on April 8, 2025

WooCommerce store owners often offer invoices and packing slips in multiple languages to serve a diverse customer base. WPML (WordPress Multilingual Plugin) simplifies translating the WebToffee Invoice plugin with both manual string translation and AI-assisted translation. This article explains both methods, helping you fully localize your invoices and packing slips for your target audience.

Prerequisites

Make sure you have:

📌

Note: The WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels (Free) plugin does not support translation of dynamic strings like store address, footer text, or custom fields using WPML.
To translate these dynamic elements, you’ll need the Pro version, which is fully compatible with WPML, for a complete multilingual setup.

Step 1: Scan the Plugin for Translatable Strings

Before starting the translation process, scan the WebToffee Invoice (free) plugin to identify translatable strings.

  1. Navigate to WPML > Theme and Plugins Localization in your WordPress dashboard.
  2. Scroll to the Scan strings in themes, plugins, and WordPress section.
Scan plugin for strings - WPML translation
Scan plugin for strings – WPML translation
  1. Under the Plugins section, locate and select WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels (WebToffee Invoice Plugin).
  2. Click Scan selected components for strings to start scanning.
Scanning strings in the invoice plugin - WPML translation
Scanning strings in the invoice plugin – WPML translation
  1. Wait for WPML to complete the scanning process. A pop-up will display the total number of detected strings.
  2. Once the scan is complete, WPML will add the identified strings to the translations table.
📌

Note: WPML’s AI-assisted translation requires translation credits. If you’re low on credits, you can either purchase additional credits or use the manual string translation method.

Please note that with manual translation, each string needs to be translated individually, which may take more time.

Method 1: AI-Assisted Translation

WPML provides an AI-powered automatic translation option, allowing users to translate content efficiently. Follow these steps to automate translation using WPML AI.

Step 2: Selecting Strings for AI Translation

  1. Navigate to WPML > Translation Management.
  2. Scroll down until you find the Other Texts (Strings) section, which allows you to translate text from themes, plugins, and additional elements.
  3. Click on the All domains filter and select the relevant domain for the WebToffee Invoice plugin (print-invoices-packing-slip-labels-for-woocommerce). This ensures that you only see translatable strings related to the invoice plugin.
Domain selection invoice free plugin - WPML translation
Domain selection invoice free plugin – WPML translation
  1. Use the search bar to find specific text you want to translate, such as “quantity” or “invoice”.
  2. Check the boxes next to the strings that require translation.
  3. After selecting the required strings, scroll to the Translate your content section.
Selecting invoice plugin strings for translation - WPML
Selecting invoice plugin strings for translation – WPML

Step 3: Choosing a Translation Method and Review Preference

  1. WPML will take you to the Translation Controls interface, where you can configure how the plugin should translate the selected strings.
  2. Click on the dropdown menu next to All languages to select the translation method:
    • Translate automatically – WPML AI instantly translates the content.
    • Translate manually – Users manually input translations.
  3. WPML offers review options before publishing translations. Select the preferred review type.
  4. If WPML detects previously translated content, choose whether to keep existing translations or overwrite them.
  5. Once everything is configured, click the Translate button to finalize the translation process.
Translation method and review - WPML translation
Translation method and review – WPML translation

Method 2: Manual Translation Using WPML String Translation

WPML allows you to translate specific plugin strings using the String Translation feature manually. This method provides complete control over translations, ensuring accuracy and customization.

Step 2: Access the Plugin Strings in WPML String Translation

  1. Navigate to WPML > String Translation.
  2. Click on the All domains dropdown.
  3. Select the domain print-invoices-packing-slip-labels-for-woocommerce, which corresponds to the WebToffee Invoice Plugin.
Selecting invoice free plugin domain - String translation
Selecting invoice free plugin domain – String translation
  1. Use the search bar to filter specific words or phrases you need to translate.
Scan specific string - WPML string translation
Scan specific string – WPML string translation

Step 3: Translate the Required Strings

  1. Locate the string you want to translate from the filtered results.
  2. Click the + icon under the desired target language to begin translation.
  3. Enter the translated text manually in the provided text box.
  4. WPML automatically saves the translation once you enter it.
  5. Repeat this process for all necessary strings to ensure complete localization.
Adding translation - String translation
Adding translations – String translation

Example: Translating Strings into Hindi

WPML String Translation makes it easy to translate invoice-related strings. For example, when translating key terms like “Invoice”, “Total price”, “Product”, and “Quantity” into Hindi, users can simply navigate to WPML > String Translation, locate the relevant strings under the print-invoices-packing-slip-labels-for-woocommerce domain, and input translations such as “चालान” (Invoice), “कुल कीमत” (Total price), “उत्पाद” (Product), and “मात्रा” (Quantity). Now, change the site language to Hindi and generate invoices. These translations instantly reflect on the invoices, ensuring a localized experience for Hindi-speaking customers.

⚠️

Note: To prevent errors in the PDF copy, make sure to install and activate the mPDF add-on for RTL and Unicode Support. Additionally, set the default PDF library to mPDF. For more details check out this article: Fixing Language Missing Issues.

Sample WooCommerce invoice
Sample WooCommerce invoice

Finding and Registering Missing Strings in a Plugin

Sometimes, some plugin strings may not appear in the WPML String Translation interface. To resolve this issue and make these strings available for translation, follow these steps:

Step 1: Enable Auto-Detection of Untranslated Strings

  1. Navigate to WPML > String Translation from your WordPress dashboard.
  2. Scroll down to the Utilities section.
  3. Locate the Auto Register Untranslated Strings option.
  4. Select Untranslated strings that I encounter while logged in.
  5. Check Also register strings from the website’s back-end if needed.
  6. Click Save settings to apply the changes.
Auto register untranslated strings - String translation
Auto register untranslated strings – String translation

Step 2: Trigger the Missing Strings

  1. Go to the WooCommerce > Orders page.
  2. Generate the document where the missing strings appear (e.g., invoice, packing slip).
  3. This action will log the untranslated strings and register them in WPML String Translation.

Step 3: Translate the Newly Registered Strings

  1. Return to WPML > String Translation.
  2. Search for the missing strings in the translation table.
  3. Click the + icon under the desired language.
  4. Enter the translation manually and save.