{"id":1428110,"date":"2017-11-12T10:13:17","date_gmt":"2017-11-12T10:13:17","guid":{"rendered":"https:\/\/wpml.org\/?p=1428110"},"modified":"2017-11-12T10:13:17","modified_gmt":"2017-11-12T10:13:17","slug":"wpml-3-9-beta-makes-content-duplication-a-thing-of-the-past","status":"publish","type":"post","link":"https:\/\/wpml.org\/vi\/changelog\/2017\/11\/wpml-3-9-beta-makes-content-duplication-a-thing-of-the-past\/","title":{"rendered":"WPML 3.9 Beta Makes Content Duplication a Thing of the Past"},"content":{"rendered":"<p class=\"lead\">We just released a first beta for WPML 3.9. This beta includes a new translation mode which completely removes the need to duplicate content, when you need it to display when not translated.<\/p>\n<p>Let&#8217;s say you&#8217;re developing a listing site that includes English, French and Italian. You probably want new listing to appear in all the site&#8217;s languages. When you translate a listing, the translation should replace the untranslated-original.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/no-clones-300x223.jpg\" alt=\"\" width=\"300\" height=\"223\" class=\"alignright size-medium wp-image-1428117\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/no-clones-300x223.jpg 300w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/no-clones-150x112.jpg 150w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/no-clones.jpg 729w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Until now, to do this with WPML, you&#8217;d have to duplicate the listings into all the site&#8217;s languages. Doable, but not fun.<\/p>\n<p>WPML 3.9 will include a new translation mode, which allows to display content in all the site&#8217;s languages, without duplicating it.<\/p>\n<p>While the basic idea is simple, making it happen is a little more tricky. When you enable the new translation mode, WPML does some magic behind the scenes:<\/p>\n<ul>\n<li>If content is translated, the translation appears, otherwise the original displays.<\/li>\n<li>All links on the page include the current language, so clicking on untranslated content doesn&#8217;t move you to the site&#8217;s default language.<\/li>\n<li>Only the &#8216;inside&#8217; of the page shows in the original language. Navigation, sidebars, footer, etc. will appear in the current language.<\/li>\n<li>The same content appears in several languages (looking like it&#8217;s duplicated), but all these aliases point to the original as canonical (so as not to confuse Google).<\/li>\n<\/ul>\n<p>Have a look at this clip to see how it works:<\/p>\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/eiPUIuELo2A?feature=oembed\" frameborder=\"0\" gesture=\"media\" allowfullscreen><\/iframe><\/div>\n<p>This translation mode makes it a lot easier to run multilingual e-commerce, listing, directory and classifieds sites. In fact, any site that has a lot of content, which you don&#8217;t want to necessarily translate will benefit from this new translation mode.<\/p>\n<h2>How to test<\/h2>\n<p>To try this, you need to download WPML 3.9 beta. Log-in to your <a href=\"https:\/\/wpml.org\/account\/\">WPML account<\/a>, click on <strong>Downloads<\/strong> and select the <strong>beta channel<\/strong>. You will need WPML core and the rest of WPML&#8217;s components from this beta.<\/p>\n<p>It&#8217;s a beta and not yet ready for production sites, so please only install it on development sites.<\/p>\n<p>Then, in your site, go to <strong>WPML-&gt;Translation Management-&gt;Multilingual Content Setup<\/strong> and scroll down to the <strong>Post Types Translation<\/strong> section.<\/p>\n<figure id=\"attachment_1428125\" aria-describedby=\"caption-attachment-1428125\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/post-type-translation.jpg\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/post-type-translation-300x205.jpg\" alt=\"\" width=\"300\" height=\"205\" class=\"size-medium wp-image-1428125\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/post-type-translation-300x205.jpg 300w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/post-type-translation-150x103.jpg 150w, https:\/\/wpml.org\/wp-content\/uploads\/2017\/11\/post-type-translation.jpg 671w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1428125\" class=\"wp-caption-text\">The new translation option in WPML 3.9<\/figcaption><\/figure>\n<p>The new mode is called <strong>&#8220;Translatable &#8211; use translation if available or fallback to original language&#8221;<\/strong> (not very short, but hopefully clear).<\/p>\n<p>If this mode is grayed out and you cannot select it, there&#8217;s a configuration file that hard-sets a different translation mode. In the production WPML release, you&#8217;ll be able to freely switch from the old &#8220;Translated&#8221; mode to the new one. As it&#8217;s not yet ready in this beta, let&#8217;s use a workaround.<\/p>\n<p>Go to <strong>WPML-&gt;Translation Management-&gt;Custom XML Configuration<\/strong> and paste an XML snippet to override the setting:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;wpml-config&gt;\r\n    &lt;custom-types&gt;\r\n        &lt;custom-type translate=&quot;1&quot; display-as-translated=&quot;1&quot;&gt;CPT-SLUG&lt;\/custom-type&gt;\r\n    &lt;\/custom-types&gt;\r\n&lt;\/wpml-config&gt;\r\n<\/pre>\n<p>Replace &#8220;CPT-SLUG&#8221; with the actual slug of the post-type that you want to control.<\/p>\n<p>Right now, taxonomies are not fully supported yet. It&#8217;s almost there and we&#8217;ll have full support for taxonomies in the production release.<\/p>\n<h2>There&#8217;s more &#8211; sensible workflow when updating page-builder content during translation<\/h2>\n<p>Another significant update coming in WPML is a workflow change for translating page-builder content. Until now, if you update the original (created with a page builder) while translation was in-progress, you&#8217;d have to jump through hoops to get things working.<\/p>\n<p>WPML 3.9 corrects the workflow. If you create content, start translating and then edit the original, you will see that it &#8220;needs translation&#8221;. When you translate again, the partial translation that you already did will appear in WPML&#8217;s Translation Editor and you can continue with the parts that were not complete or are new.<\/p>\n<h2>Feedback?<\/h2>\n<p>We&#8217;re about 2 weeks from closing the development on WPML 3.9. We&#8217;d love your feedback about the new translation mode. If you&#8217;re planning to build e-commerce, listing or classified sites that can use this mode, please try this beta. We want to make sure that it works with your theme and with other plugins that you&#8217;re using. If not, we still have time to make adjustments and to work with theme authors on compatibility.<\/p>\n<p>If you&#8217;re using a page builder, try the new &#8220;update while translating&#8221; and see if this works as you expect it.<\/p>\n<p>To report problems, best to create a new thread in the <a href=\"https:\/\/wpml.org\/forums\/forum\/english-support\/\">technical support forum<\/a> and leave a comment here with a brief description and a link to the thread.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We just released a first beta for WPML 3.9. This beta includes a new translation mode which completely removes the need to duplicate content, when you need it to display when not translated. Let&#8217;s say you&#8217;re developing a listing site that includes English, French and Italian. You probably want new listing to appear in all [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","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":""},"categories":[48],"tags":[],"class_list":["post-1428110","post","type-post","status-publish","format-standard","hentry","category-changelog"],"_links":{"self":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1428110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/comments?post=1428110"}],"version-history":[{"count":9,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1428110\/revisions"}],"predecessor-version":[{"id":3262001,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1428110\/revisions\/3262001"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/media?parent=1428110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/categories?post=1428110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/tags?post=1428110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}