diff --git a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha.ini b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha.ini index 94f8bd9e11172..d647f3c8ef1c5 100644 --- a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha.ini +++ b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha.ini @@ -57,7 +57,7 @@ PLG_RECAPTCHA_ERROR_RECAPTCHA_NOT_REACHABLE="Unable to contact the reCAPTCHA ver PLG_RECAPTCHA_ERROR_UNKNOWN="Unknown error." PLG_RECAPTCHA_ERROR_VERIFY_PARAMS_INCORRECT="The parameters to verify were incorrect, make sure you are passing all the required parameters." ; Privacy notice -PLG_RECAPTCHA_PRIVACY_CAPABILITY_IP_ADDRESS="The reCAPTCHA plugin integrates with Google's reCAPTCHA system as a spam protection service. As part of this service, the IP of the user who is answering the captcha challenge is transmitted to Google." +PLG_RECAPTCHA_PRIVACY_CAPABILITY_IP_ADDRESS="The reCAPTCHA plugin integrates with Google's reCAPTCHA system as a spam protection service. As part of this service, the IP address of the user answering the captcha challenge is transmitted to Google." ; Uncomment(remove the ";" from the beginning of the line) the following lines if reCAPTCHA is not available in your language ; When uncommenting, do NOT translate PLG_RECAPTCHA_CUSTOM_LANG ; As of 01/01/2012, the following languages do not need translation: en, nl, fr, de, pt, ru, es, tr diff --git a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.ini b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.ini index f461f007f0de8..d406470df210c 100644 --- a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.ini +++ b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.ini @@ -3,30 +3,30 @@ ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 +PLG_CAPTCHA_RECAPTCHA_INVISIBLE="CAPTCHA - Invisible reCAPTCHA" PLG_CAPTCHA_RECAPTCHA_INVISIBLE_XML_DESCRIPTION="This CAPTCHA plugin uses the Invisible reCAPTCHA service. To get a site and secret key for your domain, go to https://www.google.com/recaptcha." -PLG_CAPTCHA_RECAPTCHA_INVISIBLE="CAPTCHA - Invisible reCAPTCHA " - ; Params -PLG_RECAPTCHA_INVISIBLE_PUBLIC_KEY_LABEL="Site Key" -PLG_RECAPTCHA_INVISIBLE_PUBLIC_KEY_DESC="Used in the JavaScript code that is served to your users." -PLG_RECAPTCHA_INVISIBLE_PRIVATE_KEY_LABEL="Secret Key" -PLG_RECAPTCHA_INVISIBLE_PRIVATE_KEY_DESC="Used in the communication between your server and the reCAPTCHA server. Be sure to keep it a secret." -PLG_RECAPTCHA_INVISIBLE_BADGE_LABEL="Badge" -PLG_RECAPTCHA_INVISIBLE_BADGE_DESC="Positioning of the reCAPTCHA badge." -PLG_RECAPTCHA_INVISIBLE_BADGE_BOTTOMRIGHT="Bottom right" PLG_RECAPTCHA_INVISIBLE_BADGE_BOTTOMLEFT="Bottom left" +PLG_RECAPTCHA_INVISIBLE_BADGE_BOTTOMRIGHT="Bottom right" +PLG_RECAPTCHA_INVISIBLE_BADGE_DESC="Positioning of the reCAPTCHA badge." PLG_RECAPTCHA_INVISIBLE_BADGE_INLINE="Inline" -PLG_RECAPTCHA_INVISIBLE_TABINDEX_LABEL="Tabindex" -PLG_RECAPTCHA_INVISIBLE_TABINDEX_DESC="The tabindex of the challenge." -PLG_RECAPTCHA_INVISIBLE_CALLBACK_LABEL="Callback" +PLG_RECAPTCHA_INVISIBLE_BADGE_LABEL="Badge" PLG_RECAPTCHA_INVISIBLE_CALLBACK_DESC="(Optional) JavaScript callback, executed after successful reCAPTCHA response" -PLG_RECAPTCHA_INVISIBLE_EXPIRED_CALLBACK_LABEL="Expired callback" -PLG_RECAPTCHA_INVISIBLE_EXPIRED_CALLBACK_DESC="(Optional) JavaScript callback, executed when the reCAPTCHA expired" -PLG_RECAPTCHA_INVISIBLE_ERROR_CALLBACK_LABEL="Error callback" +PLG_RECAPTCHA_INVISIBLE_CALLBACK_LABEL="Callback" PLG_RECAPTCHA_INVISIBLE_ERROR_CALLBACK_DESC="(Optional) JavaScript callback, executed when the reCAPTCHA encounters an error" - +PLG_RECAPTCHA_INVISIBLE_ERROR_CALLBACK_LABEL="Error callback" +PLG_RECAPTCHA_INVISIBLE_EXPIRED_CALLBACK_DESC="(Optional) JavaScript callback, executed when the reCAPTCHA expired" +PLG_RECAPTCHA_INVISIBLE_EXPIRED_CALLBACK_LABEL="Expired callback" +PLG_RECAPTCHA_INVISIBLE_PRIVATE_KEY_DESC="Used in the communication between your server and the reCAPTCHA server. Be sure to keep it a secret." +PLG_RECAPTCHA_INVISIBLE_PRIVATE_KEY_LABEL="Secret Key" +PLG_RECAPTCHA_INVISIBLE_PUBLIC_KEY_DESC="Used in the JavaScript code that is served to your users." +PLG_RECAPTCHA_INVISIBLE_PUBLIC_KEY_LABEL="Site Key" +PLG_RECAPTCHA_INVISIBLE_TABINDEX_DESC="The tabindex of the challenge." +PLG_RECAPTCHA_INVISIBLE_TABINDEX_LABEL="Tabindex" +; Privacy notice +PLG_RECAPTCHA_INVISIBLE_PRIVACY_CAPABILITY_IP_ADDRESS="The Invisible reCAPTCHA plugin integrates with Google's reCAPTCHA system as a spam protection service. As part of this service, the IP address of the user answering the captcha challenge is transmitted to Google." ; Error messages -PLG_RECAPTCHA_INVISIBLE_ERROR_NO_PRIVATE_KEY="reCAPTCHA plugin needs a secret key to be set in its parameters. Please contact a site administrator." -PLG_RECAPTCHA_INVISIBLE_ERROR_NO_PUBLIC_KEY="reCAPTCHA plugin needs a site key to be set in its parameters. Please contact a site administrator." PLG_RECAPTCHA_INVISIBLE_ERROR_EMPTY_SOLUTION="Empty solution not allowed." PLG_RECAPTCHA_INVISIBLE_ERROR_NO_IP="For security reasons, you must pass the remote IP address to reCAPTCHA." +PLG_RECAPTCHA_INVISIBLE_ERROR_NO_PRIVATE_KEY="reCAPTCHA plugin needs a secret key to be set in its parameters. Please contact a site administrator." +PLG_RECAPTCHA_INVISIBLE_ERROR_NO_PUBLIC_KEY="reCAPTCHA plugin needs a site key to be set in its parameters. Please contact a site administrator." diff --git a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.sys.ini b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.sys.ini index a994fdf62cfab..04e89ed005185 100644 --- a/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.sys.ini +++ b/administrator/language/en-GB/en-GB.plg_captcha_recaptcha_invisible.sys.ini @@ -3,5 +3,5 @@ ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; Note : All ini files need to be saved as UTF-8 +PLG_CAPTCHA_RECAPTCHA_INVISIBLE="CAPTCHA - Invisible reCAPTCHA" PLG_CAPTCHA_RECAPTCHA_INVISIBLE_XML_DESCRIPTION="This CAPTCHA plugin uses the Invisible reCAPTCHA service. To get a site and secret key for your domain, go to https://www.google.com/recaptcha." -PLG_CAPTCHA_RECAPTCHA_INVISIBLE="CAPTCHA - Invisible reCAPTCHA " diff --git a/plugins/captcha/recaptcha_invisible/recaptcha_invisible.php b/plugins/captcha/recaptcha_invisible/recaptcha_invisible.php index 14f724c58b511..d85e60ce2c32f 100644 --- a/plugins/captcha/recaptcha_invisible/recaptcha_invisible.php +++ b/plugins/captcha/recaptcha_invisible/recaptcha_invisible.php @@ -26,6 +26,24 @@ class PlgCaptchaRecaptcha_Invisible extends \JPlugin */ protected $autoloadLanguage = true; + /** + * Reports the privacy related capabilities for this plugin to site administrators. + * + * @return array + * + * @since __DEPLOY_VERSION__ + */ + public function onPrivacyCollectAdminCapabilities() + { + $this->loadLanguage(); + + return array( + JText::_('PLG_CAPTCHA_RECAPTCHA_INVISIBLE') => array( + JText::_('PLG_RECAPTCHA_INVISIBLE_PRIVACY_CAPABILITY_IP_ADDRESS'), + ) + ); + } + /** * Initialise the captcha *