Deleting all TUs from a specific project from a TM

Sometimes you want to remove all TUs from a certain project from a TM.

Removing all TUs from a recent project

Using a text editor

  • Open the TMX file in a text editor and remove the last TUs.
  • Make sure that you do not remove the closing tags </body> and </tmx>.

Using CafeTran

  • Open TMX in TMX Editor mode (Select ‘Edit TMX Memory’ in the ‘New Project’ section in the Project Manager).
  • Type the range of TUs you wish to delete in the filter box above the source box (e.g.: 1-25)
  • Choose Task > Remove filtered TMX units.

Removing all TUs from a specific project from a certain TM

In cases where you have updated your TM with newer projects, the TUs might not be in their ‘natural order’. If this is the case, more drastic measures will be necessary.

  • Reload the old project.
  • Open the TM from which you want to remove TUs.

Text below needs modification. How about a solution where properties are used? Filter on specific file / project properties and then delete filtered TUs?

Here is a TM ‘Test.TMX’, opened in TMX edit mode, that contains five segments:

1.png

Imagine that you have created a new project, with two segments and erroneously attached the TM ‘Test.TMX’:

2.png
  • Insert a unique string to the start of all target segments in your current project:
3.png
  • Check the result:
4.png
  • Dump the modified TUs in the attached TM:
5.png
  • Close your project.
  • Open TM ‘Test.TMX’ in TMX edit mode:
6.png
  • Filter on the unique string:
7.png
  • Remove the filtered TUs from the TM ‘Test.TMX’ (loaded as a project!):
8.png
  • Check the confirmation:
9.png
  • Save the project in order to save the TM ‘Test.TMX’:
10.png
  • Optionally, check your TM in a text editor:
11.png
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License