Tips and Tricks

Tags in Memsource

Tags represent non-translatable text. In some other CAT tools, they might be called placeholders. This non-translatable text can represent some variables or special formatting tags. It is very important to copy the tags from source to target so that the formatting and variables are preserved correctly in the exported target file.

For most file formats, you can display the content of the tags by expanding them (by pressing Ctrl+Shift+E or going to the Edit menu, clicking on Tags and Expand Tags).

Tag Types

There are two types of tags—paired and unpaired tags:

  1. Paired tags come in a pair and represent formatting that spans across a section of text. For instance, a section of text in a segment might be in a different font than the rest, or a section of text is highlighted, etc. Paired tags can be inserted via selecting the text around which the paired tags should be inserted and hitting F8.
  2. Unpaired tags can represent, for instance, the position of a footnote in a segment or can indicate a joined segment. Unpaired tags are also inserted via F8 in the Memsource Editor.

Joined Segments tags are a special kind of unpaired tag. Please see Joining and Splitting Segments for more details.

Working with tags in Memsource Editors

As mentioned above, it is important to keep tags in the target as well as in the source. If tags are missing in the target, Memsource will do its best to auto-complete them in the background when the completed target file is being generated. But this is not always possible, so you should always add tags manually. They should be inserted in such a way that their position and order correspond to the source as much as possible.

Insert tags to target

There are two options for inserting tags.

  • Use Editor's menu Edit > Tags and select the option you nee
  • Use the shortcuts (described in the Editor's menu)

Menu for tags

Editing a Tag's Content

Sometimes, experienced users may need to edit the content of a tag (such as the href attributes in anchor tags).

  1. Press CTRL+SHIFT+E or click on Edit, Tags, then Expand Tags to visualize tag content.
  2. In the Memsource Editor for the web, click on the tag you want to edit and start editing. In the desktop editor, click on the tag and then hit F2 to edit it.

The edited tag will be displayed in yellow color to indicate it is different from the source tag.

Editting tag content

Custom Tags

A user can add a custom tag or custom paired tags into the target. In the Editor's menu, select Edit, Tags, and choose Create Custom Tag or Create Custom Paired Tag and then edit the content of the tag as needed. A custom tag will be displayed as a yellow number (instead of the standard blue number).

Note: The adding of custom tags is available only for formats supporting tags in the completed file (such as HTML).

Quality Assurance

To check whether tags have been properly placed in all target segments, use the Quality Assurance feature in the Memsource Editor and make sure the Quality Assurance Settings in your Memsource project have been set up to check tags (Tags/Formatting and Join tags {j} must be selected).

Missing or incorrect tags can prevent Memsource from exporting a valid translated document. The error will be displayed on the project page. If this happens, open the editor, run the QA check, and fix all Tags/Formatting errors.

Importing files with non-translatable text

Convert to Memsource Tags

In most file types, Project managers can use the Convert to Memsource Tags option to convert certain parts of texts that should not be translated, such as [codes in square brackets], {variables}, codes containing numbers and letters (specified using regular expressions), any proper names, etc. to Memsource tags.

In this case, these will be replaced with non-paired tags, and thus, protected from translation.
Translators can use the Ctrl+Shift+E keyboard shortcut to display the content of tags in the Memsource Editor for better context.

Escaping Tags

Memsource is using curly brackets to mark the tags. If you have a file with a number in curly brackets, for example, {1}, and do not want to use the "Convert to Memsource tag" feature, such number will be automatically escaped in the Editor: \{1\} to stay as a plain translatable text and not a tag. The Completed file will have the number in its original, unescaped, version.