{"id":6997,"date":"2011-03-15T11:55:47","date_gmt":"2011-03-15T11:55:47","guid":{"rendered":"http:\/\/wpml.org\/?p=6997"},"modified":"2011-03-15T11:55:47","modified_gmt":"2011-03-15T11:55:47","slug":"wpml-2-2-0-improved-translation-tools-1","status":"publish","type":"post","link":"https:\/\/wpml.org\/he\/changelog\/2011\/03\/wpml-2-2-0-improved-translation-tools-1\/","title":{"rendered":"WPML 2.2.0 &#8211; Improved Translation Tools (part1)"},"content":{"rendered":"<p><strong>We're ready with WPML 2.2.0. This release includes many new features, mainly aimed to make translation easier.<\/strong><\/p>\n<h2>True Incremental Translation<\/h2>\n<p>WPML 2.2.0 makes managing translations much easier than before. Now, when translators get update jobs, they can immediately see what's changed and update their work.<\/p>\n<p>When you use WPML's <a title=\"Using WPML\u2019s Translation Management\" href=\"https:\/\/wpml.org\/documentation\/translating-your-contents\/using-the-translation-editor\/\">Translation Editor<\/a>, you'll see a new link under each modified field that says <em>&quot;show changes&quot;<\/em>. Click on it to see what's changed in the original document.<\/p>\n<figure id=\"attachment_7016\" aria-describedby=\"caption-attachment-7016\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/diff_tool.png\"><img decoding=\"async\" class=\"size-medium wp-image-7016\" title=\"diff_tool\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/diff_tool-300x140.png\" alt=\"\" width=\"300\" height=\"140\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/diff_tool-300x140.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/diff_tool-150x70.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/diff_tool.png 932w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7016\" class=\"wp-caption-text\">Diff tool in the translation editor<\/figcaption><\/figure>\n<p>The left side is the previous version and the right side is the current one. Now, the translator can see exactly what's changed in the text and update the translation accordingly.<\/p>\n<p>You'll also find a 'copy from original' button next to each field.<\/p>\n<h2>Easier Multilingual Content Setup<\/h2>\n<p>When you're using custom post types, custom taxonomy or custom fields, you need to tell WPML what needs translation.<\/p>\n<p>Until now, all of this was done in one centralized page &#8211; <strong>WPML-&gt;Translation Management-&gt;Multilingual Content Setup<\/strong>.<\/p>\n<p>When you're using a whole lot of different custom data types, it's not always easy to identify exactly what you're looking for in this, rather large, page.<\/p>\n<p>We've added a <strong>Multilingual Content Setup<\/strong> section to the bottom of every <em>edit<\/em> screen.<\/p>\n<p>It looks just like the central setup screen, but includes only items that are relevant for the page you're editing. For example, our own custom <em>'download'<\/em> type has this setup box at the bottom.<\/p>\n<figure id=\"attachment_7018\" aria-describedby=\"caption-attachment-7018\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/local_mcs.png\"><img decoding=\"async\" class=\"size-medium wp-image-7018\" title=\"local_mcs\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/local_mcs-300x135.png\" alt=\"\" width=\"300\" height=\"135\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/local_mcs-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/local_mcs-150x67.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/local_mcs.png 464w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7018\" class=\"wp-caption-text\">Multilingual Content Setup at the Bottom of Edit Screens<\/figcaption><\/figure>\n<p>Now, you can easily choose the right setting for the custom type, any custom taxonomies and fields that you use.<\/p>\n<h2>Right-to-Left Editing<\/h2>\n<p>Texts in Arabic, Hebrew and Persian run from right to left (RTL). Until now, editing them in WPML's translation editor and string translation interface was a bit problematic.<\/p>\n<figure id=\"attachment_7020\" aria-describedby=\"caption-attachment-7020\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/rtl-editing.png\"><img decoding=\"async\" class=\"size-medium wp-image-7020\" title=\"rtl-editing\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/rtl-editing-300x115.png\" alt=\"\" width=\"300\" height=\"115\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/rtl-editing-300x115.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/rtl-editing-150x57.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/rtl-editing.png 683w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7020\" class=\"wp-caption-text\">Right-to-Left Editing<\/figcaption><\/figure>\n<p>This release adjusts the translation editor so that when you're translating between LTR and RTL languages (no matter the order), the translation fields always display correctly. This includes the text alignment and flow.<\/p>\n<h2>NextGen Gallery Support<\/h2>\n<p>This release includes all the new code that is needed to run <a href=\"https:\/\/wpml.org\/he\/announcements\/2011\/03\/multilingual-nextgen-gallery\/\">multilingual NextGen Galleries<\/a>.<\/p>\n<p>These changes are now part of WPML and will be part of the new release of NextGen Gallery as well. If you need it right away, grab the modified NGG code from our <a title=\"Multilingual NextGen Gallery\" href=\"https:\/\/wpml.org\/he\/announcements\/2011\/03\/multilingual-nextgen-gallery\/\">previous post<\/a>, or from the <a href=\"http:\/\/code.google.com\/p\/nextgen-gallery\/\">NGG development site<\/a>.<\/p>\n<h2>Translation Management Hooks<\/h2>\n<p>Some developers have asked for fine-grained control of how translated content is saved in the site. To support this, we've added several hooks and filters, which you can use to modify WPML's default behavior.<\/p>\n<p>Some applications include adjusting slugs of translations, automatically copying custom fields across translations, etc.<\/p>\n<ul>\n<li><em>icl_data_for_pro_translation<\/em> \u2013 filters the $data variable in ICL_Pro_Translation::send_post, used in the xml document that\u2019s uploaded to the server (structure can be seen in the attached file under Sent).<\/li>\n<li><em>icl_data_from_pro_translation<\/em> \u2013 filters the $translation var from ICL_Pro_Translation::add_translated_document (structure can be seen in the attached file under Received).<\/li>\n<li><em>icl_pre_save_pro_translation<\/em> (filter) that is applied to $postarr before wp_insert_post is called.<\/li>\n<li><em>icl_pro_translation_saved<\/em> (action) fired after the post is saved (post_id available as an argument).<\/li>\n<\/ul>\n<h2>What's Next?<\/h2>\n<p>As we complete each release, we start thinking about where to go next. In this case, it's pretty easy. There are several additional improvements that we're looking to include in the Translation Management module. These would allow to locate untranslated content faster and to maintain translations better.<\/p>\n<p><strong>I'll write more about it when we have something.<\/strong><\/p>\n<hr \/>\n<p><em>BTW<\/em>, have you noticed how fast WPML.org has become? We're using the great <a href=\"http:\/\/wordpress.org\/extend\/plugins\/w3-total-cache\/\">W3TC<\/a> plugin by <a href=\"http:\/\/www.w3-edge.com\/\">W3EDGE<\/a>. It's way more than a caching plugin. We're using the page cache, minify and CDN options and they're all working in harmony. It took about 3 hours to fully setup and configure and was worth every second of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We're ready with WPML 2.2.0. This release includes many new features, mainly aimed to make translation easier. True Incremental Translation WPML 2.2.0 makes managing translations much easier than before. Now, when translators get update jobs, they can immediately see what's changed and update their work. When you use WPML's Translation Editor, you'll see a new [&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-6997","post","type-post","status-publish","format-standard","hentry","category-changelog"],"_links":{"self":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/6997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/comments?post=6997"}],"version-history":[{"count":16,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/6997\/revisions"}],"predecessor-version":[{"id":7027,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/6997\/revisions\/7027"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/media?parent=6997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/categories?post=6997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/tags?post=6997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}