# Loco Translate Guide

## 1. Installing and Activating of Loco Translate

In order to install plugin, simply go to **Plugins -> Add New** and search for _Loco Translate_.

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/ofRNHlQvcV7wxYZLVmXS/dowload%20loco.webp" alt=""><figcaption></figcaption></figure>

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, **Ekommart** default language is English

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/A72wOKgOyVgedannD1ah/settings%20language.webp" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/vAbpeEeCDm4UJAPZLZcB/loco%20theme.png" alt=""><figcaption></figcaption></figure>

### 3.1 Editing template

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

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/rfySSVDkt5dryeMfzg9u/edit%20template.png" alt=""><figcaption></figcaption></figure>

– You will see a screen that looks something like this

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/2tWKr8F7xF6vSz4PefwJ/marx-pot.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/WaJLCw2gco8R2kKCz4uO/marx-pot-2.png" alt=""><figcaption></figcaption></figure>

– 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**&#x20;

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/l387j7XWIVXchPGlIm1Q/warning.webp" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/6JfBo9wa671w3hDCt6jD/new%20language.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/qVwK3KJJNQbi2UL7VKmn/new%20language%202.png" alt=""><figcaption></figcaption></figure>

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

## 4. Translating the theme

After doing this, **Ekommart** is ready to be translated into **Arabic**. Simply click on  **Arabic**

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/U0ssrRqMz0Rg3UJHdZqM/new%20language%204.png" alt=""><figcaption></figcaption></figure>

You’ll be directed to the following screen

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/emBxcXsiIjCMNszsdhAj/new%20language%203.png" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/t4acad6zezuIKQTLFeIS/new%20language%206.png" alt=""><figcaption></figcaption></figure>

Now, you can enter the translation for word or phrase into **Arabic** section. If the language you wish to translate is not your own language, it is always safe to use [Google Translate](https://translate.google.com/). Make sure to click **Save** to complete the translation.

<figure><img src="https://content.gitbook.com/content/LNvDUNyjLQzYp4PUnJGY/blobs/jHCavs4DBR3d9SLfKxQh/save%20new%20language.png" alt=""><figcaption></figcaption></figure>

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