Translation of document containing a lot of code
Thread poster: Stanislaw Czech, MCIL CL
Stanislaw Czech, MCIL CL
Stanislaw Czech, MCIL CL  Identity Verified
United Kingdom
Local time: 05:54
Member (2006)
English to Polish
+ ...
SITE LOCALIZER
May 19, 2011

I may need to translate some strings. For the time being they are in a txt file and have a uniform structure:

define('PERMISSION_DENIED', ' Permission Denied ');

define('PERMISSION_DENIED_ETC', ' You do not have permission to access the requested resource ');

etc.

I need to translate words in bold and leave the rest intact. Is there an easy way of hiding/converting to tags all the redundant coding?

I will be very
... See more
I may need to translate some strings. For the time being they are in a txt file and have a uniform structure:

define('PERMISSION_DENIED', ' Permission Denied ');

define('PERMISSION_DENIED_ETC', ' You do not have permission to access the requested resource ');

etc.

I need to translate words in bold and leave the rest intact. Is there an easy way of hiding/converting to tags all the redundant coding?

I will be very grateful for any suggestions
S
Collapse


 
Adam Łobatiuk
Adam Łobatiuk  Identity Verified
Poland
Local time: 06:54
Member (2009)
English to Polish
+ ...
In Word May 19, 2011

After you copy and paste the contents to Word, you can change the strings

define\(*', ' (this ends in a space)
'\); (this begins with a space)

using wildcards to either the tw4winexternal style or hidden font (just put the above in Find, and select the style or font for Replace with in the Find and replace dialog box). If you decide to use tw4winExternal, you will need to add it to the document first - you can do so by copying it from another file and applying to
... See more
After you copy and paste the contents to Word, you can change the strings

define\(*', ' (this ends in a space)
'\); (this begins with a space)

using wildcards to either the tw4winexternal style or hidden font (just put the above in Find, and select the style or font for Replace with in the Find and replace dialog box). If you decide to use tw4winExternal, you will need to add it to the document first - you can do so by copying it from another file and applying to a portion of the text.

HTH
Collapse


 
RWS Community
RWS Community
United Kingdom
Local time: 06:54
English
Try the TXT Filter in Studio May 19, 2011

Hi Stanislaw,

Another idea, and there are quite a few recent threads in this forum on its use, is the TXT filter. I used your text below and see this in Studio:


Just added an opening and closing structure pattern in the settings for the TXT filetype:


Just added an opening and closing structure pattern in the settings for the TXT filetype:


Again... not an elegant use of regex but works for your example.

Regards

Paul
Collapse


 


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


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

Translation of document containing a lot of code







Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

Buy now! »
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! »