Last modified: 2014-11-17 09:45:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46679, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44679 - Microsoft Translator not working with new authorisation model
Microsoft Translator not working with new authorisation model
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-05 14:14 UTC by Ioannis Protonotarios
Modified: 2014-11-17 09:45 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ioannis Protonotarios 2013-02-05 14:14:55 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
Comment 1 Nemo 2013-02-05 14:34:42 UTC
Thanks for testing and filing this bug, I was quite confused too when I looked at this for bug 41435.
Comment 2 sen 2013-06-12 15:09:55 UTC
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.
Comment 3 Andre Klapper 2013-06-12 19:30:48 UTC
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!
Comment 4 Sam Reed (reedy) 2014-11-04 18:03:41 UTC
(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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links