Salesforce

WorldServer: How to unlock locked entries in a Translation Memory as Batch

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentWorldServer
Symptoms/Context
I have many locked TM entries in my Translation Memories and I would like to unlock them all in batches instead of opening each TM entry one by one and manually unlock it.
Resolution
It is not possible to unlock locked TM entries in Batches in WorldServer. It is only possible one-by-one by opening the TM entry and clicking on Unlock Entry and on OK. There is - however - a workaround. Please keep in mind that deleting TM entries is an irreversible action so be careful and always keep a backup, as explained in the steps below. Here is the workaround:

1- Search your Translation Memory for all TM entries in locked status following the instructions in this article.
2- Export the result of your search (all locked segments) to a TMX file by clicking on Export Result Set. Keep a copy of this export as a backup.
3- Open the exported TMX file in Notepad ++
4- Search and Replace for this element 

<prop type="x-idiom-segment-status">locked</prop>

and replace it with nothing. It will result in

<prop type="x-idiom-segment-status"></prop>

5- Repeat using Replace All. The element will be removed from the TMX file.

6-  Save your TMX file as a separate file (keep the original exported TMX).

7- In WorldServer, delete the locked entries by clicking on Delete Result Set after searching for locked TM entries only and importing the modified TMX file. The TM entries will be re-added in unlocked status. Note: if you do not delete the existing locked TM entries before the import, the import will not work.

Note: you can do this also for an entire TM, for a specific language or for a specific project using the Entry origin Search:

1- first run a Search that displays all entries for a language or from a specific project.

Refer to this article to learn how: WorldServer - How to export a translation memory (TM) and/or to this article if you want to search for entries coming from a specific project only: 

WolrdServer - how to set the Entry Origin TM Search using wildcard ("*")

2- Use Export Result Set to export the result of your search

3- Follow the instructions above to change the status f the locked segments to unlocked using Notepad ++

4- Now delete the result of your search using Delete Result Set (be careful, a deletion cannot be undone so make sure you are deleting the entries of the Search that you have exported (back up) and not of some other search.

5- After the deletion, import the modified TMX files: now no locked segments will be in your TM for that language or project.
 
Root Cause
There are no such capabilities in WorldServer at the moment. We have an enhancement request with ID WS-1765 for this capability.
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by