Skip to content

Instantly share code, notes, and snippets.

@yu-tang
Created September 18, 2014 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yu-tang/1605f078ba6f10eaff1e to your computer and use it in GitHub Desktop.
Save yu-tang/1605f078ba6f10eaff1e to your computer and use it in GitHub Desktop.
How to set Microsoft Translator credentials with Java Web Start version of OmegaT
/***
* required: OmegaT 3.1.3 or later
* this file must be saved at the inside of <your-scripts-folder>/application_startup/ folder.
***/
new ConfigSlurper().parse("""
// ***** CONFIG START: EDIT BELOW *****
/*** Google Translate v2 API key ***/
//google.api.key='xxxxx'
/*** Microsoft Translator credentials ***/
microsoft.api.client_id='your-azure-app-client-id'
microsoft.api.client_secret='your-azure-app-client-secret'
/*** MyMemory email ***/
//mymemory.api.email='xxxxx@xxxxx.xx'
/*** TaaS user key ***/
//taas.user.key='xxxxx'
//***** CONFIG END: DO NOT EDIT BELOW *****
""").flatten().each {key, val -> System.setProperty key, val}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment