How to translate strings
Thread poster: GuillaumeB

GuillaumeB
France
Local time: 15:28
English to French
May 14, 2017

Hello there,

I must explain myself: I often need to translate documents that are in the form $WHATEVER="Text to translate". My question is, how can I go from one text to the other, only translating the parts that are within ""? I’ve been looking for a solution for ages, but it seems no one is able to explain it precisely.

Does anyone know how to do? I am losing a massive amount of time by manually clicking on the text, translating it, deleting the source text...

Thank you very much!


Direct link Reply with quote
 

Stepan Konev  Identity Verified
Russian Federation
Local time: 00:28
English to Russian
What file format do you use? May 14, 2017

I know how to do it with MS Word files.

1. Select all, press Ctrl+Shift+H to hide all
2. Do not cancel the 'select all' feature. If cancelled, select all again or put cursor before the first instance of " mark (or at the very beginning of your text)
3. Invoke Replace window.
Find what: (\")(*)(\")
Tick 'Use wildcards' when cursor is in 'Find what'
Replace with: \1\2\3
When cursor is in 'Replace with', select 'Format' -> 'Font' -> untick 'Hidden' so that \1\2\3 is marked 'Not Hidden'
3. Replace all

Now you have all text hidden except for "Text to translate".

If you also want quotation marks to be hidden, replace them as follows:

Find what: (")
'Use wildcards'

Replace with: \1
'Hidden'
(When cursor is in 'Replace with', select 'Format' -> 'Font' -> tick 'Hidden' so that \1 is marked 'Hidden')
Then import to CAT and translate.
Once done, select all text and press Ctrl+Shift+H again to unhide all.


Direct link Reply with quote
 

neilmac  Identity Verified
Spain
Local time: 22:28
Spanish to English
+ ...
Charge more May 15, 2017

The time-consuming aspect is one of the reasons that the rates you charge for software strings like those described should be higher than your rates for normal texts.

Direct link Reply with quote
 

Mirko Mainardi  Identity Verified
Italy
Local time: 22:28
Member
English to Italian
+ ...
Spreadsheet May 15, 2017

GuillaumeB wrote:

Hello there,

I must explain myself: I often need to translate documents that are in the form $WHATEVER="Text to translate". My question is, how can I go from one text to the other, only translating the parts that are within ""? I’ve been looking for a solution for ages, but it seems no one is able to explain it precisely.


Use a spreadsheet software. With LibreOffice for instance, open the file, select "=" as separator and the quotes as "Text delimiter" and you're done. You'll have "$WHATEVER" in column A and "Text to translate" (without quotes) in column B.


Direct link Reply with quote
 

GuillaumeB
France
Local time: 15:28
English to French
TOPIC STARTER
Thank you May 15, 2017

Thank you very much Stepan! That works great

Thank you Mirko, please tell me how do you put everything together again once you’re done translating it? It means, I put it in two separate columns, I translate the column I want to translate, and then how do I put everything back as it was to deliver it to my client? Thank you!


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 »

How to translate strings

Advanced search







Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »



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