For English speakers, setting up and setting up English is a piece of cake. But what about people for whom English is a second language or who don't speak at all?
About 30.000 people from 178 countries took part in the WordPress survey this year, it follows that the vast majority of users outside of the United States are using WordPress. And it makes sense that these people want to use WordPress in their own language.
In this tutorial, I will show you how to set up your WordPress dashboard to translate it into another language other than English.
This article should be considered as an update Of this tutorial, For those who want to use the WordPress dashboard in multiple languages.
First steps
There are three types of files used in the framework:
- POT (Portable Object Template) files that contain the text ready for translation;
- PO (Portable Object) Files that contain the translated text; and
- MO (Machine Object) Of the files, which are PO files converted into a machine-readable format.
To use WordPress in your target language, you need to check if your language is available. You can do this check From this page.
For Danish, Polish, Japanese and other languages ​​they are fully translated and available. So all you need to do is download and install these versions just like you would any version of WordPress.
For other languages, you will need to go through the WordPress localization repository to find your target language. The directory is a subversion directory where the official WordPress translations are maintained.
Once you have found your language in the repository, download the .mo file. You will then need to use an FTP client on your WordPress site and download the file to / Wp-content / languages ​​/ OU / Wp-includes / languages ​​/
If you don't already have a languages ​​folder in one of these directories, you will need to create one. Once you've done that, you need to tell WordPress to use the language file.
Open the file wp-config.php located at the root of the WordPress installation and add the following code:
Define ('WPLANG', 'zh_CN');
This line tells WordPress to use Chinese for China, so you can override "Zh_CN" with your specific language and the code of your country.
You can find your language and country codes on the site GNU. Once you update your wp-config.php file, your WordPress dashboard should start using your chosen language. Translations can only be applied to your dashboard, not your " frontend ". Here are others Tricks which may be of interest.
How to translate a WordPress theme or plugin
How to create a multilingual blog
What if WordPress is not available in my language?
Unfortunately, WordPress is not available in all languages. The location repository is updated by volunteers who contribute to WordPress.
If you are a multilingual and want to put your translation skills at the service of the community, Why not get involved ? Log on to WordPress.org, and show how you can help.
Are you using the WordPress dashboard in a language other than French? Do you speak other languages ​​than French? Tell us in your comments.