{"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\/ja\/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\/ja\/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 language or a custom language, changing the language c [&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,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"faq-category":[26137],"class_list":["post-2956132","faq","type-faq","status-publish","hentry","faq-category-how-to"],"spectra_custom_meta":{"_subscription_coupon_product_id":["0"],"inline_featured_image":["0"],"_wpml_word_count":["162"],"_views_template":["0"],"_edit_lock":["1694155710:76577"],"_edit_last":["538393"],"_wpml_media_featured":["1"],"_wpml_media_duplicate":["1"],"_alp_processed":["1693486344"],"_yoast_wpseo_content_score":["90"],"_oembed_4ba9cd2220e447854339cd9ed2c0e9c3":["{{unknown}}"],"_oembed_8f7288ccd1228336cd0cbad12f165507":["{{unknown}}"],"_wpv_contains_gutenberg_views":[""],"_wpml_location_migration_done":["1"],"_oembed_d4efa87b0e8cb39e3216e469b860b080":["<blockquote class=\"wp-embedded-content\" data-secret=\"YkdXIvihXK\"><a href=\"https:\/\/wpml.org\/documentation\/theme-compatibility\/go-global-program\/\">Go-Global Program<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Go-Global Program&#8221; &#8212; WPML\" src=\"https:\/\/wpml.org\/documentation\/theme-compatibility\/go-global-program\/embed\/#?secret=YkdXIvihXK\" data-secret=\"YkdXIvihXK\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>"],"_oembed_time_d4efa87b0e8cb39e3216e469b860b080":["1607520600"],"_oembed_6eeaaf76264d07834a5024ecc691d2d0":["<iframe title=\"Media Translation for WPML 4.0\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/8kvqMTy3r2g?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_6eeaaf76264d07834a5024ecc691d2d0":["1607520600"],"faq_order":["24"],"wpcf-faq-category":["6"],"_oembed_8f4dd281fde949aaaec897e32bbedb6b":["<iframe title=\"Doing a Test Translation with Translation Services\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ozBasV4sNCs?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_8f4dd281fde949aaaec897e32bbedb6b":["1609102692"],"_oembed_085e890236af876c824fa92e59328670":["<iframe title=\"Translating Menus in WPML\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aFQuEGQs19c?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_085e890236af876c824fa92e59328670":["1610603169"],"_yoast_wpseo_estimated-reading-time-minutes":[""],"_oembed_bbf56b1d4c25ce11481afba39f176f85":["<iframe title=\"Using WPML to translate content created with page builders\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/MSqNzrdPMkE?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_bbf56b1d4c25ce11481afba39f176f85":["1637768095"],"_yoast_wpseo_wordproof_timestamp":[""],"_yoast_wpseo_primary_faq-category":[""],"_uag_css_file_name":["uag-css-2956132.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:1:{i:0;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778186495\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Kruno Golubi\u0107","author_link":"https:\/\/wpml.org\/ja\/author\/kruno-g\/"},"uagb_comment_info":0,"uagb_excerpt":"Once you save the options for your site&#8217;s default&hellip;","_links":{"self":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/faq\/2956132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/users\/228164"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/faq\/2956132\/revisions"}],"predecessor-version":[{"id":14320691,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/faq\/2956132\/revisions\/14320691"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/media?parent=2956132"}],"wp:term":[{"taxonomy":"faq-category","embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/faq-category?post=2956132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}