Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 29890

'No matching file type' -- although I set one up | Solved

$
0
0
Forum: SDL Trados support
Topic: 'No matching file type' -- although I set one up
Poster: Ben Jones
Post title: Solved

Sorry Paul for the drip-feed but I didn't want to swamp you (or others) and am also cautious re confidentiality.

In my case the lines including Class etc. are just comments, so the 'title' text inside them should be left untranslated. Hence I think I have three types of line to be processed (depending on the file):

1) /* Class = "NSTextFieldCell"; title = "Do something"; ObjectID = "123"; */
2) 123.title = "Do something";
3) Do Something = "Do Something";

Following your advice, I need a RegExp which matches 2) and 3) but ignores 1). In plain language, this would be an opening match where the line contains = " but doesn't start with /.

This should do it quite simply: ^[^/]* = " and indeed, it works on my files. I tried this before spotting Remy's answer, but it does check out and it looks like a great resource for similar situations in the future.

Many thanks for your help.

Ben

Viewing all articles
Browse latest Browse all 29890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>