Title: [Plugin: Codestyling Localization] active google translate v2 Api
Last modified: August 20, 2016

---

# [Plugin: Codestyling Localization] active google translate v2 Api

 *  Resolved [infomix](https://wordpress.org/support/users/infomix/)
 * (@infomix)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-active-google-translate-v2-api/)
 * I tried active google translate, i Have api key to v2 translate. But translate
   get error. How i can setup??? On .php is still old csp_fetch_remote_content([http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&q=”](http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&q=”)
   v1 version translate,??
 * [http://wordpress.org/extend/plugins/codestyling-localization/](http://wordpress.org/extend/plugins/codestyling-localization/)

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

 *  [safi2266](https://wordpress.org/support/users/safi2266/)
 * (@safi2266)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-active-google-translate-v2-api/#post-2544012)
 * 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](http://code.google.com/apis/language/translate/v2/getting_started.html)
   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](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-codestyling-localization-active-google-translate-v2-api/#post-2544048)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [codestyling](https://wordpress.org/support/users/codestyling/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-codestyling-localization-active-google-translate-v2-api/#post-2544048)
 * Status: resolved