How to Translate WordPress theme with the Loco Translate Plugin?

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.

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:


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:

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

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.

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


For More Questions Refer to this site

Give a creative, modern, and attractive look to your website with our professionally designed WordPress Themes & Templates Find us here

Leave a Reply

Forgot Password