behzad900 / micrsoft-translator-php-wrapper Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/micrsoft-translator-php-wrapper
Automatically exported from code.google.com/p/micrsoft-translator-php-wrapper
Help me
http://tratu.dichso.com -> is not working
I only seem to change course, but it does not work
1. config.inc
---------------------------------------------------------------------------
if (!defined('ACCOUNT_KEY')) {
define('ACCOUNT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx');
---------------------------------------------------------------------------
And error messages!
The authorization type you provided is not supported. Only Basic and OAuth are
supported!
Please help!
Original issue reported on code.google.com by [email protected]
on 5 Jun 2013 at 3:43
hi,
I'm getting this error, even in the example file:
Warning:
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/GetLanguagesForTranslation?$top=100&$format=json): failed to open
stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
Original issue reported on code.google.com by [email protected]
on 8 Feb 2013 at 11:41
i wrote the following online below :
translator.php?to=es&text=how
response is :
{"status":"SUCCESS","translation":"The authorization type you provided is not
supported. Only Basic and OAuth are supported\r\n"}
i have used the same account in config.inc.php provided at :
- https://datamarket.azure.com/account/keys -
if (!defined('ACCOUNT_KEY')) {
define('ACCOUNT_KEY','XXXX');
}
Original issue reported on code.google.com by [email protected]
on 17 May 2013 at 3:17
hi,
I'm trying to use your library. Even in the provided example page, I get this:
Warning:
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/GetLanguagesForTranslation?$top=100&$format=json): failed to open
stream: HTTP request failed! HTTP/1.1 401 The authorization type you provided
is not supported. Only Basic and OAuth are supported in
/mnt/Dati/Sorgenti/Web/ztranslate/resources/plugin/ZTranslate/bing_translate/cla
ss/MicrosoftTranslator.class.php on line 157
Any idea?
Original issue reported on code.google.com by [email protected]
on 12 Dec 2012 at 12:38
thanks for your translator, I tried on my local it works fine However when I
upload the same code to the webhosting it cannot allow me to translate is there
anyway that i can make it work on webhosting?
in my local
localhost/translate/translator.php?text=apple&to=zh-CHS
result:
{"status":"SUCCESS","translation":"\u82f9\u679c<\/string>"}
in my web host
xxx/translate/translator.php?text=apple&to=zh-CHS
result:{"status":"SUCCESS","translation":"The authorization type you provided
is not supported. Only Basic and OAuth are supported\r\n"}
both account key are the same as well.
Original issue reported on code.google.com by [email protected]
on 8 Mar 2013 at 6:47
What steps will reproduce the problem?
1. config.inc.php Set ACCOUNT_KEY
2. Added Translate Text
3. Select Language
What is the expected output? What do you see instead?
{"status":"ERROR","errorReason":"There is some un expected error . please check
the code"}
What version of the product are you using? On what operating system?
PHP 5.3.13
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Feb 2014 at 1:30
Attachments:
This is more of a request than anything else, I'm trying to figure out a way to
download the wav file from the output. Is this possible?
Original issue reported on code.google.com by [email protected]
on 29 Jul 2013 at 7:32
What steps will reproduce the problem?
1. translate from id(indonesian) to english
2. input any text beginning with: "kamu"
What is the expected output? What do you see instead?
should translated into "you" or "ye", but got error "Warning:
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/Translate?Text=%27kamu+suka+siapa%27&To=%27en%27&$format=Raw&$top=100)
[function.file-get-contents]: failed to open stream: HTTP request failed!
HTTP/1.1 400 Bad Request in
C:\xampp\htdocs\translate1\class\MicrosoftTranslator.class.php on line 140"
I tried the demo and tried it on my local machine. The demo site will just keep
on loading status, while in my local machine will produced this error.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2012 at 9:40
Same you intruction but not working.
I have MS key.Insert to cfc file and run but it's error.Cannot get value from
bing.
this is url to get :
https://api.datamarket.azure.com/Bing/MicrosoftTranslator/v1GetLanguagesForTrans
lation?$top=100&$format=json
and the error
The authorization type you provided is not supported. Only Basic and OAuth are
supported.
You can slove issues.
thanks
Original issue reported on code.google.com by quocvinhdo
on 18 Dec 2012 at 4:38
I got this error :
Warning:
file_get_contents(https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTrans
lator/v1/Translate?Text=%27Hello%27&To=%27fr%27&$format=Raw&$top=100)
[function.file-get-contents]: failed to open stream: HTTP request failed!
HTTP/1.1 403 Forbidden in
/homez.29/fonctions/translate/class/MicrosoftTranslator.class.php on line 140
{"status":"ERROR","errorReason":"There is some un expected error . please check
the code"}
I try 2 different keys.
Original issue reported on code.google.com by [email protected]
on 20 Mar 2013 at 3:11
I started with a vanilla install of your demo ZIP file and configured my
account key and path to cache directory within the config.inc.php files. When I
load the /translate directory in my browser, I see the following message above
the translation form:
Notice: Undefined index: class in
/var/www/htdocs/translate/class/MicrosfotTranslator.class.php on line 212.
Any ideas on why that may be the case?
Thank you for this wrapper, it looks very useful.
Original issue reported on code.google.com by [email protected]
on 24 May 2013 at 3:53
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.