Here’s the situation: your site language is set to some non-English language, say French. You download and install The Events Calendar and see that there are some missing translations in the French translation files.

As a fluent French speaker, you know exactly what needs to be updated. The problem is that you’re not sure which files to update and are afraid of losing your work the next time the plugin updates.

That’s where Loco Translate comes into play. It’s a free WordPress plugin that makes editing translation files a lot easier by allowing you to both edit the files directly in the WordPress admin and preserve your edits should something happen.

The cool thing about Loco Translate is that it works with translations for themes, plugins, and even WordPress itself.

Here’s how to get started with Loco Translate. Go ahead and install it if you haven’t already, and we’ll walk you through some key features to help you manage and troubleshoot language translations for your WordPress site.

Locating translations

Assuming that Loco Translate is installed and active, here’s how to get to the translations for The Events Calendar.

If Loco Translate is installed, there will be an item for it in the WordPress admin menu.

Click that to get to the main plugin screen.

In many cases, you find what you want to edit from right here. But, if not, you can always use the options in the WordPress admin menu to search specifically by themes, plugins, and WordPress.

Let’s select “The Events Calendar” from the list of running plugins. That takes us to an overview page where we see the available languages included in the plugin and the level of completeness for each one.

It’s important to note that before searching for the strings, you’ll need to click on the SYNC button to ensure that Loco Translate is getting all of the strings from our .pot file. Every plugin update can include new strings and Loco Translate will not find them automatically, so always click on the SYNC button first when adding new translations.

Click on the sync button before tanslations

Editing translations

If we want to edit a French translation, then select it from the list of languages. Use the search bar if there are a lot to choose from.

That gets us to a new screen where we can see words and phrases on one side of the screen and the French translations for them on the other side of the screen.

The original text is on the left, and the translated text is on the right.

It is recommended to start by clicking on the “Sync” button at the top of the list to make sure that all strings are included.

Need to edit the translation for a particular bit of text? Select it and both the source text and the translated text will be displayed in the panels below the list of terms and phrases.

Change the translated text, then click the “Save” button. This saves your changes your updated translation will be used.

Relocating translations

Loco Translate might provide a pretty clear notice when editing a translation. It warns that your changes could be lost the next time The Events Calendar is updated on your site.

We release regular updates for all of our plugins, so it is very possible to accidentally lose your work when installing an update.

That’s why the “Relocate” section of Loco Translate’s editor is extremely handy. It creates a copy of the translation file and moves it to another location on your server to prevent it from getting overwritten when the plugin updates.

We recommend using the “System” option. This saves your work in a /languages folder that is safe from updates.

Restoring translations

Note, however, that the /languages folder is managed by WordPress. That means the file containing your work can still be lost when an update to WordPress is installed.

If that happens, navigate to the “Restore” section of the translation, select the backed up translation you want to revert to, then click the “Restore” button to activate it.

That restores your last saved version of the translation.

Fixing translations

Strings can change when a plugin (or theme, for that matter) receives an update. That means some of your translations might not work with the latest update because your translation (.po file) is no longer in sync with the blueprint (.pot file).

Loco Translate makes this a pretty simple fix. Open the translations for that language and plugin. Look for the “Sync” button above the list of strings and click it. You should receive a confirmation message that the synchronization was successful. Click on “Save” and, if your strings were translated correctly, they should show up properly on your site.

The success message at the top informs us of a successful synchronization.