Translator's Workplace in Wine
These are instructions for using Translator's Workplace in Linux using Wine
This has been tested using Ubuntu 10.04 Lucid only. If you need to do this for some other distro or version of Linux, then there may be some variations to the actual steps you need to take. Please remember that Linux is case sensitive.
You can use whatever install method you normally use such as running System -> Administration -> Synaptic Package Manager or using the command line. Find Wine in the Synaptic list and mark it for installation. This step should automatically install wine and wine-gecko. If installing Wine 1.2.2 it may also install winetricks for you, so the next step can be skipped.
Skip this step if you have installed a recent version of Wine since it installs winetricks for you already. After installing Wine and before you install Translator's Workplace, you will need to get a specific Windows DLL that is currently missing. The best way to do that for Wine is to use a script called winetricks. Using your browser of choice, go to:
Follow the instructions for saving this script. Basically you right click on the script link and choose Save Link As, then navigate to some place in your home folder and save it. Remember the location where you saved this.
If you installed Wine and downloaded winetricks a year ago, but never ran them, follow these steps. If you are just now downloading Wine and winetricks, see the following steps.
- Open a terminal (Applications -> Accessories -> Terminal)
- Navigate to the location above where you saved winetricks, for instance
- At the prompt type:
- In the dialog that comes up, scroll down and find
vcrun6and click it so that it has a check mark.
- Click OK
A download will now take place which may take a few minutes, depending on your connection. A license agreement will pop up which you must agree to for the installation to proceed. Once the installation step is complete you will be back at a prompt.
Later versions of winetricks have changed. You no longer need to run this from a terminal. Instead follow these steps:
- Run winetricks from the Wine menu (Applications > Wine > Winetricks)
- in the first dialog choose the default which is
Select the default wineprefixthen click
- in the second dialog choose
Install a Windows DLL or component, then click
- a list should come up, scroll down and find
vcrun6and click that then click
- agree to the license terms and the install should complete
Install Translator's Workplace
- Insert the TW5 DVD if you have not already done so.
- In the terminal type:
- Follow the rest of the install steps as you are prompted, this will take some time.
You will see various things scroll by in the terminal while this installation is taking place. I did nothing about these messages and the install worked fine. Once you are back at the prompt you can close the Terminal and eject the TW DVD.
If using current versions of Wine and winetricks, or if your shortcuts do not look like what is described in these steps, do not follow these steps. Please see the notes at the end of this section.
If using older versions of Wine and winetricks then follow these steps. After the installation is complete, at this point you can not run TW5 from within Wine because the links provided have some errors that need to be corrected. This is the simplest way I have found for making these corrections. For those of you who know how to find the actual .desktop files and correct those instead, feel free to do that. It is very important that these corrections are made before you try to run TW for the first time.
- Go to Application -> Wine -> Programs -> Translator's Workplace 5.0 and right click on Translator's Workplace 5, then choose Add this launcher to panel.
- Do the same thing for Find Infobases
It is very important that you Right Click and add this to the panel so that it can be corrected.
Once you have these 2 shortcuts on the panel, they can now be corrected. To make the corrections:
- Right click on the Translator's Workplace 5 shortcut that you just added to the panel and choose Properties.
- click in the Command: line and hit the End key.
- For this last section not in quotes, the back slashes need to be doubled and 2 letters made into capitals, so it will look like this:
- click the Close button.
Next we will make some similar corrections to the Find InfoBases shortcut:
- Right click on the Find Infobases shortcut you added to the panel and choose Properties.
- Again click in the Command: line and hit the End key.
- For this last section not in quotes, the back slashes need to be doubled and the back slash at the very end taken off completely, so it will look like this:
- Click the Close button.
For current versions of Wine and winetricks, trying to follow the steps above did not work. A shortcut was put on my desktop that did in fact run Translator's Workplace correctly. You can also run it by using the menu and going to Application > Wine > Programs > Translator's Workplace 5.0 > Translator's Workplace 5. However there is still a problem trying to use the Find InfoBases. I did not have a shortcut for this placed on my Desktop. You can run it from the same place as Translator's Workplace 5 but you have to fix the path for this to actually find any infobases. The capitalization is not correct in the path. But you can click Browse and go to
C:\users\Public\Application Data\SIL\TW5\nfo and the search should then work correctly. You will have to Browse to this path each time you want to do a search. I have not yet found out how to correct this.
Run Translator's Workplace
For current versions and a new install, just use the shortcut provided on the Desktop, or by using the menu and going to Application > Wine > Programs > Translator's Workplace 5.0 > Translator's Workplace 5. If for some reason this did not show up in your Wine menu, which happened to me on Lucid, then instead go to Application > Wine > Browse C: Drive > Program Files > SIL > TW5 > Views.exe for TW and Nfofind for Find InfoBases.
For older installs, you can click on the shortcuts on the panel that we just corrected and both of these should run, giving proper toolstrips and menus. Do not try to use the links under Applications -> Wine, etc. unless you know how to fix the related .desktop files and have already done so. If TW is run incorrectly, the first time this happens it puts erroneous things in the registry and potentially will not run correctly after that.
At this point it is a good idea to delete the two items that were put on your desktop during the install, because they also have errors. So single click on Translator's Workplace 5.lnk and hit the delete key, then single click on Translator's Workplace 5.desktop and hit the delete key.
It is also possible to edit menu items by right clicking on Applications and choosing Edit Menus. But I have been unsuccessful getting this work for TW in Wine. I can go to the Wine menu items and make the same corrections as I did above to the panel shortcuts, but they do not work. After some experimenting I have decided to leave the instructions the way they are for now, using the panel shortcuts, and if I find a better way of making these corrections I will change this instruction page at that time.
Please leave comments here if you find any problems.