{"id":118475,"date":"2013-07-17T11:34:05","date_gmt":"2013-07-17T15:34:05","guid":{"rendered":"http:\/\/wpmu.org\/?p=118475"},"modified":"2013-07-17T11:36:43","modified_gmt":"2013-07-17T15:36:43","slug":"how-to-change-the-default-language-in-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/how-to-change-the-default-language-in-wordpress\/","title":{"rendered":"How to Change the Default Language in WordPress"},"content":{"rendered":"<p>By default, WordPress is presented in U.S. English. But you can easily change that if you\u2019d prefer another language.<\/p>\n<p>Do you want users to see your WordPress site in Spanish, French, Chinese, Arabic, etc.?<\/p>\n<p>There are two ways you can go about this: either doing it the super-duper easy way or manually. We\u2019ll take a look at both ways.<\/p>\n<p>First up \u2013 the super-duper easy way.<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full-wide\"><\/div>\n<\/div>\n<h2><b>Translate WordPress with the Built-In Language Selector<\/b><\/h2>\n<p>WordPress sites have a very convenient built-in feature for changing the default language.<\/p>\n<p>Not only does WordPress allow you to change the language, but it also allows you to easily switch between languages in the blink of an eye.<\/p>\n<p>You can do it in 3 clicks or less.<\/p>\n<p>First, go to Settings &gt; General.<\/p>\n<figure id=\"attachment_194553\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-194553 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2013\/07\/wp-general-settings.png\" alt=\"WordPress General Settings screen.\" width=\"600\" height=\"656\" \/><figcaption class=\"wp-caption-text\">Go to the General Settings screen.<\/figcaption><\/figure>\n<p>Next, select a language from the <strong>Site Language<\/strong> dropdown menu. Over 120 languages are currently available.<\/p>\n<p>For this example, we&#8217;ll select German.<\/p>\n<figure id=\"attachment_194554\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194554\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2013\/07\/site-language.png\" alt=\"WordPress General Settings - Site Language\" width=\"600\" height=\"620\" \/><figcaption class=\"wp-caption-text\">Select a language.<\/figcaption><\/figure>\n<p>The language pack for the language you have selected will be automatically downloaded and installed into WordPress.<\/p>\n<p>Remember to save your settings.<\/p>\n<p>WordPress instantly translates your site into that language.<\/p>\n<figure id=\"attachment_194555\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194555\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2013\/07\/wp-translated-german.png\" alt=\"A WordPress Site translated into German.\" width=\"600\" height=\"622\" \/><figcaption class=\"wp-caption-text\">A WordPress Site translated into German.<\/figcaption><\/figure>\n<p>It\u2019s as easy as that and you can change languages as often as you like.<\/p>\n<h2><b>Manual Installation of Language Files<br \/>\n<\/b><\/h2>\n<p>First, you\u2019ll need to get the language pack of the language you want. You can <a href=\"https:\/\/make.wordpress.org\/polyglots\/teams\/\" rel=\"noopener\" target=\"_blank\">do that here<\/a>.<\/p>\n<p>For some languages, you will need to download the <em><tt>.mo<\/tt><\/em> language file. For other languages, a complete version of WordPress is available, and you will need to download that.<\/p>\n<p>If you don\u2019t want to manually install a complete version, you can dig into the files and simply upload the <tt>languages<\/tt> folder to your site. Or you can dig into <em>\u00a0<tt>\/wp-content\/languages<\/tt><\/em> folder and get the <em><tt>.mo<\/tt><\/em> language files.<\/p>\n<p>If you are working with individual <em><tt>.mo<\/tt><\/em> language files, you\u2019ll need to make a new <em><tt>languages<\/tt> <\/em>folder in your <em><tt>\/wp-content<\/tt><\/em> or <em><tt>\/wp-includes<\/tt><\/em> directory (note: that&#8217;s either one), and place that file there.<\/p>\n<p>Once you have that file uploaded, you\u2019ll need to go to the root of your installation and find your <em><tt>wp-config.php<\/tt><\/em> file. In that file, search for the following line:<\/p>\n<pre>define ('WPLANG', '');<\/pre>\n<p>Add the language to that line between the two quotation marks. The end of the file name will tell you the abbreviation you need to put in.<\/p>\n<p>In my example, I\u2019m installing a Spanish language pack from Spain. I look at my file, and I see the following:<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-ratio-large wp-image-118482\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2013\/07\/file-name-700x212.jpg\" alt=\"file-name\" width=\"700\" height=\"212\" \/><\/div>\n<\/div>\n<p>And so I put the \u201ces_ES\u201d in the line mentioned above so that it looks like this.<\/p>\n<pre>define ('WPLANG', 'es_ES');<\/pre>\n<p>The first two letters tell you the language (&#8220;es&#8221; in this case stands for espa\u00f1ol) and the last two letters tell you which version of Spanish. In this case, it\u2019s Spanish from Spain (Espa\u00f1a), and so there\u2019s an &#8220;ES&#8221; there. If we were to install the Spanish language pack from Peru, the abbreviation would be \u201ces_PE\u201d.<\/p>\n<p>You may also find <em><tt>.po<\/tt><\/em> files to download. These files allow you to add to or customize the translations.<\/p>\n<p>And that\u2019s it.<\/p>\n<h2><b>WordPress Translations<\/b><\/h2>\n<p>If you\u2019re interested in learning more about translating WordPress, you can <a href=\"http:\/\/codex.wordpress.org\/Translating_WordPress\" target=\"_blank\">do that here<\/a>.<\/p>\n<p>Also, check out our <a href=\"https:\/\/wpmudev.com\/blog\/ultimate-guide-wordpress-localization\/\" target=\"_blank\" rel=\"noopener\">Ultimate Guide to WordPress Translation and Localization<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want WordPress in Spanish, French, Chinese, Arabic, or some other language? Here how you do it. <\/p>\n","protected":false},"author":774618,"featured_media":122168,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[64],"tutorials_categories":[],"class_list":["post-118475","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-translation"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/118475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/774618"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=118475"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/118475\/revisions"}],"predecessor-version":[{"id":194556,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/118475\/revisions\/194556"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/122168"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=118475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=118475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=118475"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=118475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}