Step 1: Installation and Activation of Loco Translate
To install the Loco Translate plugin, simply navigate to Plugins > Add New and search for the plugin Loco Translate. Here is the direct download link Loco Translate.
From there, select Install Now, and then click on Activate to get the plugin ready for use on your website. When this is complete, you will see a new WordPress dashboard menu item labeled Loco Translate.
Step 2: Check you can switch language
Visit Settings > General > Site Language. Changing this will set a new default language for all site visitors. Try it and you should see something like this:
Step 3: Check the theme contains a POT file
Looking inside the theme folder we can see a
"languages" sub-folder containing a file called
"ronby.pot". This is a translation template provided by the theme author. It contains all the translatable phrases (or strings) that the theme defines.
Step 4: Find the theme in the translation dashboard
Click the admin menu item that says “Loco Translate” and select the “Themes” sub section. This will take you to a list of all available themes in your WordPress. You should see “Ronby” in the list regardless of whether it’s your active theme. Click it and you should see the following screen:
Step 5: Add a new language
Above the language list (which may be empty) you should see a button that says “New language” with an add icon. To start translating the theme into another language click this button and you’ll be taken to a new screen where you can choose the language you want. Select a language from the dropdown list of common languages. In this example we’ll select ‘Greek’.
Step 6: Translate some strings
Once on the editor screen you’ll see all the strings the theme has defined in its template file. Untranslated strings are shown in bold blue. To start with they will all be untranslated.
The basics of the editor should be fairly intuitive. Select the English string at the top and enter your translation in the pane at the bottom. You can ignore most of the editor buttons for now. We’re just going to enter a translation and save it.
Step 7: Viewing the translated theme
Head to a blog post on your site and check the sample phrase we translated earlier. We know where “Leave a comment” will appear – below the title of every post.
Great, it works.