Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Translating Plugins Using Loco Translate

Translating Plugins Using Loco Translate

Last updated on January 18, 2024

Loco Translate is a useful plugin that allows easy translation of plugins and themes into your desired languages. In this article, we will explore how to use Loco Translate to translate WebToffee plugins. Follow the steps below to translate a plugin using Loco Translate:

  1. Install and activate the Loco Translate plugin.
  2. From the WordPress dashboard, navigate to Loco Translate > Plugins.
  3. Choose a plugin you wish to translate from the Translate plugins page.
  4. Click on ‘+ New language,’ then choose a language for translation and specify a location to save the new language file.
  5. Click on Start Translating to begin the translation process.
  6. On the Translation Editor page, click on the source text/string that you wish to translate.
  7. Add the translation for the selected string in the language translation pane located at the bottom of the editor page.
  8. Click on Save to save the translations.
  9. Finally, switch the site language to see the translated plugin changes.

Prerequisites

  1. Install and activate the Loco Translate plugin.
  2. Install and activate the WebToffee plugin which you wish to translate.

Translating plugins using the loco translate plugin

The following steps shows how to translate strings inside the WebToffee’s WooCommerce PDF Invoices, Packing Slips and Credit Notes plugin. The steps given below are common for all the WebToffee plugins.

  1. From the dashboard, navigate to Loco Translate > Plugins.
  2. In the Translate plugins page, select the desired plugin for translation by clicking on it. You can either scroll down to the preferred plugin or use the filter option to search the plugin. Here, let’s select WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin for translation.
Selecting the required plugin for translation
Selecting the required plugin for translation
  1. Selecting a plugin opens a new page. Here, click on the ‘+ New language’ option under the Overview tab. The Overview tab also lists all the language files inside the plugin, translation progress, total strings, pending strings for translation, etc.
Option to select a new language
Option to select a new language
  1. From the New language page, select a language for translation. It can be a WordPress language or a custom language. On choosing WordPress language, specify the language from the dropdown menu.
  2. Choose a location to save the language file.
  3. Click on Start translating to initiate the translation process.
Selecting a language and specifying its file location
Selecting a language and specifying its file location
  1. In the Editor page, head to the pane that lists all the source text/strings inside the plugin. Here, select the preferred source text by scrolling down to the text or by using the filter.
Source texts and filter option
  1. After selecting the preferred source text, add the translation for the same in the translation pane.
Translation pane
Translation pane
  1. On adding the translations, click on the Save button to save the translations.
Saving the Translations
Saving the Translations
  1. Now, switch the site language (WordPress Settings > General > Site Language) to see the translated plugin changes.

Use Case

Let’s take an example of translating a few source strings inside WebToffee’s free WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin into the Portuguese language. Here we are adding translations for source texts like product, quantity, and payment method. The GIF below shows the detailed steps.

Translating strings inside the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin
Translating strings inside the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin