Translated into 38 Languages, comes preloaded with Afrikaans, Arabic, Armenian, Bulgarian, Chinese (China), Chinese (Hong Kong), Chinese (Taiwan), Croatian, Czech, Dutch, French (Canada), French (France), German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Slovak, Spanish (Argentina), Spanish (Colombia), Spanish (Mexico), Spanish (Spain), Swedish, Russian, Thai, Turkish, Ukrainian, Urdu, Vietnamese — (machine translations) and more being added all the time.
Need to translate the theme into another language? No problem, it’s fully localized and translation ready. Follow the simple steps below:
NOTE: You’ll be translating both the theme language files and my Contempo Real Estate Custom Posts plugin language files.
With a Plugin (Recommended)
The easiest way is to use a free plugin like Loco Translate which you can get from your WordPress Admin > Plugins > Add New or if you need Multi-language WPML, everything is done through your WordPress admin and its simple as 1, 2, 3!
Manually with POEdit (Not Recommended)
This is the more labor-intensive way, it requires downloading third-party software, making file edits offline and uploading via FTP using a program like FileZilla. I’d recommend using the plugin method above.
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 PO 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.
5. Last Step
Then go into your WordPress Admin > Settings > General > Site Language (bottom) > Choose that language > Save Changes.
Manually with POEdit – Plugin
2. Create a new catalog (the local language file)
- Start PoEdit and click on the File menu and select the option New catalog from PO file.
- This will open the file dialog box. Go to the languages folder of the plugin. 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 contempo-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 contempo-fr_FR.po and so on. You can find a list of language codes at this page and country codes here.
3. Translate the Plugin
This is the step where we will actually translate the plugin. 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 plugin in wp-content > plugins > contempo-real-estate-custom-posts > languages.
5. Last Step
Then go into your WordPress Admin > Settings > General > Site Language (bottom) > Choose that language > Save Changes.