How to Translate WordPress Theme with Loco Translate?

Introduction

Are you using a WordPress theme that’s not available in your language? Translating your WordPress theme can help improve your website’s accessibility and reach a wider audience. Fortunately, In this article you’ll get to know “How to Translate WordPress Theme with Loco Translate”

Loco Translate is a free plugin that allows you to translate WordPress themes and plugins directly from the WordPress dashboard. In this article, we’ll guide you through the process of translating your WordPress theme with Loco Translate, step by step. Whether you’re a beginner or an experienced WordPress user, this guide will help you create a multilingual website and expand your reach globally.

WordPress is one of the most popular website builders in the world, and one of its key strengths is its versatility. It comes with thousands of plugins, themes, and other add-ons that can be customized to your specific needs. However, if you want to reach an international audience, you may need to translate your website into different languages.

Fortunately, there are many tools available to help you translate your WordPress site, including plugins such as Loco Translate. In this article, we will provide a step-by-step guide on how to use Loco Translate to translate your WordPress theme.
 

1. Get the theme

  • In this article, we are going to add some translations to our WordPress theme Factrie.
  • Appearance > Themes > Upload & Install the theme. You don’t need to activate the theme. Just have it installed  "wp-content/themes" and we can move on.

 

Step 1: Install & Activate Loco Translate Plugin

The first step is to install the Loco Translate plugin. To do this, log in to your WordPress dashboard and go to Plugins > Add New. In the search bar, type in “Loco Translate” and then click “Install Now.” Once the plugin is installed, click on “Activate” to activate the plugin.
 

2. Check if you can switch language

WordPress Admin Panel > Settings > General admin screen and scroll to the bottom. You can find a dropdown list with the label “Site Language”. Changing this will set a new default language for all site visitors. Just try it and you will see something like this:

Translate WordPress Theme

we are 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 have to install the core language packs manually.
 

3. Set up the folders

Before you do any translating, make sure the following folder exists on your site and is writeable by the web server:

wp-content/languages/loco/themes

 

4. Check the theme contains a POT file

  • In the Factrie theme folder you can find a "languages" sub-folder containing a file called "factrie.pot". This is a translation template provided by the theme author. It contains all the translatable phrases (or strings) that the theme defines.
  • If your theme has no template file, Loco Translate will warn you. In this case, we know it exists, but just to be sure check it’s at the following location:
wp-content/themes/factrie/languages/factrie.pot

 

5. 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 can see “Factrie” in the list regardless of whether it’s your active theme. Click it and you should see the following screen:

Translate WordPress Theme

Skip PHP Files Larger Than Size always Should be 2000k.
 

6. 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’. You could achieve the same result by entering "el" into the text field instead


Translate WordPress Theme

 

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


Translate WordPress Theme
  • For our example, we have picked out the phrase “Leave a Reply“. 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 panel 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 are ready click the Save icon in the editor toolbar. Congratulations, you have saved your first WordPress translation.

 

8. Viewing the translated theme String

  • Our New MO file will be loaded by the Omega theme (and only by the Factrie theme) when the Greek language setting is active. So, let’s check if it works.
  • blog post on your site and check near the comment box the sample phrase we translated. We can see here that “Leave a Reply will appear – below the title of every post.

 

Translate WordPress Theme with Loco translate

 

9. Core Plugin Translation

Translate the Core Plugin as same as Theme Translation. Some of the Strings will display from our Core Plugin. So It is a must to translate our Core Plugin too.

  • WordPress Dashboard > Loco Translate > Plugin > Here you can find Our core plugin. (Example: Factrie-Core)
  • Create a New language > Select the language (Example: Greek) we chose before for theme translation.
  • Select the path for pot generation.
  • Finally, you can start to translate the Factrie Core plugin file.
  • This will also work like Theme string translation.

 

For More Questions Refer to this site

https://localise.biz/wordpress/plugin/beginners
 

Conclusion

In conclusion, Loco Translate is an incredibly useful plugin for translating WordPress themes and plugins. With its user-friendly interface and powerful translation tools, you can easily create a multilingual website and expand your reach globally.

By following the steps outlined in this guide, you can translate your WordPress theme with Loco Translate in just a few clicks. By following the steps outlined in this article, you can easily translate your theme into any language and ensure that your website is accessible to everyone.
Whether you’re translating your website for a local audience or targeting an international market, Loco Translate makes it easy to create a professional, multilingual website.

We hope this guide has been helpful and that you can now confidently translate your WordPress theme with Loco Translate.

Leave a Reply

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

Forgot Password

Register