Plugin Directory

Changeset 1754679


Ignore:
Timestamp:
10/29/2017 10:54:15 AM (8 years ago)
Author:
elhardoum
Message:

commit 0.2

Location:
recaptcha-for-jetpack/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • recaptcha-for-jetpack/trunk/Inc/Admin/JPreCaptchaAdmin.php

    r1594405 r1754679  
    2222        add_submenu_page(
    2323            $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'),
    2626            'manage_options',
    2727            'jp-recaptcha',
     
    3939        <div class="wrap">
    4040       
    41             <h2><?php _e('JetPack reCaptcha Settings', JPRECAPTCHA_DOMAIN); ?></h2>
     41            <h2><?php _e('JetPack reCaptcha Settings', 'jp-recaptcha'); ?></h2>
    4242
    4343            <?php if ( isset($JPreCaptcha->notices) ) : ?>
     
    4848
    4949                <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>
    5151
    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>
    5353
    5454                    <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/>
    5656                        <input type="text" name="recaptcha_public" size="50" value="<?php echo esc_attr($JPreCaptcha->public); ?>" /></label>
    5757                    </p>
    5858
    5959                    <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/>
    6161                        <input type="text" name="recaptcha_secret" size="50" value="<?php echo esc_attr($JPreCaptcha->secret); ?>" /></label>
    6262                    </p>
    6363
    6464                    <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>
    6666                    </p>
    6767                    <p>
     
    130130            $JPreCaptcha->notices .= sprintf(
    131131                '<div class="updated notice is-dismissible"><p>%s</p></div>',
    132                 __('Settings updated successfully!', JPRECAPTCHA_DOMAIN)
     132                __('Settings updated successfully!', 'jp-recaptcha')
    133133            );
    134134        }
     
    146146        return array_merge(array(
    147147            'Settings' => sprintf(
    148                 '<a href="%s">' . __('Settings', JPRECAPTCHA_DOMAIN) . '</a>',
     148                '<a href="%s">' . __('Settings', 'jp-recaptcha') . '</a>',
    149149                $link
    150150            )
  • recaptcha-for-jetpack/trunk/jetpack-recaptcha.php

    r1594405 r1754679  
    55Description: Google reCaptcha integration for Jetpack contact forms
    66Author: Samuel Elh
    7 Version: 0.1
     7Version: 0.2
    88Author URI: https://samelh.com
    99Text Domain: jp-recaptcha
     
    4444            'ready' => false,
    4545            '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'
    116116            )
    117117        );
     
    127127
    128128        $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'
    133133        );
    134134
     
    146146        $ins = $GLOBALS['JPreCaptchaCore'];
    147147       
    148         load_plugin_textdomain(JPRECAPTCHA_DOMAIN, FALSE, dirname(JPRECAPTCHA_BASE).'/languages');
     148        load_plugin_textdomain('jp-recaptcha', FALSE, dirname(JPRECAPTCHA_BASE).'/languages');
    149149
    150150        return $ins;
     
    281281            return new WP_Error(
    282282                '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')
    284284            );
    285285        }
     
    315315            <?php if ( isset($JPreCaptcha->failed) && $JPreCaptcha->failed ) : ?>
    316316                <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'); ?>
    318318                </p>
    319319            <?php endif; ?>
  • recaptcha-for-jetpack/trunk/readme.txt

    r1594405 r1754679  
    3333Once 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
    3434
     35**Translations:**
     36
     37Jetpack reCaptcha plugin is translated by the community into the following languages:
     38
     39* Polish by [Maciej Michalowski](http://michalowski.pro)
     40
    3541The 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.
    3642
     
    5662= 0.1 =
    5763* Initial stable release.
     64
     65= 0.2 =
     66* Added Polish translation, thanks Maciej Michalowski!
Note: See TracChangeset for help on using the changeset viewer.