Translating with the Poedit Software

Last Updated on

Theme translation is the process of translating texts from one language into another. Since Ken does not provide files in languages other than English, many users look for ways to translate their theme into their own language. There are a lot of ways to translate a theme but this article will explain how to translate with the Poedit software.

Contrary to other translation methods using plugins, this method requires the Poedit software, a handy computer software that is used for the translation of language files.

In this article

Changing the Default Language

To set the default language of WordPress:

From the WordPress left menu, go to Settings > General.
Change the Site Language field to your target language.
Click on Save Changes.

Installing the Poedit Software

To install the Poedit software:

Go to the official Poedit website.
The Poedit software is available for different platforms such as Windows, MacOS, Unix / Linux. Click on the Download button that fits with your operating system. The download will start automatically.
Select “I agree with these terms” and click on Next. Run the setup and finish the installation.

Finding and Configuring the Translation File

To find the translation file of your website:

Install a child theme.
Note: If you are not sure how to install a child theme, read the Installing the theme and child theme article.
Go to your-website-index/wp-content/themes/ken and copy and paste the /languages folder into the your-website-index/wp-content/themes/ken-child folder. So your new language file will be your-website-index/wp-content/themes/ken-child/languages

Translating the Theme

To translate the theme:

Open the Poedit software.
Open up the PO file that you copied into your child theme under the languages folder by going to the Files > Open menu. Alternatively, you can use the Control + O shortcut keys for Windows and Command + O for Mac.
Go to Files > Save As to name it according to your target language and click on Save.

For example, in case of you want to create a translation file for Spanish (Argentina), name your file as es_AR . The language file extension (.po) will be added automatically.

Note: To find the language code list for your translation file, you can check this page. Check WP Locale table to find your language prefix.
Select the line that you want to translate. Alternatively, find the text by going to Edit > Find or use the Control + F shortcut keys for Windows and Command + F for Mac.
Write the translated text below the field.
 Go to Files > Save.

Uploading the Translation Files

To move your translated files into your website language folder:

Access your website index via the (S)FTP software by entering your (S)FTP login credentials. If your website is on a localhost, skip this step.
Go to your-website-index/wp-content/themes/ken-child/languages folder and paste your translated files that have the .PO and .MO extensions. Click Yes to override the existing language files if necessary.
Was this helpful?
Previous Article:
Next Article:

Can't find what you're looking for?

Open New Ticket