How to Change the Default WordPress Language

WordPress is by far the most popular blog management platform.. The main goal of WordPress is easy customization.. Another feature WordPress is loved for is the ability to blog in your own language.. If you have been using WordPress for a long time and after creating the site you want to change the language of the CMS admin panel, then with a few simple steps you can do it.

Step 1: Downloading language files

We find the language you need in the list of all engine locations and download it. See language files here:

https://codex.wordpress.org/WordPress_in_Your_Language

Sample Language Files:

zh_CN.mo“- Chinese

fr_FR.mo“- French

de_DE.mo“- Deutsch

en_US.mo“- American English

en_GB.mo“- British English.

First two small characters (‘de’ for Deutsch) refers to the ISO-639 code language. The second part of the DE file name is the code for the country to which the ISO-3166 language file belongs. (for German _DE in the example). In this way, Deutsch / Deutsch . .mo the file will be named de_DE.mo. Another example, line en_US.mo stands for language English, and the country is USA.

Step 2: Copying language files, related to installing WordPress

As soon as you download all the correct and necessary .mo files to your computer, create a folder languages in your active theme folder and upload your language files to it.

Step 3: Change WP-config.php

After copying files, you have to change wp-config.php. Find this file in your WordPress installation root directory and open it in a text editor. I think you already know that this file contains all the settings, which allows you to connect to the database. In addition, the file wp-config.php can configure other settings in WordPress, for example, specify which language should be used by default, with a simple setup:

This setting can be specified before DB_NAME, but only if there is no wp-config.php. If the setting is specified, then you can just change its value to the one you need.

After making changes, save the file and upload it to the webserver. That's all, I myself use this code often, decided to write, maybe it will be useful to someone.


Купить хостинг WordPress
/* WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

2 Responses

  1. Sergey Biryukov says:

    This setting can be specified before DB_NAME

    Why before DB_NAME, if all distributions and assemblies already have this constant below, before WP_DEBUG? It needs to be changed there..

    If notifications of the Notice type are enabled in the PHP settings, then a double definition of a constant will lead to an error: «Notice: Constant WPLANG already defined».

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal