{"id":2956132,"date":"2018-11-30T13:13:56","date_gmt":"2018-11-30T13:13:56","guid":{"rendered":"https:\/\/wpml.org\/?post_type=faq&#038;p=2956132"},"modified":"2023-08-31T12:52:23","modified_gmt":"2023-08-31T12:52:23","slug":"how-can-i-assign-or-change-language-code-to-existing-content","status":"publish","type":"faq","link":"https:\/\/wpml.org\/zh-hans\/faq\/how-can-i-assign-or-change-language-code-to-existing-content\/","title":{"rendered":"Can I change the language code of existing content?"},"content":{"rendered":"<p class=\"lead\">Once you save the options for your site&#8217;s default language or a custom language, changing the language code requires you to follow a multi-step process. This involves adding a new language language, duplicating the content to the new language, and erasing the old content and language. It is not possible to change the language code directly. <\/p>\n<p><!---more---><\/p>\n<h2>What are the exact steps I need to take to change the language code for a specific language?<\/h2>\n<p>If you want to use a different code for a specific language, for example, <strong>jp<\/strong> instead of <strong>ja<\/strong> for Japanese, or if you want to change the language code for a specific language you have to do following:<\/p>\n<ol>\n<li><a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/language-setup\/editing-wpmls-languages-table\/\">Add or create the language<\/a> you need.<\/li>\n<li><a href=\"https:\/\/wpml.org\/documentation\/translating-your-contents\/displaying-untranslated-content-on-pages-in-secondary-languages\/#how-to-duplicate-pages-and-posts-in-bulk\">Bulk duplicate the content<\/a> to the new language from the <strong>WPML<\/strong> \u2192 <strong>Translation Management <\/strong>page.<\/li>\n<\/ol>\n<p>If needed you can also:<\/p>\n<ol>\n<li><a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/string-translation\/\">Export and import .po files<\/a> from the <strong>WPML<\/strong> \u2192 <strong>String Translation <\/strong>page.<\/li>\n<li>Completely <a href=\"https:\/\/wpml.org\/zh-hans\/faq\/how-to-completely-remove-a-language-from-your-site\/\">delete the old content and the old language<\/a> from your site.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Once you save the options for your site&#8217;s default [&hellip;]<\/p>\n","protected":false},"author":228164,"featured_media":0,"menu_order":70,"template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"faq-category":[26137],"class_list":["post-2956132","faq","type-faq","status-publish","hentry","faq-category-how-to"],"_links":{"self":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/2956132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/users\/228164"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/2956132\/revisions"}],"predecessor-version":[{"id":14320691,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/2956132\/revisions\/14320691"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media?parent=2956132"}],"wp:term":[{"taxonomy":"faq-category","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq-category?post=2956132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}