Created
September 18, 2014 15:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* 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