Back to contents

Adding localization for Crocoblock products

From this tutorial you will find out how to add localization for Crocoblock products. If you wish, you can create localization of Crocoblock products by yourself.

Crocoblock products already have localization files in Portuguese and Russian languages, and there are more to come.

So, in case you’re more comfortable at using Crocoblock in one of the languages mentioned above, or you want to create a different localization yourself, keep reading this tutorial to explore the process of implementing localization files!

Localization Tools. Language sources

You can create your own localization with a free Poedit program or, alternatively, using a free, user-friendly Loco Translate plugin.

Step 1 — To access the files that contain the sources for translation you need to navigate to the product which you want to translate to your language and open languages folder. Here you’ll find the .pot file which you need to translate.

Select the product for translating

Step 2 — Run the Poedit program on your computer and open the .pot file with the source text. Translate the strings available there from English to your language.

Step 3 — Save the newly created files to your hard drive, and don’t forget to mark the language in which the translation files are written. E.g., the localization file for JetEngine in German should look like jet-engine-de_DE.po.

Adding the localization files to the website

After the translation is created you need to add the file with the localization to your site. To do it, first, access your server using FTP client.

Step 1 — Open the directory where you’ve installed WordPress and here navigate to wp-content folder. You need to create a new folder named languages inside it. Here you should add the localization of the theme (e.g., Kava theme).

Work with WordPress directory

Step 2 — To add the localization files of the plugins create the plugins folder inside the languages directory (the full path should look like wp-content/languages/plugins) and here upload the localization

Adding a localization file to the language directory

Applying localization files to the site

Step 1 — Open WordPress Dashboard and here proceed to Settings > General block. Here specify the website’s language.

Settings General block

Step 2 — Navigate to the Plugins directory in the WordPress Dashboard. Click the Add New button, search Loco Translator plugin in the plugin search box and click the Install Now button.

Plugins block in WP Dashboard

Step 3 — Don’t forget to Activate the plugin!

Step 4 — As a result, you can see the Loco Translate block on the left-hand panel of the Dashboard. Click it.

Step 5 — Then, select the plugin to which you’ve added the localization.

Selecting the plugin for translation

Step 6 — Here you can configure some settings and set the path to the localization files now uploaded to your server.

Setting the path to the localization files

Good work! Feel free to add the localization to any product at Crocoblock and create translations in the language you know.

We hope this makes your life easier while using Crocoblock products.