WordPress comes with an amount of great benefits. One of them is the simple fact is fully translated into over 65 languages, and it can be adjusted to your language’s characteristics as well. We know that this is important since your audience might be pretty narrow (e.g. Spanish natives).
You should know that changing the website language from the Dashboard area is not enough. Your website’s structure is formed of different parts of posts, pages, menus or widgets. The content of those sections can be added directly to your language. However, there are strings attached, both from the theme and plugins, that you need to translate.
Let’s take the following scenario: you have a food blog, and at the end of each article you can have a Read more call to action. Those specific words should be translated into your native language in order to facilitate access.
The .PO file includes the original texts and the translations in two columns. The .MO file incorporates the exact same contents as PO file. Keep in mind that the two files differ in their format. While a PO file is easy for humans to read, MO files are compiled and very easy for computers to read. Nonetheless, WordPress gets translations from .MO files.
Here are the steps you have to take in order to translate your website:
- Change the language by going to Settings » General » Site Language field;
- Go to this link;
- Select the theme that you are using;
- Click on the language you would like to translate your website;
- You can suggest a new translation for any of the English original strings, seen on the left. Just click on Details button from the end of the line and add your suggestion;
- Once you finished your translation, go to the bottom of the page and select to Export all current as Portable Object Message Catalog (.po);
- You need to export one more file, the Machine Object Message (.mo), the same way you did on step 6;
- Go to this link;
- Find the WP Locale for the language you want to translate your website into.
- Rename both PO and MO files this way: themename-locale.po and themename-locale.mo. For example, if the theme is called Julia and you want to translate it in French, your files will be called julia-fr_FR.po and julia-fr_FR.mo;
- Upload the translation files, through FTP:
- The theme translation files need to be added to wp-content/languages/themes folder;
- The plugins translation files need be added to wp-content/languages/plugins folder.
Are your themes compatible with WPML?
Yes — here is the official list of WPML certified themes.