WordPress Tutorials

How to Translate WordPress Plugins in Your Language

It is well-known that WordPress is an open source platform offering users a number of types of plugins to enhance their WordPress. Facing hundreds of thousands of WordPress plugins developed by different people, have you ever thought about translating a WordPress extension in your own language? In fact, many plugins are completely transition-ready and they can be translated effortlessly by any user in the world.

In this guide, we are to address the methods of translating WordPress plugins in your language for beginners who have poor coding knowledge.

Why and When to Translate WordPress Plugins

As an open source platform, WordPress is of course available in different languages, and also it allows you to translate it into different languages. Usually, those most popular WordPress plugins are translation ready as well.

Therefore, you can create websites in different languages by using those plugins. From the other side, you can even assist these plugins’ developers by offering them translations in different languages. It can help many of other WordPress users to better use WordPress plugins to enhance their websites.

Now, you have understand how interesting and helpful to translate WordPress plugins in other languages. Let’s have a look at the different methods of easily translating WordPress plugins in your languages.

1: Help Translate WordPress Plugins in Your Language

The first method is easier as well as highly recommended for it can help you utilize the WordPress plugin in your own language as well as help other users apply the plugin in their own languages automatically.

There is a web-based translation functionality WordPress.org now hosts, and the functionality allows all users to submit transitions for any WordPress plugin that is hosted on the WordPress.org.

If you go to browse a plugin page, then you will find it offer you a notification that requires you to contribute translations in your language for this plugin.

Occasionally, you may not receive the notice, so if you have the need, you can just directly search for Translating WordPress websites for this plugin.

If that, you need to manually choose your language. Then, you can start translation of the plugin in the language just chosen.

There will be a user interface which is very simple including the test as well as text area for offering translations for specific terms or words.

2: Translate WordPress Plugins for Your Website

The method above is to contribute your translation for WordPress plugins for both you and other users, and this one is to enable you translate WordPress plugins for your own website’s needs, meaning the plugins will be translated inside of your WordPress dashboard. Once you perform program, your translation will instantly take effect on your site.

To enable this method, firstly you have to install as well as activate a plugin named Loco Translate. For installing a plugin in WordPress, you can check out our How to install WordPress plugin.

After activating the translation plugin, you need to click on “Loco Translate” from WordPress Dashboard’s “Plugins” page, and in the translation plugin’s page, you can directly start to translate the plugins you need.

Here you can see a plugin list which includes all the plugins now installed on your site. No matter which plugin you are desired to translate, you can just click on it. After selecting the target plugins, the screen will show you a language list which the target plugin currently has. Besides, you can find the translation status behind each language.

You can check out the language list and see whether the language you need is in the list. If it is, then you can just press the language; otherwise, you need to click on the button “New Language” at the top.

Then, you can choose new language you need on the “New Language” page where you can see two language options available: “WordPress language” and “Custom language”. The first option can directly start to use the file if there is a user setting this language for your WordPress admin area.

Next, it is to help you select the location for storing your translation files. Normally, loco Translate recommends you saving translation files in its own folder. Of course, you can change it to other locations you want to store the translation files such as the plugins’ language folder you just translated and WordPress languages folder. After completing these settings, you can move forward by clicking on the button of “Start translating”.

See, it is really easy and simple to translate a plugin in your for you own site within WordPress Dashboard by taking advantage of other easy-to-use and free translating tools. Now, you can get the translation text in translation filed below source text. You can translate these source text string by string.

Note you need to press “Save” button to save your translations.

3. Translate WordPress Plugins on Your PC

Besides the two methods above, there is another one you can use to translate the target WordPress plugins on your own PC by utilizing gettext translation applications. The method is very convenient for you to submit translations to the plugins’ authors so that they can integrate different language support in these plugins; language folders.

To translate plugins on your PC you need firstly download the target plugins on your PC. Then, extract them from their zip files by double clicking. After that, you can open these plugins’ folders as well as locate their languages folders. In these folders, you can find each plugin’s language folder has a .pot file which is translation template files which you can use to translate these plugins.

However, if you can find the .pot file or any languages folder of a plugin, then you should immediately realize that the plugin probably isn’t translation ready. When you encounter the case, you just need to contact the author to ask whether he/she can make the plugin translation ready. Once you get the .pot file, then you can start to translate the plugin in your languages.

Firstly, download as well as install Poedit application on your PC. Poedit is actually a translation application for both Windows and Mac free of charge.

After the installation, you can open the translation application. A wizard will appear to ask you to choose an option. There is an advanced option for the pro edition of the translation application, allowing you to translate a WordPress theme or plugin. If you are not using the pro version, then you need to choose to “Create New Translation”.

Then, you will be required to choose the POT file of the target plugin. Then, Poedit will enable you to choose your language for this translation.

You can simply choose the language in drop-down list or just type your language in the blank field and then click. Then, click on “OK”.

Then, Poedit will display translation interface where showing you the string list. You just need to click on a string and offer your translation below.

After you fulfill all translation, then you can save your translation and export it. For this, you need to visit “File”, right click on it and “Save” it. As you save the file, you also need to name the file after your language name along with country code, such as ch_CH for Chinese and China.

Once you save the file, Poedit will locate your translation in .mo and .po files by default. So, to use your translation, you have to place these translation files in the plugin’s language folder.

Now, we have introduced three different types of methods of translating WordPress plugins in your languages. All methods are simple and you just need to move on with instructions. We sincerely hope these methods can help your in WordPress plugin translation. You can go to our WordPress Tutorials for further learning, or we welcome you to leave your questions related to WordPress in comments, we will try our best to answer them.

Leave a Reply

Your email address will not be published. Required fields are marked *