How to Translate a WordPress Plugin in Your Language

Do you want to translate a WordPress plugin in your language? Many WordPress plugins are fully translation ready and can be easily translated by anyone in the world. In this article, we will show you how to easily translate a WordPress plugin in your language… Read More »

The post How to Translate a WordPress Plugin in Your Language appeared first on WPBeginner.

Do you want to translate a WordPress plugin in your language? Many WordPress plugins are fully translation ready and can be easily translated by anyone in the world. In this article, we will show you how to easily translate a WordPress plugin in your language (without knowing any code).

How to translate a WordPress plugin

Why and When You Should Translate WordPress Plugins

WordPress itself is available in many languages and can be translated into other languages as well. As a user you can use WordPress in your own language, and you can even create multilingual websites using plugins.

Most top WordPress plugins are also translation ready. You can help plugin authors by contributing translations in other languages. This will help thousands of other WordPress users as well.

Note: If you’re interested in translating any of our plugins like WPForms and MonsterInsights, then we will be happy to offer you a complimentary license of our Pro version in exchange. Simply reach out to us via our contact form to get started.

That being said, let’s take a look at how to easily translate WordPress plugins in your language.

Method 1: Helping Translate a WordPress Plugin in Your Language

This method is easier and highly recommended because it not only helps you use the plugin in your language, but it also helps other users automatically use the plugin in their language.

WordPress.org currently hosts a web based translation tool that allows anyone to contribute translations for WordPress plugins hosted on WordPress.org.

When you visit a plugin page, you will see a notification asking for your help in translating the plugin in your language.

Help translate plugin notice on WordPress.org

If you do not see this notice, then you can also search the Translating WordPress website for the plugin.

You will be asked to select your language, and then you can start contributing.

Languages to translate

On the translation screen, you will see a simple user interface with source text and text area to provide translation for specific words.

Method 2: Translate a WordPress Plugin For Your Own Website

This method allows you to translate a WordPress plugin for your own use. You will be translating the plugin inside your WordPress admin area, and your translations will immediately take effect on your website.

First thing you need to do is install and activate the Loco Translate plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Loco Translate » Plugins page to start translating your plugins.

Translating WordPress plugins using Loco Translate

You will see a list of all plugins currently installed on your website. You need to click on the plugin that you want to translate.

On the next screen, you will see a list of languages available for the plugin along with the translation progress status for each language.

Language selection in Loco Translate

If the language you want to translate in is listed there, then you need to click on it. Otherwise, you can click on the ‘New language’ button at the top.

Adding a new language in Loco Translate

On the new language page, first you need to choose your language. You have two options available. The first option is WordPress language. This option will automatically start using this language file if a user sets the WordPress admin area to be in this language. The second option is to use a custom language.

Next, you need to choose where you want to store the translation files. By default, Loco Translate will recommend saving the translation file in its own folder. You can change that to save translation files in WordPress languages or plugin’s own languages folder.

Once you have configured your settings, click on the start translating button to continue.

Translating a plugin is really simple. You will see the source text and below it you will see the translation field.

Translating plugins in Loco Translate

Simply enter your translation for the source string and then select the next string to translate.

Don’t forget to click on the save button to store your progress.

Method 3. Translate a WordPress Plugin on Your Computer

You can also translate a WordPress plugin on your computer using gettext translation apps. This is convenient, and you can also submit your translations to plugin authors, so they can include it in their plugins.

First you need to download the plugin you want to translate on your computer. Next, you need to double click the plugin zip file to extract it.

After you have extracted the file, open the plugin’s folder and locate the languages folder. Inside it, you will find a .pot file. This is the translation template file that you will need to translate the plugin.

Translation template file

If the plugin doesn’t have a .pot file or a languages folder, then it is most likely not translation ready. In that case, you can contact the plugin author, and ask if they have any plans to make their plugin translation ready.

Once you have the .pot file, you are ready to translate the plugin in any other languages you want.

First, you need to download and install the Poedit app on your computer. Poedit is a free translation app for Mac and Windows.

After you have the app installed, go ahead and open the app. You will see a wizard asking you to select an option. If you are using the pro version of the app, then you can select translate a WordPress plugin or theme. Otherwise, you need to select ‘Create new translation’ option.

Create translation

You will be asked to select the plugin’s POT file. Once you select the file, Poedit will ask you to select the language of the translation.

Choose language for your translation

Simply type the language name or select from the drop down menu and click on the OK button.

Poedit will now show the translation interface. You will see the list of strings available. All you have to do is click on a string to select it and provide a translation.

Translating WordPress plugins with Poedit

Once you have completed the translation, you are ready to save and export it. You need to go to File » Save and name your file after the language name and country code e.g. fr_FR for French and France, en_GB for English and Great Britain.

Poedit will save your translation in .po and .mo files. You need to place these files in your plugin’s languages folder to start using them right away.

We hope this guide helped you learn how to translate WordPress plugins. You may also want to see our list of best WordPress translation plugins for your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Translate a WordPress Plugin in Your Language appeared first on WPBeginner.

How to Add Hreflang Tags in WordPress

Do you want to add hreflang tags in your WordPress posts and pages? If you publish content in multiple languages or for different regions, then hreflang tag helps you improve SEO for those regions and languages. In this article, we will show you how to… Read More »

The post How to Add Hreflang Tags in WordPress appeared first on WPBeginner.

Do you want to add hreflang tags in your WordPress posts and pages? If you publish content in multiple languages or for different regions, then hreflang tag helps you improve SEO for those regions and languages. In this article, we will show you how to easily add hreflang tags in WordPress without writing a single line of code.

How to add hreflang tags in WordPress

What is hreflang tag?

Hreflang tag allows you to tell search engines which page to show for a particular region and language. You can also use it to define other variations of the same content in different languages.

Here is how a hreflang tag implementation looks like in plain HTML.

<link rel="alternate" href="example.com" hreflang="en-us" />
<link rel="alternate" href="example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="example.com/pt/" hreflang="pt-pt" />

The hreflang tag is a combination of the language code and the region code. For example, en-us for English and the United States, fr-fr for French and France, and so on.

WordPress is available in more than 60 languages, and you can use WordPress in your own language.

Many WordPress site owners target users in different regions and languages. Some do that by creating multilingual websites, while others do that by offering some content in other languages.

Search engines can easily detect the language of a page and automatically match it to the language settings on user’s browser. However, your pages may still be competing with each other in the search results which may affect your site’s SEO.

You can implement hreflang tags to fix that. Let’s see how to easily add hreflang tags in WordPress.

Method 1: Add hreflang Tag in WordPress Using a Multilingual Plugin

The best approach to building a multilingual WordPress site is by using a multilingual plugin. A multilingual WordPress plugin allows you to easily create and manage content in multiple languages using the same WordPress core software.

These plugins will automatically take care of all technical things such as the hreflang tag, so you can focus on creating content.

We recommend using Polylang. It is a free WordPress plugin and comes with a very powerful and easy to use interface to manage multilingual content. For detailed instructions, see our guide on how to how to easily create a multilingual WordPress site.

Adding languages in Polylang

Another popular option is WPML. It is a premium WordPress plugin with an easy to use interface to create multilingual content on your website. For step by step instructions, see our guide on how to create a multilingual WordPress site with WPML.

After you have created some posts or pages in multiple languages, you need to visit them in a new browser window. Right click and select ‘View Page Source’ from your browser menu.

This will open the source code of the post or page. Now you need to look for hreflang tag to verify that it is working properly. You can also use CTRL+F (Command+F) keys to find the hreflang tag.

Method 2: Add Hreflang Tags in WordPress Without Using a Multilingual Plugin

This method is for users who are not using a multilingual plugin to manage translations on their websites.

First thing you need to do is install and activate the HREFLANG Tags Lite plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will add a new menu item labeled HREFLANG in your WordPress admin menu. Clicking on it will take you to the plugin’s settings page.

hreflang tag plugin settings

Select the post types where you’d like to enable the plugin and then click on the save changes button to save your settings.

Next, you need to edit the post or page where you want to add the hreflang tag. On the post edit screen, you will notice a new metabox labeled HREFLANG tags.

Adding hreflang tags using a plugin

First you need to add the URL of the post that you are currently editing and then select its language. After that you need to click on the plus button to add URLs of other variations of the post and their language.

Once you are done, click on save or update button to save your post.

You can now visit your post in a browser window and view its source code. You will see the hreflang tag added to your post.

We hope this article helped you learn how to easily add hreflang tag to your WordPress site. You may also want to see our step by step WordPress SEO guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Hreflang Tags in WordPress appeared first on WPBeginner.