GET A FREE CONSULTATION OR SAMPLE TO GET YOUR PROJECT GOING.

Yes, I want my consultaion

Reader Question: OmegaT Machine Translation at Your Fingertips

Recently, we’ve received a comment from a reader asking how to enable Google Translate (GT) in OmegaT. This post answers their question in detail. It doesn’t imply, of course, that we rely on machine translation (MT) in our regular work for clients. Quite the contrary, we are raving fans of traditional translation and believe MT has a long way to go to before it’s usable beyond basic translation “just for understanding.” Neither does it mean that we use GT to translate documents subject to confidentiality agreements. This how-to is rather designed for those OmegaT users who need MT for very specific applications such as translating and post-editing huge amounts of Internet content. It might be also helpful for in-house translation departments interested in assessing whether MT has any promise for them.

Step 1. Configure Google Translate API

  1. To use GT in OmegaT, you must enable Google Translate API in your Google account. If you don’t have one, visit this page to sign up.
  2. Log in and go to Google apis.
  3. Select Services tab and enable Translate API by clicking it.
  4. Select API Access tab to generate your unique API key. The generated key will display on this page, e.g. 425gjkdkUofmfbbf41549841FRHBOAHF.
  5. Select Billing tab and then Google Checkout.
  6. Add a new payment method, that is your credit card details.
  7. Check the terms of service checkbox and click Complete your purchase.
  8. The Billing tab will confirm that billing is enabled.

Step 2. Modify OmegaT launch file

This instruction is based on Windows 7, but should be similar under other operating systems.

    1. Open OmegaT installation folder. In my case, it is C:Program Files (x86)OmegaT.
    2. Use a text editor to open the BAT file(s) you use to launch OmegaT. This is the recommended way to launch the program. If you don’t use it, you can’t benefit from a tokenizer, e.g. for English to Russian translation in my case. More information about configuring a BAT file is available here.
    3. Modify the launch string by adding “-Dgoogle.api.key=your API key” before “OmegaT.jar.” In my case, the entire string is as follows:

java -Xmx1024M -jar –Dgoogle.api.key=425gjkdkUofmfbbf41549841FRHBOAHF OmegaT.jar %* –ITokenizer=org.omegat.plugins.tokenizer.SnowballEnglishTokenizer

  1. Save the file and double-click it to launch OmegaT.

Step 3. Configure OmegaT Settings

  1. Select Options > Machine Translate.
  2. Check Google Translate v2.

GT will charge you $20 per 1 million characters. You can check your usage under Google apis > Billing or Reports. You will be automatically charged at the end of each monthly billing cycle and receive an email notification.

Feel free to ask questions if you have any difficulty following this how-to.

One comment

  • Cassy says:

    Great tips! thanks for sharing. Also, it is good that you clarified that all your translation projects are not being translated using machines. At least, this area has been made clear to us readers.

Add comment


About the Author

Roman Mironov
Roman Mironov
CEO & Founder

As the founder of Velior, Roman has had the privilege of being able to turn his passion for languages into a business. He has over 15 years of experience in the translation industry. Roman has helped dozens of clients increase sales by making their products appealing for speakers of other languages.