Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: not translating pages completely in vbulletin 4.1.8

  1. #11
    Junior Member
    Join Date
    Sep 2011
    Posts
    9

    Default

    it is not well for me. Do you need my admin account access to forum and Microsoft API ?



    microsoftbyazuretest.php test result is:

    Starting test for Microsft Translation API by Azure

    Full token:
    {"error":"invalid_request","error_description":"ACS90011: The required field \u0027client_id\u0027 is missing. \r\nTrace ID: 17beac4d-d6ee-4b61-8e51-998aefa90122\r\nTimestamp: 2011-12-14 08:27:56Z"}

    Test result: "ArgumentException: No bearer information found in the token : ID=3737.V2_Json.Translate.2472B68D"
    Test error:
    Connection time (ms): 128.82421875
    http://insurancemaking.com/microsoftbyazuretest.php

  2. #12
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Yes please PM access details to your admincp, and ftp (have to run some specyfinc test if something will still be wrong) and access to Microsoft API to check if everything is ok
    Last edited by r.dziadusz; 14-12-11 at 13:36.

  3. #13
    Junior Member
    Join Date
    Sep 2011
    Posts
    9

    Default

    Quote Originally Posted by r.dziadusz View Post
    Yes please PM access details to your admincp, and ftp (have to run some specyfinc test if something will still be wrong) and access to Microsoft API to check if everything is ok
    I sent, thank you

  4. #14
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    I'm checking it

  5. #15
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Is the problem solved? IF you have questions about this issue please ask, for any other please open new thread

  6. #16
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    Quote Originally Posted by begin View Post
    Starting test for Microsft Translation API by Azure

    Full token:
    {"error":"invalid_request","error_description":"ACS90011: The required field \u0027client_id\u0027 is missing. \r\nTrace ID: 17beac4d-d6ee-4b61-8e51-998aefa90122\r\nTimestamp: 2011-12-14 08:27:56Z"}

    Test result: "ArgumentException: No bearer information found in the token : ID=3737.V2_Json.Translate.2472B68D"
    Test error:
    Connection time (ms): 128.82421875
    I'm getting the same error

  7. #17
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    please use this code for test:
    PHP Code:
    <?php
    require_once('./global.php');

    function 
    get_token(){
        global 
    $vbulletin;
        
    $obj_connection curl_init();
        
    $arr_query_bits = array (
             
    'grant_type' => 'client_credentials',
             
    'scope' => 'http://api.microsofttranslator.com',
             
    'client_id' => $vbulletin->options['vbenterprisetranslator_Microsoft_key'],
             
    'client_secret' => $vbulletin->options['vbenterprisetranslator_Microsoft_secret']
              );
             
    $str_query http_build_query($arr_query_bits);

             
    curl_setopt($obj_connectionCURLOPT_URL'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13');
             
    curl_setopt($obj_connectionCURLOPT_HEADER0);
             
    curl_setopt($obj_connectionCURLOPT_FOLLOWLOCATION1);
             
    curl_setopt($obj_connectionCURLOPT_RETURNTRANSFER1);
             
    curl_setopt($obj_connectionCURLOPT_POSTFIELDS$str_query);
             
    curl_setopt($obj_connectionCURLOPT_SSL_VERIFYPEERFALSE);
             
    curl_setopt($obj_connectionCURLOPT_POSTTRUE);
             
    print_r('Full token: </br>'.curl_exec($obj_connection).'</br></br>');
             
    $token =  json_decode (curl_exec($obj_connection));
             
    curl_close($obj_connection);         
             return 
    'Authorization: Bearer '.$token->{'access_token'};
    }

    echo 
    'Starting test for Microsft Translation API by Azure<br/><br/>';
    $connection curl_init();
    curl_setopt($connectionCURLOPT_URL'http://api.microsofttranslator.com/V2/Ajax.svc/Translate?&from=pl&to=en&text=Witaj!');
    curl_setopt($connectionCURLOPT_HEADER0);
    curl_setopt($connectionCURLOPT_FOLLOWLOCATION1);
    curl_setopt($connectionCURLOPT_RETURNTRANSFER1);
    curl_setopt($connectionCURLOPT_SSL_VERIFYPEERfalse);
    curl_setopt($connectionCURLOPT_HTTPHEADER, array(get_token()));
    $str_response curl_exec($connection);
    $time microtime(true) * 1000;
    $result curl_exec($connection);
    $time microtime(true) * 1000 $time;
    echo 
    'Test result: '.$result."<br/>\n";
    echo 
    'Test error: '.curl_error($connection)."<br/>\n";
    curl_close($connection);
    echo 
    'Connection time (ms): '.$time;


    ?>

  8. #18

    Default

    This text was not translated, because it is originally in English I don't understand. I don't find the correct APIs it's a horror! Why you dont put Images up? Or ANY Tutorial on how to fill the correct APIs in...

  9. #19
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Ok here it is:
    1.) Go to : Microsoft Translator | Windows Azure Marketplace
    2.) Login/Register
    3.) Choose youre subscription:

    4.) Go to: https://datamarket.azure.com/developer/applications/
    5.) Click the "REGISTER" button
    6.) Fill all required fields and click "CREATE" button.
    7. Get the values from ClientID and Secret - bordered-insert it in your admincp:
    ClientID -> Microsoft Comercial Translation API key by Azure,
    Secret ->Microsoft Comercial Translation API secret by Azure
    Last edited by r.dziadusz; 09-04-12 at 00:07.

  10. #20

    Default

    Thank you, thats excactly what i wanted (!!) Its working now, thanks.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •