How to create a multilingual WordPress website

By default, WordPress does not come with features required to create a proper multilingual site, but G5Theme offers WordPress themes that all are compatible with multilingual plugins. If you want to build an e-commerce site that will serve a diverse community that speaks multiple languages, then you don’t have many choices. You can use free plugins such as Polylang, qTranslate etc or use a premium plugin like WPML.

We strongly suggest using WPML since it’s the most complete solution for creating a multilingual WP website.

Configuration

After installing and activating the WPML, then you should configure it, the wrong configuration can create many problems for your website so please configure it with caution. We suggest to read this article carefully and proceed with its instructions: How to Create a Multilingual WordPress Site with WPML

Also, you can check WPML official guide for language configuration: WPML Language Setup

Translating

After configuration, then you need to start translating your website contents. Please check the following articles for each section.

Translating Posts/Pages

Translating Categories/Tags/Custom Taxonomies

Translating Menus

Translating Widgets

Translating Strings

Anything that doesn’t fall inside posts, pages or taxonomy goes into String Translation. This includes the site’s tagline, general texts in Admin screens, widget titles and many other texts.

Language Switcher

After translating your website contents, then you should place a language switcher into your website so visitors can simply choose their desired language. Also, you may check language switcher options to achieve your desired style.

Here is our guide on how to translate language on our theme: https://support.g5plus.net/knowledge-base/how-to-change-language-in-g5theme-using-loco-translate-plugin/

Hopefully that this article could give you more details on how to create a multilingual site that used our premium WordPress themes. If you have any questions or concerns, don’t hesitate to let us know by leaving a topic in our support forum. Thank you very much!

 

How to change languages via po/mo file?

Very few developers develop their plugins and themes in a language different from English so you will have to translate the phrase in theme and plugins into many different languages by yourself, and I’ll explain to you how. There are two ways to do it.

– Directly within WordPress by using a localization plugin (such as Loco Translate plugin – that’s free and most of my customers used successfully). You can also consult our guide on How to Translate using LOCO Translate plugin
– On your PC/Mac, using Poedit. To change the value field of the theme via language file, you can do follow one of 2 methods below.

Method 1.

Edit .po/pot file(in directory languages) as the image below(root is my theme):

languages
– Rename file corresponding with your Locale here: https://make.wordpress.org/polyglots/teams/
(In this article I will get an example: change en_US.po to it_IT.po). View image:

choose-local
– Then download & install Gettext Translations Editor software(free) at https://poedit.net/wordpress
– Edit new file(it_IT.po) with software just installed.
– Change/add value as you want, then convert .po to mo file via http://po2mo.net/.
+Open http://po2mo.net/ choose .po file, click ‘Convert‘ button.

click-convert
   + Then download MO file after convert.
donwload-mo-local
The file downloaded has the name look like: abcdedg_it_IT.mo, change file name downloaded to “your_local.mo” file. Example: changed to it_IT.mo

Method 2.

Download and install software Gettext Translations Editor at https://poedit.net/wordpress then open/edit file .po/pot on the path as the image above(method 1).
After changed content/value, click Save:
– If exist po/mo files language as you want => it will override current.
– If not exist, do follow:

create-translation
After all, you will get file name look like: it_IT.mo

Last step for both mothed: 
Copy/upload .mo file up to languages directory(in my theme) on your server.

Note: to active your local language, you must go to Settings >> General menu, do follow:

choose-language-backend

 

Thanks
G5Theme