Installation
Follow the following steps to install the plugin successfully.
- Go here: https://datamarket.azure.com/dataset/1899a118-d202-492c-aa16-ba21c33c06cb .
- Click the green "SIGN UP" button next to the package that you want (if you don't want to pay for a higher character limit, select the last option, which is 2,000,000 characters per month). A new page will open.
- Simply click the checkbox to accept their terms and click the green "SIGN UP" button on this page as well.
- Now go here: https://datamarket.azure.com/developer/applications/ .
- On that page, click the green "REGISTER" button. A new page will open.
- Fill out the form as follows:
- Client ID: Whatever you want, be sure to write it down as you'll need it later.
- Name: Whatever you want.
- Client secret: Leave the default value there and write it down as you'll need it later.
- Redirect URI: This can be anything, as the translation plugin does not use it, however it is a required field. I usually enter https://google.com/ here.
- Leave "Enable subdomain access" unchecked.
- Description: You can leave this empty if you want.
- Click the green "CREATE" button.
- Place the plugin JAR in plugins folder of your server.
- Start your server and let it generate the default config file.
- Open the config file in plugins/LocalCraft/config.yml.
- Remove the two quotes after clientID and clientSecret.
- After clientID, insert the Client ID you wrote down earlier.
- After clientSecret, insert the Client secret you wrote down earlier.
- It should look something like this: clientID: My-Plugin clientSecret: gtn=dGq/53e9OWj/XqlgcaurhNRNDPBZ5B4FSRzIb=Tq
- You can also specify your character limit in the config file. After the characterLimitResetDate entry you should enter this: {CURRENTDAY}/{NEXTMONTH}/{CURRENTYEAR}, replacing the {} strings with their numeric representations, for example: 31/12/2013
- Save the config.yml file and reload the server.
If everything went well, the plugin should now load correctly and enable itself. If you get a message in the console about not having entered a client ID or client secret, you most likely have made a mistake in the last few steps. If you get a "Server returned HTTP response code: 400" error when the plugin tries to translate, you have probably entered an invalid client ID or client secret.
If all else fails
If you can't get it to work, you can use the public client ID and client secret I created for the testing of this plugin. It will work, guaranteed, however it has a limit of 2,000,000 characters per month, and it is publicly available here so the limit will be reached faster than when using your own client ID and client secret.
The data:
clientID: Qub1-LocalCraft
clientSecret: 1RuJPbM7OGExvkPhGSXF9mradsdrtgvEFt8sCYbQPEM=
Questions?
If you have any questions, ask them here or send me a message.
Comments