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

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
... See more
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
Collapse


 
esperantisto
esperantisto  Identity Verified
Local time: 15:59
Member (2006)
English to Russian
+ ...
SITE LOCALIZER
No… Jan 24, 2018

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.

 
Didier Briel
Didier Briel  Identity Verified
France
Local time: 14:59
English to French
+ ...
You cannot filter text files, but you can use custom tags Jan 24, 2018

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


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

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,
... See more
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
Collapse


 
Didier Briel
Didier Briel  Identity Verified
France
Local time: 14:59
English to French
+ ...
You can mark segments translated one by one Jan 25, 2018

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


 


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?






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