If source: “5-10” > than target: “od 5 do 10”
Thread poster: Lenart
Lenart  Identity Verified
Luxembourg
Local time: 00:06
Mar 22

Hello,

I wonder whether SLD studio offers an option of automatic translation of very small segments.

I would like to automatically translate this > if Source: “5-10” > than target: “od 5 do 10”

So the rule would be: if segment contains only two numbers which are connected with „-“ than copy them to target and put „ do “ between them


Anybody has an idea how to get this done automatically?

I really appreciate any help you can provide


Direct link Reply with quote
 

Rafał Kwiatkowski  Identity Verified
Poland
Local time: 00:06
German to Polish
+ ...
Not sure, but... Mar 22

I'm note sure if that will work for 100% using Trados only - maybe, but not tested.

Anyway You can surely reach the goal using RegEx or GREP in MS Word, notepad++ etc. - depending on source's file format. The changes numbers from X-X to "X to X" may be additionally blocked from parsing by Trados by hiding it temporarily.


Direct link Reply with quote
 
_stephan  Identity Verified
Germany
Local time: 00:06
English to German
What Rafał said Mar 24

Hi,

I don't know if there's a way to simply pre-translate those segments, but you can definitely do a RegEx search-and-replace operation in Studio, like Rafał suggested.

If there are a lot of these segments in your file, I'd first apply the following display filter:

^(\d{1,})-(\d{1,})$

You could then copy source to target for all of them in one go and find and replace the pattern with your actual translation.

Find what: (\d{1,})-(\d{1,})
Replace with: od $1 do $2

Make sure to check "Use: Regular expressions".


If you have a lot of projects with just a few of these segments in each one, it's probably not worth the hassle. But you could look into the Regex Match AutoSuggest Provider plugin. You can enter the same find and replace patterns in the plugin and get the full string as an AS match when you type 'o'.

Hope that helps.

Stephan


Direct link Reply with quote
 

Emma Goldsmith  Identity Verified
Spain
Local time: 00:06
Member (2010)
Spanish to English
Regex Match AutoSuggest Provider - with proviso Mar 24

_stephan wrote:

But you could look into the Regex Match AutoSuggest Provider plugin.



Absolutely.
Here's the link:
http://appstore.sdl.com/app/regex-match-autosuggest-provider/412/#68771

Nora Diaz gives detailed instructions how to use it, specifically in the case of a number range.
http://noradiaz.blogspot.com.es/2015/07/a-collection-of-regular-expressions-for.html

The only BIG problem is that in Studio 2017, this app no longer works for strings that start with a digit.


Direct link Reply with quote
 


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


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

If source: “5-10” > than target: “od 5 do 10”

Advanced search







WordFinder
The words you want Anywhere, Anytime

WordFinder is the market's fastest and easiest way of finding the right word, term, translation or synonym in one or more dictionaries. In our assortment you can choose among more than 120 dictionaries in 15 languages from leading publishers.

More info »
memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search