When translating occasionally you might need to process content, after it has been exported from your system, before passing it to a translation agency and vise versa.
For cases like this, you can setup specific replacement templates in your connector's settings. To do so:
- Open your connector's settings
- Open the "Text" tab.
New Encoding
To create a new encoding:
...
In this view, you can specify encoding's name and a short description. You can also change these values for all existing encoding. When all the adding/editing is done you can switch back to the "View" mode.
The list of encoding will be automatically updated now.
Encoding Rules
...
- Export rules - rules applied to the content during export process
- Import rules - rules applied to the content during import process
Export Rules
To create a new export rule, click on 'Add New Encode Rule' under the 'Export Rules' section. This will add a new row to the list of rules. In order to create a new rule, users should specify following attributes:
...
Encoding - The "Encoding" tab is used to additionally group export/import rules. When creating a rule, you define which encoding it belongs to. By default the choice is 'Default Encoding'.
You can create some more custom ones here and use these under "Tags" tab of your connector's settings.??
In the example above, we've created two export rules, which basically do the following: they wrap all the content in the {encodedsectionid} tag.
Encoding Check
To check how your encoding and decoding rules work, you can use the "Encoding Test Lab" section.
It allows you to virtually encode or decode a piece of content, in order to make sure rules are set correctly. To perform this check:
...
- If you choose to select content, first select the source language.
- Now click on the selected content, this will open a preview in the area to the right. In the preview area you can pick a content section you need and click the 'View Content' button. This will open the selected content's section in the encoding test lab:
- In the encoding test lab, you can switch between HTML and plain Text overview modes when selecting a content. Besides that, a "Diff" overview mode is available in the "Content to Decode" and "Compare" sections of the lab.
- After you have opened a content in the lab, you can click the "Encode" button, this will encode the content you've selected, using the default encoding rules you have.
Encoding Validation
As you can see, we have wrapped all the content into the <{encodedsectionid}> tag during encoding and then unwrapped it during decode operation.
Encoding test lab is not the only place where you can check your encoding/decoding rules. In order to check all the rules on a specific content, you can also use the "Validate" function under the text tab.
When you click "Validate" button, a content selection form appears. On this newly opened form you have to select a language and a content you want to run test on.
After you have selected a content, you click "Ok" button and system runs a virtual encode/decode operation. Shortly after, you will get a report on the operation result, it will appear in a pop-up.
If encoding and decoding rules are set correctly, and after the decoding, content's structure remains the same, no errors will be displayed.
...
One more important feature here, is that you can export/import settings from an XML: