Support » Plugin: Codestyling Localization » [Plugin: Codestyling Localization] active google translate v2 Api

Viewing 2 replies - 1 through 2 (of 2 total)
  • safi2266

    (@safi2266)

    Hi infomix
    after buying API Key I tried to replace the line

    $res = csp_fetch_remote_content("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&q=".urlencode($msgid)."&langpair=en%7C".$_POST['destlang']);

    with this one

    $res = csp_fetch_remote_content("https://www.googleapis.com/language/translate/v2?key=api_key_goes_here&q=".urlencode($msgid)."&source=en%26target=ar");

    according to this but the error message change to

    Sorry, Google Translation is not available

    I not code expert and hope to someone hlep us to fix this

    Regards,
    SaFi

    Plugin Author codestyling

    (@codestyling)

    Has been implemented with version 1.99.17 and works now along with the additional Microsoft API as you want it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Codestyling Localization] active google translate v2 Api’ is closed to new replies.