microsoft-translator-java-api
microsoft-translator-java-api copied to clipboard
shoud allow the setting of the content-type... it is now hardcoded into the class to plain/text , which is not good
You should allow the setting of the content-type... it is now hardcoded into the class to plain/text , which is not good. One should be able to set it as it wishes.
This is a problem description:
http://social.microsoft.com/Forums/en-US/translator/thread/fa4063eb-3cf9-4b0b-872c-849623256d71
Meanwhile I am downloading the sources and will do it myself (set a global static variable just as the appid key, to be set when needed)
Regards.
It looks like a static setter method com.memetix.mst.MicrosoftTranslatorAPI.setContentType(String)
was added in commit 790a943854b50e3c1e191d167f68a80126419cf7, but it appears to control the Content-Type header, not the Translate/TranslateArray contentType parameter(s).