SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL Speech to Text
SDL Managed Translation - Enterprise
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Tridion Docs Developers
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Language Technology Partner Group
SDL Academic Partners
SDL Enterprise Technology Partners
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL Contenta S1000D
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
at first, I want to apologize for my bad English. Here is my question:
I have created a new file type at Trados: XML: Localization
For this file type, I have defined parser rules that define what to translate and what not to translate.
Parser rules are:
Context is paragraph and rule type is XPath.
In Verarbeitung eingebetteter Inhalte I have defined an XML parser. The new rule in inline tags is:
Tag Type: Platzhalter
To translate: Falsch
This has worked perfectly so far.
See the screenshots.
So now my problem, I updated Trados to 18.104.22.1681.
And now it doesn't work anymore. Please have a look at the screenshots, the elements are translated now, which is wrong.
I guess Trados now uses the file type Any XML instead of XML: Localization. But in Any XML I can't define parser rules.
But, when I create a new project, I see that XML: Localization is selected.
What I've tried is to create a whole new file type with these settings or disable all other XML types.
Do any of you know any advice?
Hi Lydia, if you are unsure about which file type is picking up your XML files in the new Studio version, you will need to find out about this, first, as follows:
If Any XML is picking up your files,…
Hi Lydia Schleinitz
I have replied to your email yesterday, but it seems to be getting bounced. So this was my response... I made two changes and things seem to be picked up correctly::
I have not addressed…
I'm trying to make sense of your post which is a little confusing for me. In here you seem to have created rules to extract the content of the content element as translatable text:
Lydia Schleinitz said:Parser rules are:
Then you said this:
Lydia Schleinitz said:Please have a look at the screenshots, the elements are translated now, which is wrong.
Your source file will only extract the fr as you don't have en or it in the example you show and the screenshot here seems to reflect this:
But looking at this one which has the inline strings tagged, I'm thinking that this is your problem... the one above is not reflecting the inline tags:
So it looks as though your inline rules are not being catered for. Is this the problem? Can you share a screenshot of your filetype settings?
thank you for your answer. Here are the screenshots of the project settings.
This is not the first time I see such completely wrong XML parsing rules, apparently created by following some weird videotutorial instructing the users to create rules by importing the source XML file:
This is the worst way of creating the parser rules EVER!Especially for n00bs which have no clue what they are doing...
I think importing the rules had some value as they were then easier to select (if you didn't need xpath). I always import first too... but I then delete them all so only do the import for the selection convenience when I don't need more complex xpath.
And that is exactly the problem - you know what to do and why, but the average Joe Translators don't... and they end up with something completely weird what may work only by coincidence, or due to some bug or something, what gets eventually fixed/changed and everything breaks down.
Plus, nowadays the XMLs are rather complex, so this way does way more harm than good. Again, especially for n00bs.
The other parser rules //entry, //localization, //localization1 etc. refer to deeper elements of a much bigger and complex XML file. I have used the small XML file only for testing purposes and to demonstrate the following to you.
So we have several such complex XML files. One for each language. Source language is always German in <content language="fr"> for example. For Italian it would be <content language="it"> etc., depending on the file and the language we want to translate into.
Now I would like to say Trados, translate everything that is written in <content language="fr"> etc., but don't translate what is written in <content language="de">, because that should remain German.
The elements in the $$ are buttons of our application. They must not be translated.
We have tried to follow what you Paul described in your article https://multifarious.filkin.com/2014/06/01/custom-xml/.
Exactly with the settings I have shown to you everything worked perfectly. See the screenshot. All elements or FormatFunctions in the $ characters were not translated.
Here is the example:
<content language="de">Eingangskorb: $VORGANGSPOSTKORB_NAME+$</content>
<content language="fr">Boîte de réception $VORGANGSPOSTKORB_NAME+$</content>
As you can see, only the actual text was translated.
After the update to 22.214.171.1241 it is no longer possible to use exactly the same project template. Also other changes don't apply to our file format “XML:Localization” anymore. For example, if I want to convert HTML entities. We found out that we now have to make these settings for the file type “Any XML”. So we assume that the new file type “XML:Localization” doesn't work anymore.
Here's the example where it doesn't work anymore:
<content language="de">inbox: $VORGANGSPOSTKORB_NAME+$</content>
<content language="fr">Boite de réception : NOM_DE_PANIER_DE_POSTE_DE_TRANSACTION_DE_COURRIER_+$</content>
I hope you've been able to follow me more clearly now and see what the problem is.
Thank you very much.
I remember Frank Lempp reported a problem with XML parsers in the Beta group - that was just before the release of SR2. Could that be connected?
Can we see your setting files and also have a sample of te source? That might help stop all the guessing? If you don't want to post them into th forum feel free to drop me an email to firstname.lastname@example.org
Lydia Schleinitz said:Now I would like to say Trados, translate everything that is written in <content language="fr"> etc., but don't translate what is written in <content language="de">, because that should remain German.
So, as Paul already mentioned, you should just specify rules for "DO translate this" and then use "//*" set to "DO NOT translate this" as last rule in the list.You do not need to specify rule for every element/attribute present in the XML.
Okay, thanks, Paul. I sent you everything.
I have not addressed all your other rules… I’m assuming you have them there for a reason?
thank you for your reply. I've just tested your project settings, but unfortunately it doesn't work either.
Please can you be very specific about what doesn't work because this seems to be working for me.
Yes, of course. So I set up the project settings the way you described it.
The result is that the values in $ characters are still translated. However, they must not be translated because they are code.
<content language="de">$VORGANGSPOSTKORB_NAME+$</content><content language="fr">NOM_DE_PANIER_DE_POSTE_DE_TRANSACTION_DE_COURRIER_+$</content>
And now the German source text is also translated, which of course should not be the way it is.
<content language="de">Boîte de réception $VORGANGSPOSTKORB_NAME+$</content><content language="fr">Boîte de réception : NOM_DE_PANIER_DE_POSTE_DE_TRANSACTION_DE_COURRIER_+$</content>
Lydia Schleinitz said:And now the German source text is also translated
Surely it is, since that's what your parser rules say!At the very top you clearly define the "de" language to be "Immer zu uebersetzen"...
Are you really sure you actually understand how the parser rules work and how you should define them?!?!
with all due respect, but I really don't have to put up with your rude manners. Do you really think you can make yourself more heard if you use the punctuation marks excessively?
I didn't make the rules, I just followed what Paul told me in his last post. And I have confidence in that. Of course I know that the German parts are now going to be translated. For this reason we have set them to "Do not translate" in the original rules. I just want to leave nothing untried.
All I'm trying to do is to make you focus on the core problem. You seem to be going in circles all the time, and that for the only reason - that you actually don't understand how to rules work.
If that's true, it's absolutely unclear to me why you hesitate to admit that. You would get proper help much faster then.
Paul never said he tailored the COMPLETE rules for your needs. If for nothing else, then at least simply because you are the only one to actually know all your needs; we don't.So Paul clearly stated the fundamental changes he made. The rest is on you. Including proper definition of the embedded content rules, so that the $-content does not get translated.
What exactly are you expecting from the community? To do everything for you? Without knowing what exactly you actually need? How exactly do you expect the community to do it?