Going Loco: Using Loco Translate on Your WordPress Site

Loco has two parts: a web service and a WordPress plugin. You can use either of them to translate your WordPress site. Yesterday, we covered the web service, but let’s try the plugin out instead. Keep in mind that you should only use one

Download, Install & Activate

The Loco Translate thumbnail image

There are two ways to download and install Loco Translate. You can use the WordPress Plugin admin screen or you can download it from the WordPress Plugin Repository and upload it via FTP.

Packages

After activating Loco Translate, you will see a new menu added:

The Loco Translate admin bar

Clicking on the Loco Translate button takes you to Packages screen. There’s a settings tab, but let’s take a look at the aforementioned screen instead. The Package Details is the name of the theme or plugin. Translations is the list of the languages that the package has been translated into it. The Template(POT) is the file that the package is using and the File permissions is the plugin that access to. (Don’t have to worry too much about the last two columns)

Main Loco Translate Screen

There’s also a plugin section:

Main Loco Translate Plugin

Let’s click on New language to start editing the file:

To add a new language

You will be brought to the ‘Initalize new translations in ‘Theme/Plugin name’ screen.

Creating a new PO File

Just select the locale that you would like to translate into and click on the ‘Start Translating’ button:

Choose the locale for translate

Next challenge to tackle: the Translate screen:

The translate screen

The langage that you are translating into:

This bar shows which locale you translating into

The source, or original, text, just click on one to start translating:

The source text

The source text box that displays the source text

Let’s translate this word into South African English!

The translation box where you put translations in

You can leave a comment if you wish.

The comments section of the Translation screen

Now that we have translated the theme, we can take a look at the toolbar:

The file options toolbar

Let’s break this toolbar down:

  • Save: Save your translations into a PO file
  • PO: Download your translations as a PO file
  • MO: Download your translations as a MO file
  • Sync: Syncs the PO file with your source code
  • Reset: Resets the translation that you have selected
  • Fuzzy: Adds a mark on translations that are not sure about (fuzzy) so that others can double check it
  • Filter translations: filter your translations
  • Help: Will take you to the support page on the WordPress Plugin Repository page

The settings page features some pretty advanced options. Only change them if you know what you are doing:

The plugin's setting page

Now that we have taken a tour of the Loco Translate plugin, hopefully you can use it to translate your themes and plugins or contribute to another!

If you have any questions, feel free to leave a comment below.

OUR SERVICE

Fan Commerce

ファンコマース

ファンとのダイレクトなコミュニケーションを実現して「感動体験」をビジネスに結びつけます。

Digital Marketing

デジタルマーケティング

未来を創造する価値ある「顧客体験」を実現する仕組みづくりを提案。