How to Translate Themes and Plugins with Loco Translate Plugin
When you use a theme or plugin, there are several texts and strings you may like to translate. You can select to edit language files directly or use Poedit or a localization plugin to achieve this requirement.
For premium plugin, it is highly recommended to use WPML to translate themes and plugins. In this article, we will give detailed information on how to use a free translation plugin called Loco Translate to translate your content.
As soon as you begin to translate a theme or plugin, Loco Translate generates a PO file from the POT file then compiles it to MO file.
1. How to install Loco Translate
To install this plugin, you navigate to Dashboard > Plugins > Add New. In this screen, you can search for Loco Translate. Click on Install button and Activate button respectively to activate this plugin.
2. How to use Loco Translate
After finishing installation, you will easily find out Loco Translate section on your Dashboard.
From here, you can select to translate themes or plugins. For both translation of themes and plugins, you will perform a same way.
Step 1: Select theme/plugin you want to translate
Step 2: Add and Configure a New language
In this step, you are able to select your target language to create your new PO file in.
From Choose a location, you are recommended to select one of two Other locations (not Author) in order to keep the translations files safe after theme update.
Step 3: Search for terms for translation
In the Filter box, you will enter the term you want to translate, after that, click on it to select and this term will appear in the Source Text box. Just add the translation for this term on Translation box. Finally, click on Save button to save your translation.
If you find that some translations are not working correctly, select to synchronize translations by clicking on Sync button on the translation edit screen.
Step 4: Change Site language
Go to WordPress Dashboard > Settings > General > Change Site Language to your desired language > Save Changes. In case your site is already setup in your desired language, you can skip this step. Now it is time to enjoy fruits of your labor. Go to the frontend and see the translated terms in effect.
This is the basic usage of Loco Translate plugin for translating themes and plugins. Loco Translate is truly a simple but useful plugin for users to translate content into another language. Give it a try!