{"id":905,"date":"2018-01-30T22:16:57","date_gmt":"2018-01-30T21:16:57","guid":{"rendered":"http:\/\/wasaty.pl\/blog\/?p=905"},"modified":"2018-11-15T12:09:31","modified_gmt":"2018-11-15T11:09:31","slug":"memsource-files-in-memoq","status":"publish","type":"post","link":"https:\/\/wasaty.pl\/blog\/2018\/01\/30\/memsource-files-in-memoq\/","title":{"rendered":"Memsource files in memoQ"},"content":{"rendered":"<div style=\"float: right; margin-left: 10px;\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-via=\"Wasaty\" data-count=\"vertical\" data-url=\"https:\/\/wasaty.pl\/blog\/2018\/01\/30\/memsource-files-in-memoq\/\">Tweet<\/a><\/div>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-911\" src=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource-logo.png\" alt=\"\" width=\"80\" height=\"80\" \/>When it comes to online CAT-tools I personally consider Memsource as one of the better ones &#8211; it&#8217;s reasonably fast, offers decent functionality and usability. It&#8217;s even better with local (but not offline) client, which can undock some windows, so you can have concordance and TM matches on screen at the same time. Still, it&#8217;s not the same as memoQ when it comes to comfort and features, so whenever possible, I process Memsource files in memoQ &#8211; that is, if PM allows to download .mxliff files for work with local tool.<\/p>\n<p><!--more--><\/p>\n<p>To do so I&#8217;m running pre-translation with relatively low threshold, download project files and open them in memoQ with another copy in Memsource for concordance and TB checks. After translation I open the files in memsource editor and use upload functionality to synchronize files with the server.<br \/>\nUnfortunately, the XLIFF format is a bit loose when it comes to how certain features should be implemented, so things like match rate and translation status are not imported by default and need some tinkering. I have created a template that can be used to import Memsource files in a bit more comfortable way.<\/p>\n<h3><span style=\"color: #ff0000;\">There is a substantial edit concerning the template<\/span>:<\/h3>\n<p><strong>Originally .mxliff files were modified only before importing into memoQ, and I left cleaning up extra content to memsource editor. Now <span style=\"text-decoration: underline;\">when you export finished translation, extra bits added for memoQ&#8217;s compatibility will be removed<\/span>.<\/strong><\/p>\n<p>Additionally:<\/p>\n<ol>\n<li><strong>Segments confirmed in memoQ will show as confirmed in Memsource. <\/strong>Of course you should still update the Memsource TM.<\/li>\n<li><strong>Content of &#8220;Alt-trans&#8221; imported by default to memoQ from Memsource as comment will be ignored now. <\/strong>I was asked by multiple users to disable this. If you want alternative translations from Memsource, you can enable them in memoQ filter filter options.<\/li>\n<li>I removed my export path rules from template settings &#8211; this was causing problems for some users. Still, it&#8217;s a good idea to edit export path rules so memoQ will overwrite original files and you won&#8217;t have to manually re-name files exported from memoQ (to remove defalut &#8220;_iso&#8221; target language addition).<\/li>\n<\/ol>\n<p>Original post content (still valid):<\/p>\n<p>The template work by performing automated actions: the files are edited with regex-based Find and Replace rules to insert additional attributes for match rate and segment states (regex rules are included in .xml configuration files). Subsequently customixed XLIFF filter is used, configured to recognize the introduced attributes and regex-based tagging is run to convert Memsource tags into memoQ tags.<\/p>\n<p>To use the template you need to follow instructions below for import and setup. When everything is configured correctly, you can create project from template and work with Memsource files more comfortably. But always remember to <span style=\"text-decoration: underline;\"><strong>back up your files in case something goes wrong<\/strong><\/span>. Also while the conversions and template were tested by two people without any issues (at the time of publication), I can&#8217;t predict every possible case and setup, so you are doing this at your own risk &#8211; if something goes wrong, I may tray to help, but I won&#8217;t be held responsible.<\/p>\n<p><strong>Before you start<\/strong>: the template will work only with <strong>memoQ 8.x<\/strong> and <strong>7.8<\/strong>, not older. However, executable file &#8220;FindAndReplace.exe&#8221; is only installed with memoQ version 8.1 and newer. If you have older version, you need to <a href=\"http:\/\/wasaty.pl\/Stuff\/findandreplace.zip\"><strong>download<\/strong> <\/a>it separately (see below).<\/p>\n<p>Template <strong>Memsource<\/strong>\u00a0does the following:<\/p>\n<ul>\n<li>match rate will be visible in memoQ<\/li>\n<li>locked status will be kept (segments locked in memsource will be locked in memoQ)<\/li>\n<li>&#8220;translated&#8221; status will be kept<\/li>\n<li>segments populated with machine translation will have &#8220;MT&#8221; status in memoQ<\/li>\n<li>memsource tags will be converted into memoQ tags<\/li>\n<\/ul>\n<h3>Preparation:<\/h3>\n<p>1. memoQ version 8.1 and newer: none<br \/>\n2. memoQ version 7.8: download and unzip executable<a href=\"http:\/\/wasaty.pl\/Stuff\/findandreplace.zip\"><strong> FindAndReplace<\/strong><\/a> (alternatively download and install newest memoQ version, you can still use 7.8, but FindAndReplace will be installed in the default path).<\/p>\n<h3>Installation<\/h3>\n<ol>\n<li>Download this file: <a href=\"http:\/\/wasaty.pl\/Stuff\/memsource_updated.zip\"><strong>memsource_updated.zip<\/strong><\/a><\/li>\n<li>Unzip the content (remember where you unzipped it).<\/li>\n<li>Start memoQ, open <strong>Resource console<\/strong>.<\/li>\n<li>Select <strong>Filter configurations<\/strong>.<\/li>\n<li>Select <strong>Import new<\/strong> and import:\u00a0 <strong>ChainedConverter#memsource-tagged.mqres<\/strong><\/li>\n<li>Select <strong>Project templates.<\/strong><\/li>\n<li>Select <strong>Import new<\/strong> &gt; <strong>Memsource.mqres<\/strong><br \/>\nThe template contains hard-coded path for configuration file: <strong>C:\\memoQ\\FindAndReplace\\memsource.xml<\/strong>. If you don&#8217;t want to edit the template, create this folder and put &#8220;memsource.xml&#8221; in this path. Alternatively edit the template:<br \/>\nSelect <strong>Resource console<\/strong> &gt; <strong>Templates<\/strong> &gt; <strong>memsource with states<\/strong> &gt; <strong>Edit<\/strong> &gt; <strong>Automated actions<\/strong> &gt; <strong>Script before import<\/strong>\u00a0and edit path in <strong>Command line arguments<\/strong>\u00a0field, then click <strong>Update<\/strong>.<br \/>\n<a href=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-906 size-medium\" src=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource-300x229.png\" alt=\"\" width=\"300\" height=\"229\" srcset=\"https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource-300x229.png 300w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource-768x586.png 768w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/memsource.png 908w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>You can now create template project and import Memsource files.<\/li>\n<\/ol>\n<h3>Project creation<\/h3>\n<ol>\n<li>From the main memoQ screen select\u00a0<strong>New Project<\/strong>.<br \/>\n<strong>Create new project from template<\/strong> dialog will be displayed.<\/li>\n<li><strong>Add documents<\/strong> or\u00a0<strong>Add folder structure<\/strong>, then click\u00a0<strong>Next<\/strong>.<\/li>\n<li>Select\u00a0<strong>Memsource<\/strong> from\u00a0<strong>Project-template<\/strong> drop-down select languages and fill metadata fields.<a href=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Template-select.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-931\" src=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Template-select-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Template-select-300x151.png 300w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Template-select.png 347w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>memoQ will import files applying filter settings.\u00a0Tagging mechanism will create empty (single) tags for numbers enclosed in curly brackets ( {1} ), opening (left) tags for any content starting with left curly bracket and closed by &#8220;greater than&#8221; sign (e.g. {1&gt; or {i&gt; ) and closing (right) tags for any content starting with &#8220;less than&#8221; sign closed by right curly bracket (e.g. &lt;1} or &lt;i} ). However, it is unlikely but possible that incorrect content will be tagged. In such case please contact me.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Tags_and_states.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-922\" src=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Tags_and_states-300x136.png\" alt=\"\" width=\"300\" height=\"136\" srcset=\"https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Tags_and_states-300x136.png 300w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Tags_and_states-768x348.png 768w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/Tags_and_states.png 990w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Please note that the project won&#8217;t have any TMs or TBs and only default resources will be attached, so you need to add TM and other resources manually using relevant\u00a0<strong>Project home<\/strong> cards (<strong>Translation memories<\/strong>,\u00a0<strong>Term bases<\/strong>, etc.).<\/p>\n<p><strong>PRO tip:<\/strong> File extension &#8220;<strong>mxliff<\/strong>&#8221; is not recognized by memoQ, so when you are adding files to an existing memoQ project, you need to &#8220;<strong>Show all<\/strong>&#8220;. But when you create a project based on this template you can skip &#8220;<strong>Add files<\/strong>&#8221; step (just don&#8217;t add any files in the step 2 above) and when the template-based project is created, simply drag and drop mxliff files into &#8220;<strong>Translations<\/strong>&#8221; memoQ window. Files will be recognized and correct filter will be applied automatically.<\/p>\n<h3>Troubleshooting<\/h3>\n<p>If instead of importing files into project\u00a0<strong>Document import options<\/strong> dialog is displayed with red exclamation mark to the left of the file name, it means filter configuration is not properly installed or recognized. Repeat steps 3-5 of the\u00a0<strong>Instalation<\/strong> section and try again.<\/p>\n<p>If that doesn&#8217;t help, or when importing filter you&#8217;ll get a message &#8220;<em>A filter configuration with the same name already exists in this location<\/em>&#8220;, you can try the following steps:<\/p>\n<ol>\n<li>Open\u00a0<strong>Resource console<\/strong> and go to <strong>Filter configurations<\/strong> section.<\/li>\n<li>Click\u00a0<strong>memsource-tagged<\/strong> filter and select\u00a0<strong>Properties\u00a0<\/strong>command.<\/li>\n<li>Rename the filter, e.g. to\u00a0<strong>memsource-tagged2<\/strong>.<\/li>\n<li>Still in the\u00a0<strong>Resource console<\/strong> go to\u00a0<strong>Project templates<\/strong> section.<\/li>\n<li>Select\u00a0<strong>Memsource<\/strong> and click\u00a0<strong>Edit<\/strong>.<\/li>\n<li>Click\u00a0<strong>Settings<\/strong> &gt;\u00a0<strong>Language-independent resources<\/strong>.<\/li>\n<li>In the\u00a0<strong>Filter configuration<\/strong> section select new name entered in step 3 (e.g. &#8220;memsource-tagged2&#8221;) from the\u00a0<strong>Filter configuration<\/strong> drop-down.<\/li>\n<li>Click\u00a0<strong>OK<\/strong> and create new template-based project.<\/li>\n<\/ol>\n<p>If the above procedure also fails, you can try contacting me, but before you do, please make sure all your paths and file names are correct and you followed all the steps described here.<\/p>\n<h3>To update already installed template you need to:<\/h3>\n<ol>\n<li>Use <strong>Resouce console<\/strong>\u00a0to delete existing filter configuration and project template and <span style=\"text-decoration: underline;\">install updated version<\/span><br \/>\nOR<\/li>\n<li>Use <strong>Resouce console<\/strong>\u00a0to <span style=\"text-decoration: underline;\">rename existing<\/span> filter configuration and project template and <span style=\"text-decoration: underline;\">install updated version<\/span><br \/>\nOR<\/li>\n<li>Import updated filter configuration with <span style=\"text-decoration: underline;\">new name<\/span>, import updated project template with <span style=\"text-decoration: underline;\">new name<\/span> and <span style=\"text-decoration: underline;\">modify<\/span> it to include updated filter configuration name.<\/li>\n<\/ol>\n<p><strong>Please note<\/strong>: the templates reference <strong>FindAndReplace.exe<\/strong>\u00a0file, which should be available at <strong>C:\\Program Files (x86)\\Kilgray\\FindReplace Tool<\/strong> folder (for memoQ 8.1 and up). If you have non-standard memoQ installation path, you need to edit exe configuration in template settings (see below). If you have memoQ version older than 8.1, you need to <strong><a href=\"http:\/\/wasaty.pl\/Stuff\/findandreplace.zip\">download<\/a><\/strong> the file separately and edit the path in template settings:<\/p>\n<ol>\n<li>Select <strong>Resource console<\/strong> &gt; <strong>Templates<\/strong> &gt; <strong>memsource with states<\/strong> &gt; <strong>Edit<\/strong> &gt; <strong>Automated actions<\/strong> &gt; <strong>Script before import<\/strong>\u00a0&gt; Select <strong>findandreplace.exe<\/strong> and click <strong>Delete<\/strong>.<br \/>\n<a href=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/findandreplace.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-907\" src=\"http:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/findandreplace-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/findandreplace-300x180.png 300w, https:\/\/wasaty.pl\/blog\/wp-content\/uploads\/2018\/01\/findandreplace.png 689w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Click\u00a0<strong>Add files&#8230;<\/strong>, browse to and select <strong>FindAndReplace.exe<\/strong>.<\/li>\n<li>Click\u00a0<strong>Update<\/strong>.<\/li>\n<\/ol>\n<p>Template can be further customized with your default languages, TMs, light resources etc.<\/p>\n<p>Additional help for templates with find and replace scripts can be found here: <a href=\"https:\/\/help.memoq.com\/8-3\/en\/index.html?edit-template-find-and-replace.html\">https:\/\/help.memoq.com\/8-3\/en\/index.html?edit-template-find-and-replace.html<\/a><br \/>\nTemplate configuration file (actual find and replace commands) is commented and you can customize it any way you like.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tweet When it comes to online CAT-tools I personally consider Memsource as one of the better ones &#8211; it&#8217;s reasonably fast, offers decent functionality and usability. It&#8217;s even better with local (but not offline) client, which can undock some windows, so you can have concordance and TM matches on screen at the same time. Still, &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/wasaty.pl\/blog\/2018\/01\/30\/memsource-files-in-memoq\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":[],"categories":[3,6],"tags":[20,53,50],"_links":{"self":[{"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/posts\/905"}],"collection":[{"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":16,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wasaty.pl\/blog\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}