Translating your theme with Loco Translate plugin

If you’re looking for how to translate WordPress themes & plugins into single language, then you should use Loco Translate. It is a free-but-powerful translation plugin, will help you translate or customize existing language packages directly from the dashboard and see the live changes within a few clicks.

The following article gives detailed information on how to use Loco Translate to translate theme. For today’s explanation, I will use Xstore theme as an example.

1. Installing and Activating of Loco Translate

In order to install plugin, simply go to Plugins -> Add New and search for Loco Translate.

Select Install Now button, then click on Activate to get the plugin ready for use.

2. Changing default language

Each theme will have certain languages built in so before starting to translate your theme into language you want, you need to set your WordPress language first.

Simply navigate to Settings -> General and scroll down to the bottom where you will see a dropdown labeled Site Language. As you can in the following image, Xstore’s default language is English

If the language you wish to translate your theme into is not in the Installed section, select your preferred language from the dropdown menu and click on Save Changes.  This will install your language and set it as your site’s default.  I have chosen Germany from the dropdown menu and saved my changes.

3. Sync & Adding new language

When you’re ready, go to Loco Translate -> Themes and you will see a list of all installed themes on your website.

3.1 Editing template

– Clicking on activate theme and click on Edit template button.

– You will see a screen that looks something like this

– Here you should click on Sync button, then click Save button to complete the sync.

– After clicking Save, if you receive the following message

Warning: 3 files over 100 KB have been skipped. (Largest is xxx KB). Check all strings are present before saving.

You can fix it by raising the file size limit in Loco Translate -> Settings 

Then, repeat 3.1 steps to sync the strings.

3.2 Adding a new language

After synced the strings, the next step is to add new language you wish to translate. Go to Loco Translate -> Themes, select your theme and click on New Language.

Here, select the language which you would like to translate from the dropdown menu.

Remember: In order to keep your new translation files remain safe from the theme update, I recommend that you select Other option.

4. Translating the theme

After doing this, Xstore is ready to be translated into German. Simply click on Deutsch

You’ll be directed to the following screen

In order to start translating, click on the word or phrase you want to translate or you can use Filter box at the top of page to search the terms. After that, click on it and then it will be entered into Source text section.

Now, you can enter the translation for word or phrase into Deutsch section. If the language you wish to translate is not your own language, it is always safe to use Google Translate. Make sure to click Save to complete the translation.

Now, you can go to the front-end of your website, any strings you have translated will appear for visitors to see.

Conclusions

Loco Translate is one of the most plugins that help you translate themes or plugins easily. The higher number of themes available in other languages, the more people will be able to build amazing websites. Let me know if you have any queries, I would love to hear from you.

5 thoughts on “Translating your theme with Loco Translate plugin

Leave a Reply

Your email address will not be published. Required fields are marked *