Changeset 1754679
- Timestamp:
- 10/29/2017 10:54:15 AM (8 years ago)
- Location:
- recaptcha-for-jetpack/trunk
- Files:
-
- 3 edited
-
Inc/Admin/JPreCaptchaAdmin.php (modified) (5 diffs)
-
jetpack-recaptcha.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recaptcha-for-jetpack/trunk/Inc/Admin/JPreCaptchaAdmin.php
r1594405 r1754679 22 22 add_submenu_page( 23 23 $JPreCaptchaCore->isNetworkActive() ? 'settings.php' : 'options-general.php', 24 __('JetPack reCaptcha Settings', JPRECAPTCHA_DOMAIN),25 __('JP reCaptcha', JPRECAPTCHA_DOMAIN),24 __('JetPack reCaptcha Settings', 'jp-recaptcha'), 25 __('JP reCaptcha', 'jp-recaptcha'), 26 26 'manage_options', 27 27 'jp-recaptcha', … … 39 39 <div class="wrap"> 40 40 41 <h2><?php _e('JetPack reCaptcha Settings', JPRECAPTCHA_DOMAIN); ?></h2>41 <h2><?php _e('JetPack reCaptcha Settings', 'jp-recaptcha'); ?></h2> 42 42 43 43 <?php if ( isset($JPreCaptcha->notices) ) : ?> … … 48 48 49 49 <div class="section"> 50 <p><strong><?php _e('reCaptcha credentials:', JPRECAPTCHA_DOMAIN); ?></strong></p>50 <p><strong><?php _e('reCaptcha credentials:', 'jp-recaptcha'); ?></strong></p> 51 51 52 <p><?php _e('Before you setup this plugin, make sure to go to <a href="https://www.google.com/recaptcha" target="_blank">Google reCaptcha</a> website and register your site. After that, insert both public and secret captcha keys in the following fields. A <a href="https://www.google.com/search?q=how+to+get+google+recaptcha" target="_blank">tutorial</a> might also help.', JPRECAPTCHA_DOMAIN); ?></p>52 <p><?php _e('Before you setup this plugin, make sure to go to <a href="https://www.google.com/recaptcha" target="_blank">Google reCaptcha</a> website and register your site. After that, insert both public and secret captcha keys in the following fields. A <a href="https://www.google.com/search?q=how+to+get+google+recaptcha" target="_blank">tutorial</a> might also help.', 'jp-recaptcha'); ?></p> 53 53 54 54 <p> 55 <label><?php _e('Enter your Google reCaptcha public key:', JPRECAPTCHA_DOMAIN); ?><br/>55 <label><?php _e('Enter your Google reCaptcha public key:', 'jp-recaptcha'); ?><br/> 56 56 <input type="text" name="recaptcha_public" size="50" value="<?php echo esc_attr($JPreCaptcha->public); ?>" /></label> 57 57 </p> 58 58 59 59 <p> 60 <label><?php _e('Enter your Google reCaptcha secret key:', JPRECAPTCHA_DOMAIN); ?><br/>60 <label><?php _e('Enter your Google reCaptcha secret key:', 'jp-recaptcha'); ?><br/> 61 61 <input type="text" name="recaptcha_secret" size="50" value="<?php echo esc_attr($JPreCaptcha->secret); ?>" /></label> 62 62 </p> 63 63 64 64 <p> 65 <label for="recaptcha_locale"><strong><?php _e('reCaptcha Language:', JPRECAPTCHA_DOMAIN); ?></strong></label>65 <label for="recaptcha_locale"><strong><?php _e('reCaptcha Language:', 'jp-recaptcha'); ?></strong></label> 66 66 </p> 67 67 <p> … … 130 130 $JPreCaptcha->notices .= sprintf( 131 131 '<div class="updated notice is-dismissible"><p>%s</p></div>', 132 __('Settings updated successfully!', JPRECAPTCHA_DOMAIN)132 __('Settings updated successfully!', 'jp-recaptcha') 133 133 ); 134 134 } … … 146 146 return array_merge(array( 147 147 'Settings' => sprintf( 148 '<a href="%s">' . __('Settings', JPRECAPTCHA_DOMAIN) . '</a>',148 '<a href="%s">' . __('Settings', 'jp-recaptcha') . '</a>', 149 149 $link 150 150 ) -
recaptcha-for-jetpack/trunk/jetpack-recaptcha.php
r1594405 r1754679 5 5 Description: Google reCaptcha integration for Jetpack contact forms 6 6 Author: Samuel Elh 7 Version: 0. 17 Version: 0.2 8 8 Author URI: https://samelh.com 9 9 Text Domain: jp-recaptcha … … 44 44 'ready' => false, 45 45 'locales' => array( 46 "ar" => "Arabic",47 "af" => "Afrikaans",48 "am" => "Amharic",49 "hy" => "Armenian",50 "az" => "Azerbaijani",51 "eu" => "Basque",52 "bn" => "Bengali",53 "bg" => "Bulgarian",54 "ca" => "Catalan",55 "zh-HK" => "Chinese (Hong Kong)",56 "zh-CN" => "Chinese (Simplified)",57 "zh-TW" => "Chinese (Traditional)",58 "hr" => "Croatian",59 "cs" => "Czech",60 "da" => "Danish",61 "nl" => "Dutch",62 "en-GB" => "English (UK)",63 "en" => "English (US)",64 "et" => "Estonian",65 "fil" => "Filipino",66 "fi" => "Finnish",67 "fr" => "French",68 "fr-CA" => "French (Canadian)",69 "gl" => "Galician",70 "ka" => "Georgian",71 "de" => "German",72 "de-AT" => "German (Austria)",73 "de-CH" => "German (Switzerland)",74 "el" => "Greek",75 "gu" => "Gujarati",76 "iw" => "Hebrew",77 "hi" => "Hindi",78 "hu" => "Hungarain",79 "is" => "Icelandic",80 "id" => "Indonesian",81 "it" => "Italian",82 "ja" => "Japanese",83 "kn" => "Kannada",84 "ko" => "Korean",85 "lo" => "Laothian",86 "lv" => "Latvian",87 "lt" => "Lithuanian",88 "ms" => "Malay",89 "ml" => "Malayalam",90 "mr" => "Marathi",91 "mn" => "Mongolian",92 "no" => "Norwegian",93 "fa" => "Persian",94 "pl" => "Polish",95 "pt" => "Portuguese",96 "pt-BR" => "Portuguese (Brazil)",97 "pt-PT" => "Portuguese (Portugal)",98 "ro" => "Romanian",99 "ru" => "Russian",100 "sr" => "Serbian",101 "si" => "Sinhalese",102 "sk" => "Slovak",103 "sl" => "Slovenian",104 "es" => "Spanish",105 "es-419" => "Spanish (Latin America)",106 "sw" => "Swahili",107 "sv" => "Swedish",108 "ta" => "Tamil",109 "te" => "Telugu",110 "th" => "Thai",111 "tr" => "Turkish",112 "uk" => "Ukrainian",113 "ur" => "Urdu",114 "vi" => "Vietnamese",115 "zu" => "Zulu"46 'ar' => 'Arabic', 47 'af' => 'Afrikaans', 48 'am' => 'Amharic', 49 'hy' => 'Armenian', 50 'az' => 'Azerbaijani', 51 'eu' => 'Basque', 52 'bn' => 'Bengali', 53 'bg' => 'Bulgarian', 54 'ca' => 'Catalan', 55 'zh-HK' => 'Chinese (Hong Kong)', 56 'zh-CN' => 'Chinese (Simplified)', 57 'zh-TW' => 'Chinese (Traditional)', 58 'hr' => 'Croatian', 59 'cs' => 'Czech', 60 'da' => 'Danish', 61 'nl' => 'Dutch', 62 'en-GB' => 'English (UK)', 63 'en' => 'English (US)', 64 'et' => 'Estonian', 65 'fil' => 'Filipino', 66 'fi' => 'Finnish', 67 'fr' => 'French', 68 'fr-CA' => 'French (Canadian)', 69 'gl' => 'Galician', 70 'ka' => 'Georgian', 71 'de' => 'German', 72 'de-AT' => 'German (Austria)', 73 'de-CH' => 'German (Switzerland)', 74 'el' => 'Greek', 75 'gu' => 'Gujarati', 76 'iw' => 'Hebrew', 77 'hi' => 'Hindi', 78 'hu' => 'Hungarain', 79 'is' => 'Icelandic', 80 'id' => 'Indonesian', 81 'it' => 'Italian', 82 'ja' => 'Japanese', 83 'kn' => 'Kannada', 84 'ko' => 'Korean', 85 'lo' => 'Laothian', 86 'lv' => 'Latvian', 87 'lt' => 'Lithuanian', 88 'ms' => 'Malay', 89 'ml' => 'Malayalam', 90 'mr' => 'Marathi', 91 'mn' => 'Mongolian', 92 'no' => 'Norwegian', 93 'fa' => 'Persian', 94 'pl' => 'Polish', 95 'pt' => 'Portuguese', 96 'pt-BR' => 'Portuguese (Brazil)', 97 'pt-PT' => 'Portuguese (Portugal)', 98 'ro' => 'Romanian', 99 'ru' => 'Russian', 100 'sr' => 'Serbian', 101 'si' => 'Sinhalese', 102 'sk' => 'Slovak', 103 'sl' => 'Slovenian', 104 'es' => 'Spanish', 105 'es-419' => 'Spanish (Latin America)', 106 'sw' => 'Swahili', 107 'sv' => 'Swedish', 108 'ta' => 'Tamil', 109 'te' => 'Telugu', 110 'th' => 'Thai', 111 'tr' => 'Turkish', 112 'uk' => 'Ukrainian', 113 'ur' => 'Urdu', 114 'vi' => 'Vietnamese', 115 'zu' => 'Zulu' 116 116 ) 117 117 ); … … 127 127 128 128 $constants = array( 129 "JPRECAPTCHA_FILE"=> __FILE__,130 "JPRECAPTCHA_DIR"=> plugin_dir_path(__FILE__),131 "JPRECAPTCHA_BASE"=> plugin_basename(__FILE__),132 "JPRECAPTCHA_DOMAIN"=> 'jp-recaptcha'129 'JPRECAPTCHA_FILE' => __FILE__, 130 'JPRECAPTCHA_DIR' => plugin_dir_path(__FILE__), 131 'JPRECAPTCHA_BASE' => plugin_basename(__FILE__), 132 'JPRECAPTCHA_DOMAIN' => 'jp-recaptcha' 133 133 ); 134 134 … … 146 146 $ins = $GLOBALS['JPreCaptchaCore']; 147 147 148 load_plugin_textdomain( JPRECAPTCHA_DOMAIN, FALSE, dirname(JPRECAPTCHA_BASE).'/languages');148 load_plugin_textdomain('jp-recaptcha', FALSE, dirname(JPRECAPTCHA_BASE).'/languages'); 149 149 150 150 return $ins; … … 281 281 return new WP_Error( 282 282 'possible_spam', 283 __('Unable to process your submission, you have failed the spam test!', JPRECAPTCHA_DOMAIN)283 __('Unable to process your submission, you have failed the spam test!', 'jp-recaptcha') 284 284 ); 285 285 } … … 315 315 <?php if ( isset($JPreCaptcha->failed) && $JPreCaptcha->failed ) : ?> 316 316 <p style="color: #dc3232" class="jp-recaptcha-message"> 317 <?php _e('Please complete this test!', JPRECAPTCHA_DOMAIN); ?>317 <?php _e('Please complete this test!', 'jp-recaptcha'); ?> 318 318 </p> 319 319 <?php endif; ?> -
recaptcha-for-jetpack/trunk/readme.txt
r1594405 r1754679 33 33 Once you activate the plugin, you should now navigate to "Settings" > "JP reCaptcha" (or "Options" > "JP reCaptcha" for network activated plugin) and add your Google reCaptcha credentials (public and private keys) which you can obtain from https://www.google.com/recaptcha/admin 34 34 35 **Translations:** 36 37 Jetpack reCaptcha plugin is translated by the community into the following languages: 38 39 * Polish by [Maciej Michalowski](http://michalowski.pro) 40 35 41 The development version of this plugin is hosted on Github, feel free to fork it, contribute and improve it, or start a new issue if you want to report something like an unusual bug. 36 42 … … 56 62 = 0.1 = 57 63 * Initial stable release. 64 65 = 0.2 = 66 * Added Polish translation, thanks Maciej Michalowski!
Note: See TracChangeset
for help on using the changeset viewer.