Okay
  Print

Translating WordPress theme to another language

1. Add Loco Translate plugin

There are several translations plugins out there but we think Loco Translate is the easiest to work with . Loco Translate has been around for several years and is a favorite among developers and translators in the WordPress community. It’s also free to use, which eliminates a major barrier to entry for first-time translators.

To install Loco Translate plugin navigate to Dashboard > Plugins > Add New. Then search for Loco translate on the right side search bar.  Click and Install the plugin. Once Loco Translate is installed you can activate it.

2. Create Your Language

Navigate to Dashboard > Loco Translate > Themes. Click on WunderMag.

Select "New Language". From the WordPress language dropdown, select language you want theme to be translated into.

Click "Start Translating" button.

3. 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.

img

For our example we've picked out the phrase "Leave a comment". Using the text filter at the top of the editor we can find this phrase quickly and select it in the list. Then we enter the text "Σχολιάστε" into the bottom pane as our translation.

The string at the top now shows a star icon to indicate that our changes are not yet saved.

Continue to translate as much as you like and when you're ready click the Save icon in the editor toolbar. 

4. Switch your WordPress to your language

Head to the Settings > General admin screen and scroll to the bottom. You should see a dropdown list with the label "Site Language". Changing this will set a new default language for all site visitors. Try it and you should see something like this:

img

Continuing the theme of our example, we're going to set the language to Greek, listed under "Available > Ελληνικά" in the list. Once WordPress has downloaded the core language packs for Greek this entry will move to the "Installed" section.

If you don't see your language in the dropdown list you may have to install the core language packs manually.

Congratulations, you've just made your first WordPress translation.