If you are attempting to import the content of a TMX Translation Memory and, when you reach the "Specify Language Conversion" page of the Import Wizard you see an empty list, you are most likely dealing with a TMX translation memory that contains characters or entities not allowed by the TMX standard, or is otherwise malformed or corrupted. Déjà Vu cannot work with TMX files that have these problems.
There are several things you can do:
- If you have access to one, you can use a TMX validator to check the file and alert you to any problems in its contents. You may be able to fix these problems yourself by editing the TMX file directly using a text editor (e.g. Notepad).
- You also have the option of open in the file with an application capable of editing TMX and attempting to repair the file that way.
- Use a PowerShell script we have prepared to deal with this situation.
We have developed a script that you can download and run that will analyze a TMX file and alert you to common problems with TMX files. The script will locate certain characters that are not allowed by the TMX standard and replace them with spaces, which may be enough to make the file usable in Déjà Vu. To run this script:
- Download the script file.
- Extract the content of the downloaded zip file to the folder where the TMX file you wish to process is stored.
- Open a Powershell window:
- Click on the Windows icon in the taskbar.
- Type: PowerShell.
- Press Enter.
- Change the active directory to the folder where you are storing the TMX file.
- Type the following command (with the name of the file you want to process):
- Press the Enter key.
- Wait for the script to finish running. It will output a message to let you know it is done, or if it found a problem and could not finish.
- If the script finishes correctly, the TMX file you ran it on should now be usable in Déjà Vu.
If after step 5 you see a message like this:
File .\Fix-TMX.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
read this article for more information about how to proceed.