How to filter source=target in LEAF
Auteur du fil: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Pays-Bas
Local time: 01:42
Membre (2006)
anglais vers afrikaans
+ ...
Jan 27, 2015

Hello everyone

I would like to create a filter in LEAF that displays only segments where the "source term" is the same as the "translation". LEAF's filter editor doesn't seem to have that functionality, but I'm hoping that one can write a query manually (as one was able to do with previous MS l10n tools). Does anyone know how to create such a filter?

Thanks
Samuel


 
Samuel Murray
Samuel Murray  Identity Verified
Pays-Bas
Local time: 01:42
Membre (2006)
anglais vers afrikaans
+ ...
AUTEUR DU FIL
How I fixed it in the end Jan 27, 2015

Samuel Murray wrote:
I would like to create a filter in LEAF that displays only segments where the "source term" is the same as the "translation".


In the end, I copied all text from LEAF to a separate program that was able to filter source=target segments, and then I created a user filter in LEAF by editing an existing filter in Notepad, with all reported target texts in it. When I applied that filter in LEAF, LEAF showed only segments that are source=target.

<?xml version="1.0" encoding="utf-8"?>
<FilterFactory xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Filters>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 1</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 2</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
<FilterClass xsi:type="StringFilter">
<Field>Translation</Field>
<Value xsi:type="xsd:string">TARGET TEXT 3</Value>
<Junction>Or</Junction>
<Expression>True</Expression>
<CaseSensitive>True</CaseSensitive>
<Operation>Equals</Operation>
</FilterClass>
(etc)
</Filters>
<Name>FILTERNAME</Name>
<Enabled>False</Enabled>
<GroupName>User filters</GroupName>
</FilterFactory>


But... there must be an easier way to do this.


[Edited at 2015-01-27 10:51 GMT]


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

How to filter source=target in LEAF







Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »