Trados Business Manager
Speech to Text
Managed Translation - Enterprise
Translation Management Connectors
Language Weaver Connectors
Language Weaver Edge
Tridion Docs Developers
RWS User Experience
Internal Trados Studio Ideas
RWS Community Internal Group
RWS Access Customer Portal
RWS Professional Services
RWS Training & Certification
RWS Enterprise Technology Partners
Trados Academic Partners
Trados Approved Trainers
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic Tridion Docs User Group
Tridion Docs Europe & APAC User Group
Tridion UK Meetup
Tridion User Group Benelux
Tridion User Group New England
Tridion User Group Ohio Valley
Tridion West Coast User Group
WorldServer User Group
Trados GroupShare Ideas
Trados Studio Ideas
Language Weaver Ideas
Language Weaver Edge Ideas
RWS Language Cloud TMS Ideas
RWS Language Cloud Terminology Ideas
RWS Language Cloud Online Editor Ideas
Managed Translation - Enterprise Ideas
Tridion Docs Ideas
Tridion Sites Ideas
LiveContent S1000D Ideas
Events & Webinars
To RWS Documentation
To RWS Support
Detecting language please wait for.......
we are currently having problems, excluding strings in a .txt file when we create a new project.
The file looks like this:
Stellgeraet.Bezeichnung_Abs := '2:SG:3'; Stellgeraet.Bezeichnung_Sym := 'Vereinzelung Radschraube 1'; Stellgeraet.Bewegung_links_Abs := 'A100.1'; Stellgeraet.Bewegung_links_Sym := 'zurück'; Stellgeraet.Endlage_links_Abs := 'E4.3'; Stellgeraet.Bezeichnung_Abs := '2:SG:4'; Stellgeraet.Bezeichnung_Sym := 'Blasluftschuß Radschraube 1'; Stellgeraet.Bewegung_links_Abs := 'N A100.5'; Stellgeraet.Bewegung_links_Sym := 'aus';
We only need to translate the yellow text. How do we have to set the project settings, to only get this marked text?
We tried it with Document structure to define the start and the end of the text that needs to be translated with :=' for start and '; for end (but it didn't work).
We also tried to set inline tags, which also didn't work.
We appreciate every kind of help.
If you have further questions, please ask.
In addition to the suggestion type definition file sent by Paul, I have copied your text and I have created a plain text file, assuming that the file you are working on is a plain text file (*.txt).
If your file has a different extension, but if actually it is a text file, just create a copy of your original file and add to it a second extension “.txt” (e.g. TEXT.[your extension].txt) and open/check it in a simple text editor (say Notepad or Notepad++; I suggest to avoid MS Word, when possible).
As you want to extract just text between starting ' and closing ', ignoring all other text of the pertinent string, before loading the file to create your project, you should define the Project Options “Options > File Type > Text > Document structure” window inserting a ' in “Opening pattern” field and a ' in the “Closing pattern” field, check the “Multiline” if required, and click on “Add” to obtain:
Now click on the existing default pattern (opening pattern ^ and closing pattern $) to select it and click on “Delete” to discard this rule and maintaining just your ' and ' opening and closing patterns.
At this point, to preview the result of this setting, click on “Browse” and select the file with double extension (*.[your extension].txt) and then on “Preview” and you should obtain:
that is what you needed. Am I right?
Now go on loading your file in SDL Studio as usual and complete the Project routine and start translating your file that should appear as follows in the Editor view:
When completed the translation, save the target final file as usual (SHIFT + F12), go to the folder containing your translated (double extension) file and delete from it the second added extension (.txt) to obtain a final translated file *.[your extension].
I hope this may help you.
ADDENDUM: To avoid problems regarding the presence of possible internal presence of ' inside the text to extract/translate, the above opening/closing patterns may be, respectively. =\s' and ';$.
I am so happy to find this answer too.
But I also have a similar problem. I have a tab delimited (.txt) document and the text is separated by tab, not by (') and (') as the example above. How to process it? Example:
40 350 1 <korean characters> This text should be translated1 <another character>
41 351 1 <korean characters> This text should be translated2 <another character>
42 352 1 <korean characters> This text should be translated3 <another character>
How to translate the yellow parts only? What "character" to be used as the opening and closing pattern? The file was OK on Excel, and I wish it is an Excel file or <.csv> file. But unfortunately, the text is in <.txt> format.
Hi Sarah -
Perhaps the easiest solution is to just import the txt into excel then just hide the columns you don't want? If it's tab delimited as you suggest then they should nicely split like this:
Save the file as excel and then just hide columns A, B, C, D and F. When you're done translating just save the target file, open in Excel and save as a TXT again.