Permalink
Browse files

Update to 1.0.1

  • Loading branch information...
1 parent 3c7bdd9 commit 2b2b47be10b1cba5afad6f4022b013a1a27ed44a @OddOneOut committed Sep 25, 2011
View
2 bwp-recaptcha.php
@@ -3,7 +3,7 @@
Plugin Name: Better WordPress reCAPTCHA
Plugin URI: http://betterwp.net/wordpress-plugins/bwp-recaptcha/
Description: This plugin utilizes reCAPTCHA (with support for Akismet) to help your blog stay clear of spams. This plugin, however, has a different approach from the current WP-reCAPTCHA plugin and allows you to customize how the captcha looks using CSS.
-Version: 1.0.0
+Version: 1.0.1
Text Domain: bwp-recaptcha
Domain Path: /languages/
Author: Khang Minh
View
68 bwp-recaptcha.pot
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: BWP reCAPTCHA\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-05 15:41+0700\n"
-"PO-Revision-Date: 2011-04-05 15:41+0700\n"
+"POT-Creation-Date: 2011-09-25 13:43+0700\n"
+"PO-Revision-Date: 2011-09-25 13:44+0700\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -20,20 +20,68 @@ msgstr ""
msgid "%s requires WordPress <strong>%s</strong> or higher and PHP <strong>%s</strong> or higher. The plugin will not function until you update your software. Please deactivate this plugin."
msgstr ""
-#: includes/class-bwp-framework.php:181
-msgid "log"
+#: includes/class-bwp-framework.php:183
+msgid "Development Log"
msgstr ""
-#: includes/class-bwp-framework.php:186
-msgid "You can buy me some coffees if you appreciate my work, thank you!"
+#: includes/class-bwp-framework.php:183
+msgid "Frequently Asked Questions"
msgstr ""
-#: includes/class-bwp-framework.php:211
+#: includes/class-bwp-framework.php:183
+msgid "FAQ"
+msgstr ""
+
+#: includes/class-bwp-framework.php:183
+msgid "Got a problem? Send me a feedback!"
+msgstr ""
+
+#: includes/class-bwp-framework.php:183
+msgid "Contact"
+msgstr ""
+
+#: includes/class-bwp-framework.php:190
+msgid "You can buy me some special coffees if you appreciate my work, thank you!"
+msgstr ""
+
+#: includes/class-bwp-framework.php:204
+msgid "Donate to "
+msgstr ""
+
+#: includes/class-bwp-framework.php:206
+msgid "One cup $5.00"
+msgstr ""
+
+#: includes/class-bwp-framework.php:207
+msgid "Two cups $10.00"
+msgstr ""
+
+#: includes/class-bwp-framework.php:208
+msgid "Five cups! $25.00"
+msgstr ""
+
+#: includes/class-bwp-framework.php:209
+msgid "One LL-cup!!! $50.00"
+msgstr ""
+
+#: includes/class-bwp-framework.php:210
+msgid "... or any amount!"
+msgstr ""
+
+#: includes/class-bwp-framework.php:225
+msgid "Latest updates from BetterWP.net!"
+msgstr ""
+
+#: includes/class-bwp-framework.php:226
+msgid "Follow me on Twitter!"
+msgstr ""
+
+#: includes/class-bwp-framework.php:235
#, php-format
msgid "You are using version %s!"
msgstr ""
-#: includes/class-bwp-framework.php:343
+#: includes/class-bwp-framework.php:372
msgid "Settings"
msgstr ""
@@ -379,11 +427,11 @@ msgstr ""
msgid "Unknown error. Please contact the administrator for more info."
msgstr ""
-#: includes/bwp-option-page/includes/class-bwp-option-page.php:74
+#: includes/bwp-option-page/includes/class-bwp-option-page.php:80
msgid "Plugin Configurations"
msgstr ""
-#: includes/bwp-option-page/includes/class-bwp-option-page.php:391
+#: includes/bwp-option-page/includes/class-bwp-option-page.php:398
msgid "Save Changes"
msgstr ""
View
2 includes/bwp-option-page/bwp-option-page.php
@@ -1,5 +1,5 @@
<?php
if (!is_admin()) return;
-require_once('includes/class-bwp-option-page.php');
+require_once(dirname(__FILE__) . '/includes/class-bwp-option-page.php');
?>
View
42 includes/bwp-option-page/css/bwp-option-page.css
@@ -29,7 +29,7 @@
}
.bwp-option-page-tabs a {
- font-size: 21px;
+ font-size: 19px;
}
.bwp-option-page-tabs a.version {
@@ -83,16 +83,24 @@ p.bwp-option-page-inputs {
width: 36px;
}
-#bwp-donation {
+#bwp-info-place {
float: right;
- width: 220px;
- padding: 7px; padding-bottom: 0px; margin: 0 0 10px 10px;
+ margin: 0 0 10px 10px;
+}
+
+#bwp-donation, #bwp-contact {
+ width: 255px;
+ padding: 7px; padding-bottom: 0px;
background-color: #ffffff;
border: 1px solid #cccccc;
text-align: center;
}
-#bwp-donation small {
+#bwp-donation p {
+ margin: 0.5em 0 1em 0;
+}
+
+#bwp-info-place small {
font-size: 0.8em;
}
@@ -101,4 +109,28 @@ p.bwp-option-page-inputs {
display: inline-block;
margin: 0 0 1px 2px;
padding: 0px;
+}
+
+#bwp-seperator {
+ width: 271px;
+}
+
+#bwp-contact {
+ text-align: left;
+ padding: 7px;
+}
+
+#bwp-contact a {
+ display: block;
+ height: 20px;
+ font-size: 0.8em;
+ padding-left: 25px;
+}
+
+#bwp-contact .bwp-rss {
+ background: transparent url("../images/icon-rss.png") no-repeat left center;
+}
+
+#bwp-contact .bwp-twitter {
+ background: transparent url("../images/icon-twitter.png") no-repeat left center;
}
View
BIN includes/bwp-option-page/images/icon-paypal.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN includes/bwp-option-page/images/icon-rss.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN includes/bwp-option-page/images/icon-twitter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
17 includes/bwp-option-page/includes/class-bwp-option-page.php
@@ -20,7 +20,7 @@ class BWP_OPTION_PAGE {
* Tabs to build
*/
var $form_tabs;
-
+
/**
* Current tab
*/
@@ -47,12 +47,18 @@ class BWP_OPTION_PAGE {
var $form_options = array(), $site_options = array();
/**
+ * Other things
+ */
+ var $domain;
+
+ /**
* Constructor
*/
- function __construct($form_name = 'bwp_option_page', $site_options = array())
+ function __construct($form_name = 'bwp_option_page', $site_options = array(), $domain = '')
{
$this->form_name = $form_name;
$this->site_options = $site_options;
+ $this->domain = $domain;
}
/**
@@ -125,7 +131,7 @@ function format_field($key, $option_formats)
else if ('float' == $option_formats[$key])
$_POST[$key] = (float) $_POST[$key];
else if ('html' == $option_formats[$key])
- $_POST[$key] = wp_filter_kses($_POST[$key]);
+ $_POST[$key] = wp_filter_post_kses($_POST[$key]);
}
else
$_POST[$key] = strip_tags($_POST[$key]);
@@ -154,6 +160,7 @@ function generate_html_field($type = '', $data = array(), $name = '', $in_sectio
$checked = 'checked="checked" ';
$selected = 'selected="selected" ';
$value = (isset($this->form_options[$name])) ? $this->form_options[$name] : '';
+ $value = (!empty($this->domain) && ('textarea' == $type || 'input' == $type)) ? __($value, $this->domain) : $value;
$value = ('textarea' == $type) ? esc_html($value) : esc_attr($value);
$array_replace = array();
$array_search = array('size', 'name', 'value', 'cols', 'rows', 'label', 'disabled', 'pre', 'post');
@@ -333,7 +340,7 @@ function generate_html_fields($type, $name)
*/
function generate_html_form()
{
- $return_str = '<div class="wrap">' . "\n";
+ $return_str = '<div class="wrap" style="padding-bottom: 20px;">' . "\n";
if (sizeof($this->form_tabs) >= 2)
$return_str .= apply_filters('bwp-admin-form-icon', '<div class="icon32" id="icon-options-general"><br></div>' . "\n");
else
@@ -388,7 +395,7 @@ function generate_html_form()
echo $return_str;
do_action('bwp_option_action_before_submit_button');
$return_str = '';
- $return_str .= '<p class="submit"><input type="submit" class="button-primary" name="submit_' . $this->form_name . '" value="' . __('Save Changes') . '" /></p>' . "\n";
+ $return_str .= apply_filters('bwp_option_submit_button', '<p class="submit"><input type="submit" class="button-primary" name="submit_' . $this->form_name . '" value="' . __('Save Changes') . '" /></p>') . "\n";
$return_str .= '</form>' . "\n";
$return_str .= '</div>' . "\n";
View
11 includes/bwp-option-page/js/paypal.js
@@ -0,0 +1,11 @@
+jQuery(document).ready(function(){
+ /* Paypal form */
+ jQuery('.paypal-form select[name="amount"]').change(function() {
+ if (jQuery(this).val() == '100.00')
+ {
+ jQuery(this).hide();
+ jQuery('.paypal-alternate-input').append('<input type="text" style="padding: 3px; width: 70px; text-align: right; line-height: 1;" name="amount" value="15.00" /> <code>$</code>');
+ jQuery('.paypal-alternate-input').show();
+ }
+ });
+});
View
76 includes/class-bwp-framework.php
@@ -176,32 +176,56 @@ function show_donation()
{
$showable = apply_filters('bwp_donation_showable', true);
?>
-<div id="bwp-donation">
-<a href="<?php echo $this->plugin_url; ?>"><?php echo $this->plugin_title; ?></a>
-<small>(<a href="<?php echo str_replace('/wordpress-plugins/', '/topic/', $this->plugin_url); ?>"><?php _e('log', $this->plugin_dkey); ?></a>)</small><br />
+<div id="bwp-info-place">
+<div id="bwp-donation" style="margin-bottom: 0px;">
+<a href="<?php echo $this->plugin_url; ?>"><?php echo $this->plugin_title; ?></a> <small>v<?php echo $this->plugin_ver; ?></small><br />
+<small>
+ <a href="<?php echo str_replace('/wordpress-plugins/', '/topic/', $this->plugin_url); ?>"><?php _e('Development Log', $this->plugin_dkey); ?></a> &ndash; <a href="<?php echo $this->plugin_url . 'faq/'; ?>" title="<?php _e('Frequently Asked Questions', $this->plugin_dkey) ?>"><?php _e('FAQ', $this->plugin_dkey); ?></a> &ndash; <a href="http://betterwp.net/contact/" title="<?php _e('Got a problem? Send me a feedback!', $this->plugin_dkey) ?>"><?php _e('Contact', $this->plugin_dkey); ?></a>
+</small>
+<br />
<?php
if (true == $showable || ($this->is_multisite() && is_super_admin()))
{
?>
-<small><?php _e('You can buy me some coffees if you appreciate my work, thank you!', $this->plugin_dkey); ?></small>
-<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<small><?php _e('You can buy me some special coffees if you appreciate my work, thank you!', $this->plugin_dkey); ?></small>
+<form class="paypal-form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<p>
-<input type="hidden" name="cmd" value="_s-xclick">
-<input type="hidden" name="hosted_button_id" value="B65WHYLRWWCGE">
-<select name="os0" style="margin: 0px;">
- <option value="One cup">One cup $10.00</option>
- <option value="Two cups">Two cups $20.00</option>
- <option value="Five cups!">Five cups! $50.00</option>
-</select>
-<input class="paypal-submit" type="image" src="http://betterwp.net/images/icon-paypal.gif" border="0" name="submit" alt="Via PayPal!">
+<input type="hidden" name="cmd" value="_xclick">
+<input type="hidden" name="business" value="NWBB8JUDW5VSY">
+<input type="hidden" name="lc" value="VN">
+<input type="hidden" name="button_subtype" value="services">
+<input type="hidden" name="no_note" value="0">
+<input type="hidden" name="cn" value="Would you like to say anything to me?">
+<input type="hidden" name="no_shipping" value="1">
+<input type="hidden" name="rm" value="1">
+<input type="hidden" name="return" value="http://betterwp.net">
<input type="hidden" name="currency_code" value="USD">
-<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/scr/pixel.gif" width="1" height="1">
+<input type="hidden" name="bn" value="PP-BuyNowBF:icon-paypal.gif:NonHosted">
+<input type="hidden" name="item_name" value="<?php echo __('Donate to ' . $this->plugin_title, $this->plugin_dkey); ?>" />
+<select name="amount">
+ <option value="5.00"><?php _e('One cup $5.00', $this->plugin_dkey); ?></option>
+ <option value="10.00"><?php _e('Two cups $10.00', $this->plugin_dkey); ?></option>
+ <option value="25.00"><?php _e('Five cups! $25.00', $this->plugin_dkey); ?></option>
+ <option value="50.00"><?php _e('One LL-cup!!! $50.00', $this->plugin_dkey); ?></option>
+ <option value="100.00"><?php _e('... or any amount!', $this->plugin_dkey); ?></option>
+</select>
+<span class="paypal-alternate-input" style="display: none;"><!-- --></span>
+<input class="paypal-submit" type="image" src="<?php echo plugin_dir_url($this->plugin_file) . 'includes/bwp-option-page/images/icon-paypal.gif'; ?>" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
+<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</p>
</form>
<?php
}
?>
</div>
+<div id="bwp-seperator">
+ <div style="height: 10px; width: 5px; background-color: #cccccc; margin: 0 auto;"><!-- --></div>
+</div>
+<div id="bwp-contact">
+ <a class="bwp-rss" href="http://feeds.feedburner.com/BetterWPnet"><?php _e('Latest updates from BetterWP.net!', $this->plugin_dkey); ?></a>
+ <a class="bwp-twitter" href="http://twitter.com/0dd0ne0ut"><?php _e('Follow me on Twitter!', $this->plugin_dkey); ?></a>
+</div>
+</div>
<?php
}
@@ -285,16 +309,21 @@ function build_options()
$db_option = get_option($option);
if ($db_option && is_array($db_option))
$options = array_merge($options, $db_option);
- // Also check for global options
- $db_option = get_site_option($option);
- if ($db_option && is_array($db_option))
+ unset($db_option);
+ // Also check for global options if in Multi-site
+ if ($this->is_multisite())
{
- foreach ($db_option as $key => $option)
+ $db_option = get_site_option($option);
+ if ($db_option && is_array($db_option))
{
- if (in_array($key, $this->site_options))
- $this->site_options[$key] = $option;
+ $temp = array();
+ foreach ($db_option as $k => $o)
+ {
+ if (in_array($k, $this->site_options))
+ $temp[$k] = $o;
+ }
+ $options = array_merge($options, $temp);
}
- $options = array_merge($options, $this->site_options);
}
}
$this->options = $options;
@@ -354,8 +383,9 @@ function init_admin()
// Load option page builder
if (!class_exists('BWP_OPTION_PAGE'))
require_once(dirname(__FILE__) . '/bwp-option-page/bwp-option-page.php');
- // Enqueue style for the option page
- wp_enqueue_style('bwp-option-page', plugin_dir_url($this->plugin_file) . 'includes/bwp-option-page/css/bwp-option-page.css');
+ // Enqueue style sheets and scripts for the option page
+ wp_enqueue_style('bwp-option-page', plugin_dir_url($this->plugin_file) . 'includes/bwp-option-page/css/bwp-option-page.css', array(), '1.0.1');
+ wp_enqueue_script('bwp-paypal-js', plugin_dir_url($this->plugin_file) . 'includes/bwp-option-page/js/paypal.js', array('jquery'));
}
$this->build_menus();
}
View
74 includes/class-bwp-recaptcha.php
@@ -58,6 +58,31 @@ function bwp_capt_custom_theme_widget()
}
}
+/**
+* Helper function to display the captcha below the comment input field in themes using comment_form() function
+*
+* Copyright (c) 2011 João Bruni <jbruni.com.br> - Free software, in the terms of the GNU General Public License.
+*/
+function bwp_capt_comment_form($args = array(), $post_id = null)
+{
+ global $bwp_capt;
+
+ remove_action('comment_form_after_fields', array($bwp_capt, 'add_recaptcha'));
+ remove_action('comment_form_logged_in_after', array($bwp_capt, 'add_recaptcha'));
+
+ ob_start();
+ do_action('bwp_recaptcha_add_markups');
+ $recaptcha_html = ob_get_contents();
+ ob_end_clean();
+
+ if (isset($args['comment_notes_after']))
+ $args['comment_notes_after'] .= $recaptcha_html;
+ else
+ $args['comment_notes_after'] = $recaptcha_html;
+
+ comment_form($args, $post_id);
+}
+
if (!class_exists('BWP_FRAMEWORK'))
require_once('class-bwp-framework.php');
@@ -81,7 +106,7 @@ class BWP_RECAPTCHA extends BWP_FRAMEWORK {
/**
* Constructor
*/
- function __construct($version = '1.0.0')
+ function __construct($version = '1.0.1')
{
// Plugin's title
$this->plugin_title = 'BetterWP reCAPTCHA';
@@ -114,6 +139,9 @@ function __construct($version = '1.0.0')
'hide_approved' => 'yes'
);
+ // Super admin only options
+ $this->site_options = array('input_pubkey', 'input_prikey');
+
$this->build_properties('BWP_CAPT', 'bwp-recaptcha', $options, 'BetterWP reCAPTCHA', dirname(dirname(__FILE__)) . '/bwp-recaptcha.php', 'http://betterwp.net/wordpress-plugins/bwp-recaptcha/', false);
$this->add_option_key('BWP_CAPT_OPTION_GENERAL', 'bwp_capt_general', __('General Options', 'bwp-recaptcha'));
@@ -263,7 +291,7 @@ function build_option_pages()
// Init the class
$page = $_GET['page'];
- $bwp_option_page = new BWP_OPTION_PAGE($page);
+ $bwp_option_page = new BWP_OPTION_PAGE($page, $this->site_options, 'bwp-recaptcha');
$options = array();
@@ -345,12 +373,13 @@ function build_option_pages()
);
// Get the default options
- $options = $bwp_option_page->get_options(array('input_pubkey', 'input_prikey', 'input_error', 'input_approved', 'select_cap', 'hide_registered', 'hide_cap', 'hide_approved', 'enable_registration', 'enable_comment', 'input_back', 'select_response', 'enable_akismet', 'select_akismet_react'), $this->options);
+ $options = $bwp_option_page->get_options(array('input_pubkey', 'input_prikey', 'input_error', 'input_approved', 'select_cap', 'hide_registered', 'hide_cap', 'hide_approved', 'enable_registration', 'enable_comment', 'input_back', 'select_response', 'enable_akismet', 'select_akismet_react'), $this->options);
// Get option from the database
$options = $bwp_option_page->get_db_options($page, $options);
-
+
$option_formats = array('input_approved' => 'int', 'input_error' => 'html', 'input_back' => 'html');
+ $option_super_admin = $this->site_options;
}
else if ($page == BWP_CAPT_OPTION_THEME)
{
@@ -402,6 +431,7 @@ function build_option_pages()
$options = $bwp_option_page->get_db_options($page, $options);
$option_formats = array('input_tab' => 'int');
+ $option_super_admin = array();
// preview reCAPTCHA
if (!defined('RECAPTCHA_API_SERVER'))
@@ -416,22 +446,36 @@ function build_option_pages()
check_admin_referer($page);
foreach ($options as $key => &$option)
{
- if (isset($_POST[$key]))
- $bwp_option_page->format_field($key, $option_formats);
- if (!isset($_POST[$key]))
- $option = '';
- else if (isset($option_formats[$key]) && 0 == $_POST[$key] && 'int' == $option_formats[$key])
- $option = 0;
- else if (isset($option_formats[$key]) && empty($_POST[$key]) && 'int' == $option_formats[$key])
- $option = $this->options_default[$key];
- else if (!empty($_POST[$key])) // should add more validation here though
- $option = trim(stripslashes($_POST[$key]));
+ // [WPMS Compatible]
+ if ($this->is_normal_admin() && in_array($key, $option_super_admin))
+ {
+ }
else
- $option = '';
+ {
+ if (isset($_POST[$key]))
+ $bwp_option_page->format_field($key, $option_formats);
+ if (!isset($_POST[$key]))
+ $option = '';
+ else if (isset($option_formats[$key]) && 0 == $_POST[$key] && 'int' == $option_formats[$key])
+ $option = 0;
+ else if (isset($option_formats[$key]) && empty($_POST[$key]) && 'int' == $option_formats[$key])
+ $option = $this->options_default[$key];
+ else if (!empty($_POST[$key])) // should add more validation here though
+ $option = trim(stripslashes($_POST[$key]));
+ else
+ $option = '';
+ }
}
update_option($page, $options);
+ // [WPMS Compatible]
+ if (!$this->is_normal_admin())
+ update_site_option($page, $options);
}
+ // [WPMS Compatible]
+ if ($this->is_normal_admin())
+ $bwp_option_page->kill_html_fields($form, array(2,3));
+
// show notice if one of the api keys is missing
$this->options = array_merge($this->options, $options);
if (empty($this->options['input_pubkey']) || empty($this->options['input_prikey']))
View
BIN languages/bwp-recaptcha-es_ES.mo
Binary file not shown.
View
440 languages/bwp-recaptcha-es_ES.po
@@ -0,0 +1,440 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: BWP reCAPTCHA\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-09-25 13:43+0700\n"
+"PO-Revision-Date: 2011-09-25 14:48+0700\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SourceCharset: utf-8\n"
+"X-Poedit-Language: Spanish\n"
+"X-Poedit-Country: SPAIN\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: includes/class-bwp-framework.php:172
+#, php-format
+msgid "%s requires WordPress <strong>%s</strong> or higher and PHP <strong>%s</strong> or higher. The plugin will not function until you update your software. Please deactivate this plugin."
+msgstr "%s requiere WordPress <strong>%s</strong> o mayor y PHP <strong>%s</strong> o mayor. El plugin no funcionará hasta que actualice su software. Por favor desactive este plugin."
+
+#: includes/class-bwp-framework.php:183
+msgid "Development Log"
+msgstr "Desarrollo Entrar"
+
+#: includes/class-bwp-framework.php:183
+msgid "Frequently Asked Questions"
+msgstr "Preguntas más frecuentes"
+
+#: includes/class-bwp-framework.php:183
+msgid "FAQ"
+msgstr "FAQ"
+
+#: includes/class-bwp-framework.php:183
+msgid "Got a problem? Send me a feedback!"
+msgstr "Tienes un problema? Envíame un feedback!"
+
+#: includes/class-bwp-framework.php:183
+msgid "Contact"
+msgstr "contacto"
+
+#: includes/class-bwp-framework.php:190
+msgid "You can buy me some special coffees if you appreciate my work, thank you!"
+msgstr "Me puedes comprar una tazas de café si te gusta mi trabajo, gracias!"
+
+#: includes/class-bwp-framework.php:204
+msgid "Donate to "
+msgstr "donar a"
+
+#: includes/class-bwp-framework.php:206
+msgid "One cup $5.00"
+msgstr "Una taza de $ 5,00"
+
+#: includes/class-bwp-framework.php:207
+msgid "Two cups $10.00"
+msgstr "Dos tazas de $ 10.00"
+
+#: includes/class-bwp-framework.php:208
+msgid "Five cups! $25.00"
+msgstr "Cinco tazas! $ 25.00"
+
+#: includes/class-bwp-framework.php:209
+msgid "One LL-cup!!! $50.00"
+msgstr "Una taza de LL-! $ 50.00"
+
+#: includes/class-bwp-framework.php:210
+msgid "... or any amount!"
+msgstr "... o cualquier cantidad!"
+
+#: includes/class-bwp-framework.php:225
+msgid "Latest updates from BetterWP.net!"
+msgstr "Actualizaciones más recientes de BetterWP.net!"
+
+#: includes/class-bwp-framework.php:226
+msgid "Follow me on Twitter!"
+msgstr "Sígueme en Twitter!"
+
+#: includes/class-bwp-framework.php:235
+#, php-format
+msgid "You are using version %s!"
+msgstr "Usted esta usando la versión %s!"
+
+#: includes/class-bwp-framework.php:372
+msgid "Settings"
+msgstr "Configuraciones"
+
+#: includes/class-bwp-recaptcha.php:45
+msgid "Get another challenge"
+msgstr "Obtén un nuevo reto"
+
+#: includes/class-bwp-recaptcha.php:46
+msgid "Get audio reCAPTCHA"
+msgstr "Obtén un audio reCAPTCHA"
+
+#: includes/class-bwp-recaptcha.php:47
+msgid "Get image reCAPTCHA"
+msgstr "Obtén una imagen reCAPTCHA"
+
+#: includes/class-bwp-recaptcha.php:48
+msgid "About reCAPTCHA"
+msgstr "Acerca de reCAPTCHA"
+
+#: includes/class-bwp-recaptcha.php:52
+msgid "Enter the two words in the box:"
+msgstr "Escribe las 2 palabras:"
+
+#: includes/class-bwp-recaptcha.php:53
+msgid "Enter the numbers you hear:"
+msgstr "Ingrese los números que escuche:"
+
+#: includes/class-bwp-recaptcha.php:98
+msgid "<strong>ERROR:</strong> Incorrect or empty reCAPTCHA response, please try again."
+msgstr "<strong>ERROR:</strong> Respuesta incorrecta o vacía de reCAPTCHA, por favor intente de nuevo."
+
+#: includes/class-bwp-recaptcha.php:99
+#, php-format
+msgid "Error: Incorrect or empty reCAPTCHA response, please click the back button on your browser's toolbar or click on %s to go back."
+msgstr "Error: la respuesta de reCAPTCHA esta vacía o es incorrecta, por favor haga clic en el botón Volver de la barra de herramientas de su navegador o haga clic en %s para volver."
+
+#: includes/class-bwp-recaptcha.php:119
+#: includes/class-bwp-recaptcha.php:250
+msgid "General Options"
+msgstr "Opciones Generales"
+
+#: includes/class-bwp-recaptcha.php:120
+#: includes/class-bwp-recaptcha.php:251
+msgid "Theme Options"
+msgstr "Opciones de Tema"
+
+#: includes/class-bwp-recaptcha.php:123
+msgid "English"
+msgstr "Inglés"
+
+#: includes/class-bwp-recaptcha.php:124
+msgid "Dutch"
+msgstr "Holandés"
+
+#: includes/class-bwp-recaptcha.php:125
+msgid "French"
+msgstr "Francés"
+
+#: includes/class-bwp-recaptcha.php:126
+msgid "German"
+msgstr "Alemán"
+
+#: includes/class-bwp-recaptcha.php:127
+msgid "Portuguese"
+msgstr "Portugués"
+
+#: includes/class-bwp-recaptcha.php:128
+msgid "Russian"
+msgstr "Ruso"
+
+#: includes/class-bwp-recaptcha.php:129
+msgid "Spanish"
+msgstr "Español"
+
+#: includes/class-bwp-recaptcha.php:130
+msgid "Turkish"
+msgstr "Turco"
+
+#: includes/class-bwp-recaptcha.php:134
+msgid "Read Profile"
+msgstr "Leer Perfil"
+
+#: includes/class-bwp-recaptcha.php:135
+msgid "Manage Options"
+msgstr "Gestionar Opciones"
+
+#: includes/class-bwp-recaptcha.php:248
+msgid "Better WordPress reCAPTCHA"
+msgstr "Better WordPress reCAPTCHA"
+
+#: includes/class-bwp-recaptcha.php:250
+msgid "BWP reCAPTCHA General Options"
+msgstr "BWP reCAPTCHA Opciones Generales"
+
+#: includes/class-bwp-recaptcha.php:251
+msgid "BWP reCAPTCHA Theme Options"
+msgstr "BWP reCAPTCHA Opciones de Tema"
+
+#: includes/class-bwp-recaptcha.php:262
+msgid "You do not have sufficient permissions to access this page."
+msgstr "Usted no tiene permisos suficientes para acceder a esta página."
+
+#: includes/class-bwp-recaptcha.php:281
+msgid "What is reCAPTCHA?"
+msgstr "¿Qué es re CAPTCHA?"
+
+#: includes/class-bwp-recaptcha.php:282
+msgid "This plugin will be"
+msgstr "Este plugin estará"
+
+#: includes/class-bwp-recaptcha.php:283
+msgid "Public Key"
+msgstr "Clave Pública"
+
+#: includes/class-bwp-recaptcha.php:284
+msgid "Private Key"
+msgstr "Clave Privada"
+
+#: includes/class-bwp-recaptcha.php:285
+msgid "Visibility Options (only applied to comment forms)"
+msgstr "Opciones de Visibilidad (sólo aplica para los formularios de comentarios)"
+
+#: includes/class-bwp-recaptcha.php:286
+msgid "Hide the CAPTCHA for"
+msgstr "Ocultar el CAPTCHA para"
+
+#: includes/class-bwp-recaptcha.php:287
+msgid "If wrong or empty response"
+msgstr "Si la respuesta es equivocada o vacía"
+
+#: includes/class-bwp-recaptcha.php:288
+#: includes/class-bwp-recaptcha.php:289
+msgid "Show the error message"
+msgstr "Mostrar el mensaje de error"
+
+#: includes/class-bwp-recaptcha.php:290
+msgid "Akismet Integration"
+msgstr "Integración con Akismet"
+
+#: includes/class-bwp-recaptcha.php:291
+msgid "Integrate with Akismet?"
+msgstr "Integrar con Akismet?"
+
+#: includes/class-bwp-recaptcha.php:292
+msgid "If correct CAPTCHA response"
+msgstr "Si la respuesta de CAPTCHA es correcta"
+
+#: includes/class-bwp-recaptcha.php:296
+msgid "reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. You can read more about reCAPTCHA <a href=\"http://www.google.com/recaptcha/learnmore\" target=\"_blank\">here</a>."
+msgstr "reCAPTCHA es un servicio gratuito de CAPTCHA que ayuda a digitalizar libros, periódicos y viejos programas de radio. Puedes leer más acerca de reCAPTCHA <a href=\"http://www.google.com/recaptcha/learnmore\" target=\"_blank\">aquí</a>."
+
+#: includes/class-bwp-recaptcha.php:297
+msgid "<em>This section allows you to determine when to show reCAPTCHA and how this plugin reacts to errors.</em>"
+msgstr "<em>Esta sección le permite a usted determinar cuando mostrar reCAPTCHA y cómo este plugin reacciona a los errores.</em>"
+
+#: includes/class-bwp-recaptcha.php:298
+msgid "<em>Integrate with Akismet for better end-user experience. reCAPTCHA is optional and <strong>NO</strong> spam comment will be added to the spam/moderation queue, except likely legitimate comments. This makes the task of identifying sincere comments much easier. This integration is currently in beta stage.</em>"
+msgstr "<em>La integración con Akismet mejora la experiencia del usuario final. reCAPTCHA es opcional y <strong>NINGÚN</strong> comentario de spam será añadido a la cola de spam/moderación, excepto los comentarios legítimos. Esto hace que la tarea de identificar los comentarios sinceros sea mucho más fácil. Esta integración se encuentra actualmente en fase beta.</em>"
+
+#: includes/class-bwp-recaptcha.php:313
+msgid "Redirect commenter back to the comment form"
+msgstr "Redireccione al comentarista de vuelta al formulario de comentarios"
+
+#: includes/class-bwp-recaptcha.php:314
+msgid "Show an error page just like WordPress does"
+msgstr "Mostrar una página de error al igual que lo hace WordPress."
+
+#: includes/class-bwp-recaptcha.php:317
+msgid "Approve comment immediately"
+msgstr "Aprobar comentario inmediatamente"
+
+#: includes/class-bwp-recaptcha.php:318
+msgid "Hold comment in moderation queue"
+msgstr "Mantener el comentario en la cola de moderación"
+
+#: includes/class-bwp-recaptcha.php:319
+msgid "Put comment in spam queue"
+msgstr "Poner el comentario en la cola de spam"
+
+#: includes/class-bwp-recaptcha.php:323
+msgid "enabled for comment forms."
+msgstr "habilitado para formularios de comentarios."
+
+#: includes/class-bwp-recaptcha.php:324
+msgid "enabled for registration page."
+msgstr "habilitado para la página de registro."
+
+#: includes/class-bwp-recaptcha.php:325
+msgid "registered users <em>(even without any capabilities)</em>."
+msgstr "usuarios registrados <em>(incluso sin ninguna capacidad)</em>."
+
+#: includes/class-bwp-recaptcha.php:326
+msgid "users who can"
+msgstr "usuarios que puedan"
+
+#: includes/class-bwp-recaptcha.php:327
+msgid "visitors who have at least"
+msgstr "visitantes que tengan al menos"
+
+#: includes/class-bwp-recaptcha.php:328
+msgid "reCAPTCHA will only show when Akismet identifies a comment as spam. Highly recommended if you do not want to force your visitors to type the captcha every time."
+msgstr "reCAPTCHA sólo se muestrará cuando Akismet identifica un comentario como spam. Muy recomendable si usted no quiere forzar a sus visitantes a escribir el captcha cada vez."
+
+#: includes/class-bwp-recaptcha.php:331
+msgid "A public key used to request captchas from reCAPTCHA server."
+msgstr "Una clave pública se utiliza para solicitar captchas del servidor reCAPTCHA."
+
+#: includes/class-bwp-recaptcha.php:332
+msgid "A private (secret) key used to authenticate user's response."
+msgstr "Una clave privada (secreta) se utiliza para autenticar la respuesta del usuario."
+
+#: includes/class-bwp-recaptcha.php:333
+msgid "when redirect commenter back to the comment form."
+msgstr "cuando redireccione al comentarista de vuelta al formulario de comentarios."
+
+#: includes/class-bwp-recaptcha.php:334
+msgid "when show the normal error page with no redirection."
+msgstr "cuando muestra la página de error normal sin redirección."
+
+#: includes/class-bwp-recaptcha.php:335
+msgid "approved comment(s)."
+msgstr "comentario(s) aprobado(s)."
+
+#: includes/class-bwp-recaptcha.php:338
+msgid "<em><strong>Note:</strong> For this plugin to work, you will need a pair of API keys (public and private), which is available for free <a href=\"https://www.google.com/recaptcha/admin/create\" target=\"_blank\">here</a>. Once you have created those two keys for this domain, simply paste them below.</em>"
+msgstr "<em><strong>Nota:</strong> Para que este plugin funcione, usted necesitará de un par de claves API (pública y privada), que están disponibles de forma gratuita <a href=\"https://www.google.com/recaptcha/admin/create\" target=\"_blank\">aquí</a>. Una vez que haya creado las dos claves para este dominio, sólo tiene que pegarlas a continuación.</em>"
+
+#: includes/class-bwp-recaptcha.php:339
+msgid "<em><strong>Note:</strong> Now you may wonder, why put the comment in the spam queue? The benefit is Akismet will be able to mark the comment as False Positive, and thus will not possibly block that comment in the future. However, it is best to just put the comment in moderation queue as next time Akismet will put such comment in moderation queue immediately without the need of a CAPTCHA.</em>"
+msgstr "<em><strong>Nota:</strong> Ahora usted puede preguntarse, ¿por qué poner el comentario en la cola de spam? El beneficio de esto es que Akismet será capaz de marcar el comentario como Falso Positivo, y por lo tanto no será posible que bloqueé el comentario en el futuro. Sin embargo, es mejor sólo poner el comentario en la cola de moderación ya que la próxima vez Akismet pondrá esos comentarios en la cola de moderación inmediatamente sin la necesidad de un CAPTCHA.</em>"
+
+#: includes/class-bwp-recaptcha.php:364
+msgid "Choose a theme"
+msgstr "Elija un tema"
+
+#: includes/class-bwp-recaptcha.php:365
+msgid "Use CSS provided by this plugin?"
+msgstr "¿Usar los CSS proporcionados por este plugin?"
+
+#: includes/class-bwp-recaptcha.php:366
+msgid "Load CSS, JS selectively?"
+msgstr "¿Leer CSS, JS selectivamente?"
+
+#: includes/class-bwp-recaptcha.php:367
+msgid "Choose a language for built-in themes"
+msgstr "Elija un idioma para los temas integrados."
+
+#: includes/class-bwp-recaptcha.php:368
+msgid "Tabindex for captcha input field"
+msgstr "Tabindex para el campo de entrada de captcha"
+
+#: includes/class-bwp-recaptcha.php:369
+msgid "Preview your reCAPTCHA"
+msgstr "Vista previa de su reCAPTCHA"
+
+#: includes/class-bwp-recaptcha.php:373
+msgid "<em>Below you will see how your reCAPTCHA will look. Note that this might differ on your actual pages.<br /></em>"
+msgstr "<em>A continuación podrás apreciar cómo tu reCAPTCHA se verá. Tener en cuenta que esto puede variar en sus páginas reales.<br /></em>"
+
+#: includes/class-bwp-recaptcha.php:377
+msgid "Default Theme (Red)"
+msgstr "Tema por defecto (Rojo)"
+
+#: includes/class-bwp-recaptcha.php:378
+msgid "White Theme"
+msgstr "Tema Blanco"
+
+#: includes/class-bwp-recaptcha.php:379
+msgid "Black Theme"
+msgstr "Tema Negro"
+
+#: includes/class-bwp-recaptcha.php:380
+msgid "Clean Theme"
+msgstr "Tema Limpio"
+
+#: includes/class-bwp-recaptcha.php:381
+msgid "Custom Theme (use CSS)"
+msgstr "Tema Personalizado (usa CSS)"
+
+#: includes/class-bwp-recaptcha.php:386
+msgid "This stylesheet is used to style the custom theme as well as the registration page. You can disable this or add appropriate filters to use your own."
+msgstr "Esta hoja de estilos se usa para personalizar el tema así como la página de registro. Usted puede desactivar esto o añadir los filtros apropiados para utilizar los suyos propios."
+
+#: includes/class-bwp-recaptcha.php:387
+msgid "This is only useful when you do not use any minify or cache plugin."
+msgstr "Esto es útil solamente cuando usted no usa ningún plugin de minify o cache."
+
+#: includes/class-bwp-recaptcha.php:390
+msgid "Basically, this should be 4 if you place the captcha before the textarea, and 5 if you put it after."
+msgstr "Básicamente, este debe ser de 4 si se coloca el antes del área de texto, y 5 si lo pone después."
+
+#: includes/class-bwp-recaptcha.php:393
+#, php-format
+msgid "<em><strong>Note:</strong> The four built-in captcha themes will look OK in most WordPress themes; However, some times it is better to control how reCAPTCHA looks using CSS. Please read <a href=\"%s#customization\" target=\"_blank\">this guide</a> if you would like to do so.</em>"
+msgstr "<em><strong>Nota:</strong> Los cuatro temas integrados de captcha se verán bien en la mayoría de temas de WordPress, sin embargo, a veces es mejor controlar la forma en reCAPTCHA se luce haciendo uso de CSS. Por favor lea <a href=\"%s#customization\" target=\"_blank\">esta guía</a> si desea hacerlo."
+
+#: includes/class-bwp-recaptcha.php:394
+#, php-format
+msgid "<em><strong>Note:</strong> Above you can select some built-in languages. If you would like to add your own language, please read <a href=\"%s#customization\" target=\"_blank\">this guide</a>.</em>"
+msgstr "<em><strong>Nota:</strong> Arriba usted puede seleccionar algunos de los idiomas integrados. Si desea agregar su propio idioma, por favor lea <a href=\"%s#customization\" target=\"_blank\">esta guía</a>.</em>"
+
+#: includes/class-bwp-recaptcha.php:438
+msgid "Warning"
+msgstr "Advertencia"
+
+#: includes/class-bwp-recaptcha.php:438
+msgid "API key(s) missing. Please get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a> (free!)"
+msgstr "Faltan las claves de la API. Por favor obtenga una clave de la API de <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a> (es gratuito!)"
+
+#: includes/class-bwp-recaptcha.php:440
+msgid "Notice"
+msgstr "Nota"
+
+#: includes/class-bwp-recaptcha.php:440
+msgid "You are enabling Akismet integration but Akismet is not currently active. Please activate Akismet for the integration to work."
+msgstr "Usted está permitiendo la integración con Akismet, pero Akismet actualmente no está activo Por favor active Akismet para que funcione la integración."
+
+#: includes/class-bwp-recaptcha.php:548
+msgid "Your comment was identified as spam, please complete the CAPTCHA below:"
+msgstr "Su comentario fue identificado como spam, por favor complete el CAPTCHA a continuación:"
+
+#: includes/class-bwp-recaptcha.php:580
+msgid "To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>"
+msgstr "Para usar reCAPTCHA debe obtener una clave de API de <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>"
+
+#: includes/class-bwp-recaptcha.php:609
+msgid "<strong>ERROR</strong>: Captcha response is either empty or incorrect."
+msgstr "<strong>ERROR</strong>: La respuesta de captcha está vacía o es incorrecta."
+
+#: includes/class-bwp-recaptcha.php:611
+msgid "<strong>ERROR</strong>: Unknown captcha error."
+msgstr "<strong>ERROR</strong>: Error de captcha desconocido."
+
+#: includes/class-bwp-recaptcha.php:661
+msgid "this link"
+msgstr "este enlace"
+
+#: includes/class-bwp-recaptcha.php:663
+msgid "There is some problem with your reCAPTCHA API keys, please double check them."
+msgstr "Hay algún problema con sus claves de la API de reCAPTCHA, por favor, vuelva a comprobarlas."
+
+#: includes/class-bwp-recaptcha.php:665
+msgid "Unknown error. Please contact the administrator for more info."
+msgstr "Error desconocido. Póngase en contacto con el administrador para más información."
+
+#: includes/bwp-option-page/includes/class-bwp-option-page.php:80
+msgid "Plugin Configurations"
+msgstr "Configuraciones de Plugin"
+
+#: includes/bwp-option-page/includes/class-bwp-option-page.php:398
+msgid "Save Changes"
+msgstr "Guardar Cambios"
+
+#~ msgid "log"
+#~ msgstr "blog"
View
23 readme.txt
@@ -3,8 +3,8 @@ Contributors: OddOneOut
Donate link: http://betterwp.net/wordpress-plugins/bwp-recaptcha/
Tags: anti-spam, recaptcha, akismet, akismet integration
Requires at least: 2.8
-Tested up to: 3.1.1
-Stable tag: 1.0.0
+Tested up to: 3.2.1
+Stable tag: 1.0.1
This plugin utilizes reCAPTCHA (with support for Akismet) to help your blog stay clear of spams.
@@ -23,13 +23,23 @@ In the 21th century, spamming could be one of the most annoying problems for a w
* WordPress Multi-site compatible (not tested with WPMU)
* And more...
+**Languages**
+
+* English (default)
+* Spanish - Espanol (es_ES) - Thanks to [Ivan Leomuro]!
+
+Please [help translate](http://betterwp.net/wordpress-tips/create-pot-file-using-poedit/) this plugin!
+
The installation of this plugin will require additional work if you don't use `comment_form()` by default. Please read this plugin's [usage note](http://betterwp.net/wordpress-plugins/bwp-recaptcha/#usage) for more information.
== Installation ==
1. Upload the `bwp-recaptcha` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the Plugins menu in WordPress. After activation, you should see a menu of this plugin on your left. If you can not locate it, click on Settings under the plugin's name.
-3. If you don't use `comment_form()` to print the comment form, please read [this usage note](http://betterwp.net/wordpress-plugins/bwp-recaptcha/#usage).
+3. If you don't use `comment_form()` to print the comment form, please read [this usage note](http://betterwp.net/wordpress-plugins/bwp-recaptcha/#usage). Also, if you would like to have reCAPTCHA appearing below the textarea where your visitors type their comments, simply replace `comment_form()` in `comments.php` with this:
+<pre><code>
+if (function_exists('bwp_capt_comment_form')) {bwp_capt_comment_form();}
+</code></pre>
4. Configure the plugin, and add your API keys. You must have API keys for the current domain for this plugin to work.
5. Say goodbye to spam!
@@ -45,6 +55,13 @@ The installation of this plugin will require additional work if you don't use `c
== Changelog ==
+= 1.0.1 =
+* Added a template function that allows you to display reCAPTCHA below the textarea in a comment form. Check the installation tab out if you would like to know how to use the new template function. Thanks to Jo�o Bruni!
+* Made the public key and private key site-wide options. If you use BWP reCAPTCHA on a multi-site installation, you will only need to input this once.
+* Added Spanish - Espanol translation, thanks to Ivan Leomuro!
+* Marked this plugin as compatible with WordPress 3.2.x.
+* Other minor bugfixes and improvements.
+
= 1.0.0 =
* Initial Release.

0 comments on commit 2b2b47b

Please sign in to comment.