{"id":362,"date":"2020-09-21T16:35:38","date_gmt":"2020-09-21T16:35:38","guid":{"rendered":"http:\/\/oweb.babelos.net\/?p=362"},"modified":"2020-09-21T16:35:38","modified_gmt":"2020-09-21T16:35:38","slug":"how-to-handle-tags-in-translation-workspace-xliff-editor","status":"publish","type":"post","link":"https:\/\/oweb.babelos.net\/?p=362","title":{"rendered":"How To Handle Tags in Translation Workspace XLIFF Editor"},"content":{"rendered":"\n<p>While translating on the XLIFF Editor, you might encounter tags. Tags are elements that confer certain properties on a piece of text. Usually used in html, programming, etc. Tags can make text bold\/colored, etc. when the text is rendered in final format.<\/p>\n\n\n\n<p>In our work, we need to keep the tags in their appropriate positions while translating. This document shows how to use tags in XLIFF Editor.<\/p>\n\n\n\n<p>I open a file in XLIFF Editor. This is a segment that has tags (see image below):\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1025\" height=\"464\" src=\"http:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image2.png\" alt=\"\" class=\"wp-image-363\" srcset=\"https:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image2.png 1025w, https:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image2-300x136.png 300w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" \/><\/figure>\n\n\n\n<p>The tags are the red text. They cannot be translated, only inserted in appropriate positions in the translation.<\/p>\n\n\n\n<p>You can see the tags are numbered (the blue superscript at the end of the tag is the tag number).<\/p>\n\n\n\n<p>Some tags are standalone tags (e.g. tag 4 in our sample segment), while some are tag pairs \u2013 they have opening and matching closing parts (e.g. tag 1, tag 2, tag 3 in our sample segment).<\/p>\n\n\n\n<p>You can also see tag 1 surrounds the first text &#8220;<em>Your Content<\/em>&#8221; and tag 2 surrounds the second text &#8220;<em>Your Content<\/em>&#8221; <em>Tag 4<\/em> is also surrounded by tag 3.<\/p>\n\n\n\n<p><strong>Inserting Tags: <\/strong>To insert a tag in an XLIFF Editor target segment, click on the <strong>Tags<\/strong> menu item, and select one of the Insert options (see them in image below underlined red):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"463\" src=\"http:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image4-1024x463.png\" alt=\"\" class=\"wp-image-364\" srcset=\"https:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image4-1024x463.png 1024w, https:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image4-300x136.png 300w, https:\/\/oweb.babelos.net\/wp-content\/uploads\/2020\/09\/image4.png 1038w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Insert All Tags:<\/strong> This copies all the tags in the source directly into the target.&nbsp; If you do this, then you can try to fit the text translations into the appropriate positions in the tags<\/p>\n\n\n\n<p><strong>Insert Tag by Id\u2026:<\/strong> Clicking this brings up a pop-up where you can put in the tag ID you want to insert, which is the tag number, so you can place your cursor at the desired position in target, and then insert the required tag<\/p>\n\n\n\n<p><strong>Insert Tag: <\/strong>Clicking this brings up a set of numbers 1 to 10 which can be clicked on to insert the corresponding tag number. Clicking 1 inserts tag 1, 2 inserts tag 2 and so on.<\/p>\n\n\n\n<p>Note that to insert tag pairs which surround text, select the text (not click inside \u2013 select the whole text that the tag should surround), then using one of the insert options, insert the required tag number, it will insert around the text since the whole text is selected.<br><br>One other way to handle tags is to copy the whole source to the target.\u00a0 You can use the <strong>Copy Source <\/strong>option in the <strong>Translation <\/strong>menu, <strong>Alt+ Insert<\/strong>, or the copy source to target icon (circled red in image below). If you copy the source to the target, then you can overwrite the source text with the translation, leaving the tags in their places.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/o7MBzApGqeIc4LO_KoIAiUHIfLaSMHjvyJR2_-44pH4P0_QCd7tYcJZFI8T-ttUpRlyMUTu4_8jylrLTv6v0csjenZ3Rt8x1HN6kGftzYhLQrpbFbZ62Hde3ZapKaTFWMCc36SM\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Deleting Tags<\/strong><\/p>\n\n\n\n<p>Sometimes you might need to delete tags in translation segment, maybe you want to change the position, etc. By default, they would not delete. To enable deleting of tags, you need to \u201cunprotect the tags\u201d. Do this by unchecking \u201c<strong>Protect Tabs<\/strong>\u201d option in the \u201c<strong>Tags<\/strong>\u201d menu. Click it so the check mark goes away. After that, you can delete tags.<\/p>\n\n\n\n<p><img decoding=\"async\" loading=\"lazy\" width=\"2266.1303544044495\" height=\"638.7823152542114\" src=\"https:\/\/lh5.googleusercontent.com\/OAEW1zM3pUAaTLvtUiEj9H0wzxQSetnRS4IZiDk_N614rpvojSU3d0iV41qgiC8AdWCyGgSf4yz8zkVyFfUQW08dvDeUg-gKmMDqRV10SeHrJocJbl5DmOg6-7nEevyQzuGzQMI\"><\/p>\n\n\n\n<p>Translation Workspace XLIFF Editor is a really powerful tool and we will continue our series exploring this tool. For any questions you might have concerning the XLIFF Editor, or for any translation and localization related services, we will be happy to speak with you. Contact us <a href=\"http:\/\/oweb.babelos.net\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While translating on the XLIFF Editor, you might encounter tags. Tags are elements that confer certain properties on a piece of text. Usually used in html, programming, etc. Tags can make text bold\/colored, etc. when the text is rendered in final format. In our work, we need to keep the tags in their appropriate positions <a href=\"https:\/\/oweb.babelos.net\/?p=362\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[],"_links":{"self":[{"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/posts\/362"}],"collection":[{"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":1,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/365"}],"wp:attachment":[{"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oweb.babelos.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}