Themify allows you to translate each theme into different languages without having to edit the template files. It can be translated with the free Poedit software or translation plugins such as Loco Translate. You can also purchase the premium WPML plugin, if you need more advanced features such as translating custom types, taxonomy, and menus.
Translating with Poedit
If you don't have the Poedit software, download and install it first.
Step 1: creating a new catalog:
Start Poedit and go to File > New catalog...
In the Translation properties tab, set the project name and version. You can dismiss most options, but if you want, set your target language in the Language field.
Click on the Sources paths tab, then 0n the New Item button highlighted in the image. It will create a new entry in the list below. Type two dots (..) as shown.
Go to the Sources keywords tab, for each of the following strings, click on New Item and type the characters indicated:
Note: "__" string is composed of two underscore characters
Finally click OK and save it in the languages sub-folder in your theme folder. Name the file after your language locale. For example, name it fr_FR for French, es_ES for spanish, pt_BR for brazilian portuguese and so on (read this list for more codes).
Step 2: Translating strings:
After saving, Poedit will pickup all strings available for translation. When it's done, you should see a list of strings (in English) used in the theme. Go through the list and enter the translation text in the lower box. When you are done, click File > Save and Poedit will generate a .mo file (eg. fr_FR.mo) automatically on save. If you don't see the .mo file, go to Poedit > Preferences, under the "Editor" tab, check "Automatically compile .mo file on save".
Step 3: Upload the PO and MO File (if you were working locally)
If you were working on a local test server, you'll have to upload the .po and .mo file (generated from Poedit) to the "theme/languages" folder through FTP.
Step 4: wp-config.php WPLANG Setting
Finally, open the wp-config.php file. Look for the "WPLANG" setting and add the language code. If you can't find any WPLANG constant in the wp-config.php file, just add the following line manually before the line that says /* That's all, stop editing! Happy blogging. */
Translating with Loco Translate plugin
- Install Loco Translate plugin
- Go to Loco Translate then in the list of themes find the desired theme name. And click on "+ New Language
- Select the language from the list or just enter "en_US" in the small field and click "Start Translating". Let's assume that you have chosen "en_US".
- Now you will see a list of words. You can either scroll to find your word to translate or use the "Filter translation" search option and type in the word you are looking for. Once you select your word enter it's translation in the "Translation" field.
- Click on "Save"
- Click on "Sync".
- Then go to Settings > General under "Site Language" option to select the language.
When you go back to Loco Translate to do more translations just click on the language you are editing as shown on this screenshot:
Translating with the WPML plugin
The WMPL plugin is a popular WordPress translator that allows your site visitors to choose which language they would like to view on your site.
- Install WPML plugin
- Once enabled, go to the Multilingual Widget on your Admin Dashboard. This will give you access to different functions in WPML.
- Here's a detailed documentation if you would like to translate using String Translation.
- If you would like an in-depth tutorial on how to translate your site content using the WPML plugin, go to their getting started documentation. The documentation provides screenshots and demo video that'll help you use the plugin.