Title: Use dynamic localization
Last modified: February 13, 2018

---

# Use dynamic localization

 *  Resolved [benharold](https://wordpress.org/support/users/benharold/)
 * (@benharold)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/use-dynamic-localization/)
 * I’d like to suggest setting the language of the captcha plugin dynamically. Change
   lines 609-610 of `google-captcha.php` to:
 *  $language = substr(get_locale(), 0, 2);
    $api_url = sprintf( “[https://www.google.com/recaptcha/api.js?%srender=explicit&hl=%s&#8221](https://www.google.com/recaptcha/api.js?%srender=explicit&hl=%s&#8221);,
   $callback, $language);
 * This way the captcha will use whatever language that WordPress is using.

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

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/use-dynamic-localization/#post-9977983)
 * Hi,
 * Thank you for contacting us!
 * Thank you for your kind suggestion. We will consider it, and if we deem it necessary,
   we will make the necessary changes into the future release of our Google Captcha(
   reCAPTCHA) plugin.
 *  [Mr.NoComment](https://wordpress.org/support/users/mrnocomment/)
 * (@mrnocomment)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/use-dynamic-localization/#post-10177416)
 * Thanks benharold,
    Your suggestion worked for me, otherwise the plugin is always
   in English no matter what!

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

The topic ‘Use dynamic localization’ is closed to new replies.

 * ![](https://ps.w.org/google-captcha/assets/icon-256x256.gif?rev=2565249)
 * [reCaptcha by BestWebSoft](https://wordpress.org/plugins/google-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/google-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-captcha/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Mr.NoComment](https://wordpress.org/support/users/mrnocomment/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/use-dynamic-localization/#post-10177416)
 * Status: resolved