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

Lenart  Identity Verified
Luxembourg
Local time: 16:52
Mar 22, 2017

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


 

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

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.


 

_stephan  Identity Verified
Germany
Local time: 16:52
English to German
What Rafał said Mar 24, 2017

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


 

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

_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.


 


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 Unlimited
For clarity and excellence

WordFinder is the leading dictionary service that gives you the words you want anywhere, anytime. Access 260+ dictionaries from the world's leading dictionary publishers in virtually any device. Find the right word anywhere, anytime - online or offline.

More info »
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 »



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