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.
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 connect to your server using FTP to find the file wp-config.php.
- Locate the line that says define('WPLANG', '');
- Enter your language code that you have chosen in step 3. Therefore change that line to define('WPLANG', 'en_US');.
Save your wp-config.php file and refresh your website. Your translated word should appear.
When you go back to Loco Translate to do more translations just click on the language you are editing as shown on this screenshot: