You can translate the theme with two way; ‘Poedit’ and ‘Loco Translate’. These way is best solution for translation. You can use .pot file that come with the theme.
Translation with Poedit
- Firstly, download ‘Poedit’ software from Poedit website.
- Login to your hosting via FTP.
- Go to folder to the ‘/wp-content/themes/’ directory on your FTP server.
- Open languages folder in your theme folder.
- Download the ‘.pot’ file from the ‘/languages’ folder.
- Next, open the ‘.pot’ file via ‘Poedit’.
- Create the translation for your language.
- Save with your language code (such as de_DE.po/de_DE.mo or fr_FR.po/fr_FR.mo etc.).
- Upload translation file in the ‘/languages’ directory.
You can find all details about Poedit from here.
Translation with Loco Translate Plugin
- Go to the ‘Plugins > Add New’ page from admin panel menu.
- Search the ‘Loco Translate’ from the search from.
- Click on the ‘Install Now’ button.
- Click on the ‘Activate’ button.
- Go to the ‘Loco Translate’ from admin panel.
- Click on the theme from the ‘Active’ theme section.
- Click on the ‘New Language’ button.
- Firstly, choose a language from ‘Choose a language’ dropdown. This language is the language you want to translate.
- Next, choose a file location from ‘Choose a location’. Your ‘.pot’ file will save in that location.
- Click on the ‘Start translating’.
- Next, you can translate the words and the sentences from this interface.
- Click on the ‘Save’ button after process is finished.
Changing Site Language via WordPress Panel
- Go to the ‘Settings > General’ page from admin panel menu.
- Scroll to the ‘Site Language’ dropdown.
- You can change site language from this dropdown.
- Click on the ‘Save Changes’ button after process is finished.
Changing Site Language via config.php
- Login to your hosting via FTP.
- Open the ‘wp-config.php’ file (This file is in your website root directory).
- Find the ‘WPLANG’ word.
- Change the language code with your language code you want to use. Click for language codes.
- Save the file and replace with existing file.