As we stated in our first theme translation tutorial, translating WordPress themes is actually very easy. With the help of some screenshots and some simple guidelines you’ll have your theme translated in no time.
So without further ado let’s get on with it and explain a second way of translating themes (and plugins). This procedure does not require you to play with files (too much) or install programs. All you need is the Codestyling Localization plugin for WordPress.
Step 1 – Install Codestyling Localization plugin
If you’re not familiar with installing plugins, all you need to do is go to Plugins » Add New in your WordPress dashboard. Type in “codestyling localization” to search for it, and install the plugin by clickin on the Install Now button in the returned.
Step 2 – Start a new translation
Navigating to Tools » Localization will open up the plugin’s administration page. There you will see listed all plugins and themes (including WordPress itself) and all their included translations.
Locate the desired plugin/theme (for this tutorial I picked Tempera) and click on the Add New Language button.
In the pop-up window, enter any desired information (like translation date and your name/email), select the language and the correct language code for the translation you intend to create and click Create po-file.
You will see the newly added language in the available languages list with 3 buttons next to it. Click Scan Now and then Rescan in the pop-up window.
Step 3 – Translate the theme
Once the scan is done, click the Edit button to enter translation editor mode.
Now you’re in the editing mode, where you can see all of the theme’s translatable string and their translation string (currently empty). You can click Edit next to each string to input your translation. You can also use the included searches to look for specific strings and translate only those.
When you’re done or any time you want to take a break and save your work click the Generate mo-file in the upper part of the window.
You can always return to editing mode later by re-clicking the Edit button next to the desired language in the Localization extensions list.
Step 4 – Tell WordPress to use your new language
Now go to your WordPress dashboard >> Settings >> General and select your language.
Step 5 – You’re done
This is it. If you’ve got everything right (the codes, the files) refreshing your site will render it with your fresh new translations.
And remember we always love including your hard precious work with our extensions so everyone can benefit from it 😉