In a plain text source file, can I prevent visible text from translation?
Thread poster: HermannHild
Jan 23

Hello,

I have a plain ascii text file. It contains phrases to be translated, but also comments and a keyword for each phrase, which should not be translated. Filtering the source file wouldn't help, because I need these keywords in the output, and it would be helpful to see the additional text the source file.

Is there a way to have visible text in the source file which will not be translated, but still exported to the output files? It would suffice if this worked on a line-by-line basis ...

Thanks alot,
Hermann


Direct link Reply with quote
 

esperantisto  Identity Verified
Local time: 21:43
Member (2006)
English to Russian
+ ...
No… Jan 24

A plain-text file is a plain-text file. OmegaT just reads it all. Unless you manage to write a specific import filter or to define user tags, you can’t prevent any text appearing in the editor pane. However, what’s the reason? Just don’t translate what you don’t want to translate.

Direct link Reply with quote
 

Didier Briel  Identity Verified
France
Local time: 20:43
Member (2007)
English to French
+ ...
You cannot filter text files, but you can use custom tags Jan 24

HermannHild wrote:
I have a plain ascii text file. It contains phrases to be translated, but also comments and a keyword for each phrase, which should not be translated. Filtering the source file wouldn't help, because I need these keywords in the output, and it would be helpful to see the additional text the source file.

Is there a way to have visible text in the source file which will not be translated, but still exported to the output files? It would suffice if this worked on a line-by-line basis ...

You cannot filter text files, but, if the text that is not to be translated can be identified with a regular expression, you can use custom tags. That way, the untranslatable text is greyed out and cannot be overwritten. It can also be excluded from statistics.

Didier


Direct link Reply with quote
 

HermannHild
TOPIC STARTER
Custom tags helped to ease handling of untranslatable context information Jan 24

Thanks for your hints, Didier and esperantisto! I managed to define the untranslatable context information as custom tags - works nicely, these texts are now grayed out and cannot be edited.

Only minor inconvenience: Although all these segments are now empty (in the sense that they contain no translatable text, but only the custom tag), I still can and have to step through all of them to mark them as translated. And I have to use the "translated text can match source text" feature, which I otherwise wouldn't want to do.

But that is ok. The clearer layout and the fact that I cannot accidentially modify the context information is already a great improvement.

Thanks for your help,
Hermann


Direct link Reply with quote
 

Didier Briel  Identity Verified
France
Local time: 20:43
Member (2007)
English to French
+ ...
You can mark segments translated one by one Jan 25

HermannHild wrote:
Thanks for your hints, Didier and esperantisto! I managed to define the untranslatable context information as custom tags - works nicely, these texts are now grayed out and cannot be edited.

Only minor inconvenience: Although all these segments are now empty (in the sense that they contain no translatable text, but only the custom tag), I still can and have to step through all of them to mark them as translated. And I have to use the "translated text can match source text" feature, which I otherwise wouldn't want to do.

Instead of activating that feature, you can mark them translated individually by using Edit > Register Identical Translation.

Didier


Direct link Reply with quote
 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


In a plain text source file, can I prevent visible text from translation?

Advanced search






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



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