Last modified: 2014-11-17 09:45:58 UTC
Microsoft has changed their authorisation model and there is also a quota now limiting the free translations to 2,000,000 characters per month. The idea is that, first you subscribe to the Microsoft Translator API on Azure Marketplace and then you register your wiki with it. Then you get a Client ID and a Client secret which, according to documentation, are both needed to access the service. So Translate as it is now, cannot use Microsoft Translator service (unless one has an older Bing API Key - like for example in translatewiki.net). The registration process and how to obtain access token (with sample php code) is described here: http://msdn.microsoft.com/en-us/library/hh454950.aspx
Thanks for testing and filing this bug, I was quite confused too when I looked at this for bug 41435.
i use chinese so the other just not work for me.i see translate.net is work fine with bing api,but the source not,even trunk,so i try to fix it by my self,here is what i do: http://see.sl088.com/wiki/%E6%89%A9%E5%B1%95:Translate/%E5%BE%AE%E8%BD%AF%E8%BE%85%E5%8A%A9%E6%94%AF%E6%8C%81%E4%BF%AE%E6%94%B9 and i put the mod source to https://code.google.com/p/mediawiki-translate-slboat-mod/ you just need mod one file in it: /Translate/webservices/MicrosoftWebService.php and add this three line to localsetting.ini $wgTranslateTranslationServices['Microsoft']['key'] = "no need anymore" ; //just for need it,dont fit anything $wgTranslateTranslationServices['Microsoft']['clientid'] = "you_ms_id" ; //your appid $wgTranslateTranslationServices['Microsoft']['clientSecret'] = "yousercrtinhere=" ; //you sercret Nemo suggestion me to submit the patch...but i still not mush know how..so may be you can review this,and make it as a patch for me...i really love this extension,it's great.
Hi sen, to submit a patch, you are welcome to use Developer access https://www.mediawiki.org/wiki/Developer_access to submit a patch as a Git branch directly into Gerrit: https://www.mediawiki.org/wiki/Git/Tutorial Putting your branch in Git makes it easier to review it quickly. Thanks again! Your contribution is appreciated!
(In reply to sen from comment #2) > i use chinese so the other just not work for me.i see translate.net is work > fine with bing api,but the source not,even trunk,so i try to fix it by my > self,here is what i do: > http://see.sl088.com/wiki/%E6%89%A9%E5%B1%95:Translate/ > %E5%BE%AE%E8%BD%AF%E8%BE%85%E5%8A%A9%E6%94%AF%E6%8C%81%E4%BF%AE%E6%94%B9 > and i put the mod source to > https://code.google.com/p/mediawiki-translate-slboat-mod/ > you just need mod one file in it: > /Translate/webservices/MicrosoftWebService.php > and add this three line to localsetting.ini > $wgTranslateTranslationServices['Microsoft']['key'] = "no need anymore" ; > //just for need it,dont fit anything > $wgTranslateTranslationServices['Microsoft']['clientid'] = "you_ms_id" ; > //your appid > $wgTranslateTranslationServices['Microsoft']['clientSecret'] = > "yousercrtinhere=" ; //you sercret > > Nemo suggestion me to submit the patch...but i still not mush know how..so > may be you can review this,and make it as a patch for me...i really love > this extension,it's great. It looks like your code is quite a bit out of date with master now :( If you wanted to update it, and then provide us with diff(s) of what changes you actually made ontop of master at a specific point, upstreaming it should be relatively easy