{"ygPerms":{"resourceCapabilityList":[{"resourceType":"GROUP","capabilities":[{"name":"UPDATE"},{"name":"READ"},{"name":"WELCOME_MSG"},{"name":"PENDING_COUNT"},{"name":"ACTIVITY_LOGS"}]},{"resourceType":"PHOTO","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"UPLOAD"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"COPY"},{"name":"MOVE"},{"name":"APPROVE"},{"name":"UPLOADTEMP"},{"name":"GROUPCOVER"}]},{"resourceType":"FILE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"AUTO_SEND"}]},{"resourceType":"MEMBER","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"EDIT_MODERATOR"},{"name":"DELETE"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"BAN"}]},{"resourceType":"LINK","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"MOVE_LINK"}]},{"resourceType":"CALENDAR","capabilities":[{"name":"READ"}]},{"resourceType":"DATABASE","capabilities":[{"name":"READ"},{"name":"READ_DATA"},{"name":"CREATE"}]},{"resourceType":"POLL","capabilities":[{"name":"READ"},{"name":"VOTE"},{"name":"UPDATE"},{"name":"CREATE"},{"name":"DELETE"},{"name":"CLOSE"}]},{"resourceType":"MESSAGE","capabilities":[{"name":"CREATE"},{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PENDING_MESSAGE","capabilities":[{"name":"READ"},{"name":"UPDATE"},{"name":"DELETE"}]},{"resourceType":"ATTACHMENTS","capabilities":[{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PHOTOMATIC_ALBUMS","capabilities":[{"name":"READ"},{"name":"UPLOAD"}]},{"resourceType":"MEMBERSHIP_TYPE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"DELETE"},{"name":"UPDATE"}]},{"resourceType":"POST","capabilities":[{"name":"READ"},{"name":"DELETE"},{"name":"CREATE"},{"name":"UPDATE"}]},{"resourceType":"PIN","capabilities":[{"name":"READ"},{"name":"DELETE"},{"name":"CREATE"},{"name":"UPDATE"}]}],"modStatus":"MODERATOR","subStatus":"NORMAL","groupUrl":"groups.yahoo.com","intlCode":"us"},"comscore":"pageview_candidate","ygData":{"userId":176392694,"authorName":"Samuel Murray","from":"Samuel Murray &lt;leuce@absamail.co.za&gt;","profile":"lacialacia","replyTo":"LIST","senderId":"iWGKyucW0nCQriLm4hLunbg2FUgcsRMTahDJnEIAy7AcwUad6xE_m1zcdXPNcHWjsJ5D_Q2Svrni05cV_hj2rta-HL6ajbwZ4Ok8","spamInfo":{"isSpam":false,"reason":"12"},"subject":"Re: [OmT] replace-all in OmegaT","postDate":"1145810359","msgId":4921,"canDelete":true,"contentTrasformed":false,"systemMessage":false,"headers":{"messageIdInHeader":"PDQ0NEJBREI3LjYwMDAxMDdAYWJzYW1haWwuY28uemE+","inReplyToHeader":"PGUyZDhoditnaGIzQGVHcm91cHMuY29tPg==","referencesHeader":"PGUyZDhoditnaGIzQGVHcm91cHMuY29tPg=="},"prevInTopic":4918,"nextInTopic":0,"prevInTime":4920,"nextInTime":4922,"topicId":4914,"numMessagesInTopic":4,"msgSnippet":"... You ll have to do a Find/Replace on the TMX file.  The TMX in question being project_save.tmx, of course.  If you re on Windows, you can also install","rawEmail":"Return-Path: &lt;leuce@absamail.co.za&gt;\r\nX-Sender: leuce@absamail.co.za\r\nX-Apparently-To: OmegaT@yahoogroups.com\r\nReceived: (qmail 12973 invoked from network); 23 Apr 2006 16:33:13 -0000\r\nReceived: from unknown (66.218.66.217)\n  by m20.grp.scd.yahoo.com with QMQP; 23 Apr 2006 16:33:13 -0000\r\nReceived: from unknown (HELO mmi01.absamail.co.za) (196.35.40.126)\n  by mta2.grp.scd.yahoo.com with SMTP; 23 Apr 2006 16:33:10 -0000\r\nReceived: from absamail.co.za (smtpserv.absamail.co.za [196.35.40.69])\n\tby mmi01.absamail.co.za (AIA) with ESMTP id ECA5435B11F\n\tfor &lt;OmegaT@yahoogroups.com&gt;; Sun, 23 Apr 2006 18:33:04 +0200 (SAST)\r\nReceived: from absamail.co.za not authenticated [196.35.40.70]\n\tby absamail.co.za with NetMail SMTP Agent $Revision:   3.22.1.16  $ on Novell NetWare;\n\tSun, 23 Apr 2006 18:33:04 +0200\r\nReceived: from [196.208.73.39] leuce@absamail.co.za [196.208.73.39]\n\tby absamail.co.za with NetMail SMTP Agent $Revision:   3.22.1.16  $ on Novell NetWare;\n\tSun, 23 Apr 2006 18:33:04 +0200\r\nReceived: from 127.0.0.1 (AVG SMTP 7.1.385 [268.4.5/322]); Sun, 23 Apr 2006 18:40:31 +0200\r\nMessage-ID: &lt;444BADB7.6000107@absamail.co.za&gt;\r\nDate: Sun, 23 Apr 2006 18:39:19 +0200\r\nUser-Agent: Thunderbird 1.5 (Windows/20051201)\r\nMIME-Version: 1.0\r\nTo: OmegaT@yahoogroups.com\r\nReferences: &lt;e2d8hv+ghb3@eGroups.com&gt;\r\nIn-Reply-To: &lt;e2d8hv+ghb3@eGroups.com&gt;\r\nContent-Type: text/plain; charset=ISO-8859-1; format=flowed\r\nContent-Transfer-Encoding: 7bit\r\nX-Originating-IP: 196.35.40.126\r\nX-eGroups-Msg-Info: 1:12:0:0\r\nFrom: Samuel Murray &lt;leuce@absamail.co.za&gt;\r\nSubject: Re: [OmT] replace-all in OmegaT\r\nX-Yahoo-Group-Post: member; u=176392694; y=CdOl4_lMX-kdROEzDKtvYNL_VKaF2MaSG_c99JUKq_997rkeIw\r\nX-Yahoo-Profile: lacialacia\r\n\r\nyosato_uk wrote:\n\n&gt; In a rather common scenario you would sometimes want to replace all\n&gt; the occurrences of a particular word/phrase throughout the text, when,\n&gt; say, you realise a frequently used word/phrase has been mistranslated\n&gt; after completing a rough translation. What would a typical OmegaT user\n&gt; do in such a case?\n\nYou&#39;ll have to do a Find/Replace on the TMX file.  The TMX in question \nbeing project_save.tmx, of course.  If you&#39;re on Windows, you can also \ninstall AutoIt so that the handy script can also be used.\n\nGet jEdit text editor.  Open project_save.tmx in it.  Go Ctrl+F, and \nsearch as follows (assuming source language EN-US and target language \nAF-ZA):\n\nFind:\n\n(&quot;AF-ZA&quot;&gt;)(&#92;n.+)(&#92;&lt;PHRASE&#92;&gt;)(.+)(&#92;n.+&#92;n.+&#92;n.+&#92;n.+)(&quot;EN-US&quot;)\n\nReplace with:\n\n$1$2PHRASE$4$5$6\n\nwhere PHRASE is the find phrase and replace phrase.  If you want to find \nany match (not just whole words), do this:\n\nFind:\n\n(&quot;AF-ZA&quot;&gt;)(&#92;n.+)(PHRASE)(.+)(&#92;n.+&#92;n.+&#92;n.+&#92;n.+)(&quot;EN-US&quot;)\n\nReplace with: same as previous.\n\nThis will ensure that you only find phrases in the target text sections \nof the translation units (well, I hope that&#39;s what it does... let me \nknow if I&#39;m mistaken).\n\nIf you have AutoIt, create a file named whatever.au3 and paste this \nscript in it:\n\n;\n; AutoIt Version: 3.0\n; Language:       English\n; Platform:       Win9x/NT\n; Author:         Samuel Murray (leuce@absamail.co.za)\n;\n; Script Function:\n;   Does Find/Replace on an OmegaT TMX using jEdit and regex\n;\n; Requirements:\n;   AutoIt (obviously), jEdit, and your TMX file\n;\n\n; Ask for source lang code:\n\n$SL = InputBox(&quot;Get SL&quot;, &quot;What is the source language code (eg. \nEN-US)?&quot;, &quot;&quot;, &quot; M&quot;)\n\n; Ask for target lang code:\n\n$TL = InputBox(&quot;Get TL&quot;, &quot;What is the target language code (eg. \nAF-ZA)?&quot;, &quot;&quot;, &quot; M&quot;)\n\n; Ask for find phrase:\n\n$FP = InputBox(&quot;Get Find Phrase&quot;, &quot;Type in the phrase to find.  To find \nwhole words only, prepend with &#92;&lt; and append with &#92;&gt;.&quot;, &quot;&quot;, &quot; M&quot;)\n\n; Ask for replace phrase:\n\n$RP = InputBox(&quot;Get Replace Phrase&quot;, &quot;Type in the phrase to replace \nwith.&quot;, &quot;&quot;, &quot; M&quot;)\n\nWinActivate (&quot;jEdit&quot;, &quot;&quot;)\nWinWaitActive (&quot;jEdit&quot;, &quot;&quot;)\n\nSend (&quot;^f&quot;)\n\n$CP1 = (&#39;(&quot;&#39; & $TL & &#39;&quot;&gt;)(&#92;n.+)(&#39; & $FP & &#39;)(.+)(&#92;n.+&#92;n.+&#92;n.+&#92;n.+)(&quot;&#39; & \n$SL & &#39;&quot;)&#39;)\n\nClipPut ($CP1)\n\nSend (&quot;^v&quot;)\nSend (&quot;{TAB}&quot;)\n\n$CP2 = (&#39;$1$2&#39; & $RP & &#39;$4$5$6&#39;)\n\nClipPut ($CP2)\n\nSend (&quot;^v&quot;)\n\nSend (&quot;!a&quot;)\n\n; Script ends.\n\nTo use, simply run jEdit, open the TMX file in it, minimise jEdit, and \nrun the script.  Then save the file (Ctrl+S) and close jEdit.  Next time \nyou run jEdit, it will automatically open the last file you had opened.\n\nGood luck.\nSamuel\n\n\n\n"}}