{"id":1021,"date":"2018-02-03T04:06:07","date_gmt":"2018-02-03T03:06:07","guid":{"rendered":"https:\/\/rosetta.vn\/short\/2018\/02\/03\/chapter-13-translation-memories\/"},"modified":"2018-06-13T13:00:38","modified_gmt":"2018-06-13T12:00:38","slug":"chapter-13-translation-memories","status":"publish","type":"post","link":"https:\/\/rosetta.vn\/short\/2018\/02\/03\/chapter-13-translation-memories\/","title":{"rendered":"Chapter\u00a013.\u00a0Translation memories"},"content":{"rendered":"<p><a href=\"http:\/\/omegat.sourceforge.net\/manual-latest\/en\/chapter.translation.memories.html\">http:\/\/omegat.sourceforge.net\/manual-latest\/en\/chapter.translation.memories.html<\/a><\/p>\n<p>To test this feature, it should be useful to generate TMX with all segments and empty targets:<\/p>\n<blockquote>\n<p class=\"titlepage\" style=\"color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium; line-height: normal; background-color: rgb(255, 255, 255);\">\n<h2 class=\"title\" style=\"color: navy; clear: both;\">4.&nbsp;Pseudo-translated memory<a class=\"indexterm\" name=\"d0e7450\"><\/a><\/h2>\n<p class=\"note\" style=\"font-size: small; color: rgb(0, 0, 0); font-family: sans-serif; line-height: normal; margin-left: 0.5in; margin-right: 0.5in; background: silver;\">\n<h3 class=\"title\" style=\"color: green;\">Note<\/h3>\n<p>Of interest for advanced users only!<\/p>\n<p style=\"color: rgb(0, 0, 0); font-family: sans-serif; line-height: normal; background-color: rgb(255, 255, 255);\">Before segments get translated, you may wish to pre-process them or address them in some other way than is possible with OmegaT. For example, if you wish to create a pseudo-translation for testing purposes, OmegaT enables you to create an additional tmx file that contains all segments of the project. The translation in this tmx can be either<\/p>\n<p class=\"itemizedlist\" style=\"color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium; line-height: normal; background-color: rgb(255, 255, 255);\">\n<ul class=\"itemizedlist\">\n<li class=\"listitem\">translation equals source (default)<\/li>\n<\/ul>\n<p class=\"itemizedlist\" style=\"color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium; line-height: normal; background-color: rgb(255, 255, 255);\">\n<ul class=\"itemizedlist\">\n<li class=\"listitem\">translation segment is empty<\/li>\n<\/ul>\n<p style=\"color: rgb(0, 0, 0); font-family: sans-serif; line-height: normal; background-color: rgb(255, 255, 255);\">The tmx file can be given any name you specify. A pseudo-translated memory can be generated with the following command line parameters:<\/p>\n<p style=\"color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium; line-height: normal; background-color: rgb(255, 255, 255);\"><code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">java -jar omegat.jar --pseudotranslatetmx=&lt;filename&gt; [pseudotranslatetype=[equal|empty]]<\/code><\/p>\n<p style=\"color: rgb(0, 0, 0); font-family: sans-serif; line-height: normal; background-color: rgb(255, 255, 255);\">Replace<span class=\"Apple-converted-space\">&nbsp;<\/span><code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">&lt;filename&gt;<\/code><span class=\"Apple-converted-space\">&nbsp;<\/span>with the name of the file you wish to create, either absolute or relative to the working folder (the folder you start<span class=\"Apple-converted-space\">&nbsp;<\/span><span class=\"application\">OmegaT<\/span><span class=\"Apple-converted-space\">&nbsp;<\/span>from). The second argument<span class=\"Apple-converted-space\">&nbsp;<\/span><code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">--pseudotranslatetype<\/code><span class=\"Apple-converted-space\">&nbsp;<\/span>is optional. Its value is either<span class=\"Apple-converted-space\">&nbsp;<\/span><code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">equal<\/code><span class=\"Apple-converted-space\">&nbsp;<\/span>(default value, for source=target) or<span class=\"Apple-converted-space\">&nbsp;<\/span><code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">empty<\/code><span class=\"Apple-converted-space\">&nbsp;<\/span>(target segment is empty). You can process the generated tmx with any tool you want. To reuse it in<span class=\"Apple-converted-space\">&nbsp;<\/span><span class=\"application\">OmegaT<\/span><span class=\"Apple-converted-space\">&nbsp;<\/span>rename it to<span class=\"emphasis\"><em>project_save.tmx<span class=\"Apple-converted-space\">&nbsp;<\/span><\/em><\/span>and place it in the<code class=\"literal\" style=\"border: 1px solid rgb(255, 255, 102); vertical-align: top; background: rgb(255, 255, 204);\">omegat<\/code>-folder of your project.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/omegat.sourceforge.net\/manual-latest\/en\/chapter.translation.memories.html To test this feature, it should be useful to generate TMX with all segments and empty targets: 4.&nbsp;Pseudo-translated memory Note Of interest for advanced users only! Before segments get translated, you may wish to pre-process them or address them<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"_mi_skip_tracking":false},"categories":[30,1],"tags":[734,254,40],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8jhJx-gt","_links":{"self":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts\/1021"}],"collection":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":0,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"wp:attachment":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}