How to Translate Our WordPress Themes
One of the great features of Theme Junkie themes is that our themes are Internationalized (I18n). In simple language, it means that you can translate any of our themes in your own language!
In this quick tutorial, we’ll walk you through an overview of how to translate our themes quickly and easily into a language of your choice.
1. Download and install PoEdit.
We need PoEdit to translate a theme. Its a free software and its available for Mac, Windows and Linux. Download PoEdit from this page.
2. Create a new catalog (the local language file)
Start PoEdit and click on the File menu and select the option New catalog from POT file.
This will open the file dialog box. Go to the languages folder of the theme. Select All Files from the file dialog box, and open the en_US.po file in the languages folder.
Now PoEdit will ask you for various configuration options. The most important thing here is to choose the correct country and language you are translating to.
In the remaining fields of the configuration window, fill the required information or just leave them empty.
Now click on the Paths tab and change the path variable to the place where your theme files are located.
Then press OK.
Now PoEdit will ask you to name the file. Its very important to name the file correctly. The naming convention for these files is languageCode_countryCode. The language code must be in lower case while the country code should be in upper case. So, if you are translating the theme for UK English, the file name will be en_UK. Similarly, for translation to french, it will be fr_FR and so on. You can find a list of language codes at this page and country codes here.
3. Translate The Theme
This is the step where we will actually translate the theme. After Step 2 above, you’ll see the standard interface of PoEdit where the left panel contain the strings in the original language and the right panel containing the translations. The right panel will be empty as we haven’t started the translation yet.
Start translating each string one by one. Click on the first string and press Tab button. This will take you to the translation box in the bottom. Type the translation here. Your change will reflect immediately in the right panel. Once you are done with this string, press Enter and move on to the second string. Repeat this procedure until all the strings are translated. After the translation is done, save the file.
4. Upload The Files To Your Server
When you save the catalog file in Step 3 above, PoEdit will create two files, a .po file and a .mo file. Upload both these files to the languages directory of your theme and you are done. If you’re using a localized version of WordPress, your template should now be automatically localized.
5. Questions? Issues?
If you have any questions or doubts then feel free to use the comments form below. If the questions are theme specific, then use our support forums. Happy Translating!