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.
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 toyour-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?
You can vote again after 1 hour
We will take care of this as soon as possible
We are very happy you did like this article. Would you please tell what ypu liked most?
We are very sorry you did not like this article. Would you please tell how we can make it better?