Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
15 i18n/buddypress-honeypot-es.po
@@ -0,0 +1,15 @@
+# Translation of BuddyPress Honeypot in Spanish (Spain)
+# This file is distributed under the same license as the BuddyPress Honeypot package.
+msgid ""
+msgstr ""
+"PO-Revision-Date: 2012-09-19 05:28:56+0000\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: GlotPress/0.1\n"
+"Project-Id-Version: BuddyPress Honeypot\n"
+
+#: /Applications/MAMP/htdocs/_wp.svn/wp-content/plugins/pj-buddypress-honeypot/pj-buddypress-honeypot.php:79
+msgid "You're totally a spammer. Go somewhere else with your spammy ways."
+msgstr "Usted es totalmente un spammer. Ve a otro lugar con sus formas de spam."
View
BIN i18n/pj-buddypress-honeypot.mo
Binary file not shown.
View
19 i18n/pj-buddypress-honeypot.po
@@ -0,0 +1,19 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: BuddyPress Honeypot\n"
+"POT-Creation-Date: 2012-09-18 22:20-0800\n"
+"PO-Revision-Date: 2012-09-18 22:20-0800\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-Generator: Poedit 1.5.3\n"
+"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SearchPath-0: /Applications/MAMP/htdocs/_wp.svn/wp-content/plugins/"
+"pj-buddypress-honeypot\n"
+
+#: /Applications/MAMP/htdocs/_wp.svn/wp-content/plugins/pj-buddypress-honeypot/pj-buddypress-honeypot.php:79
+msgid "You're totally a spammer. Go somewhere else with your spammy ways."
+msgstr ""
View
7 pj-buddypress-honeypot.php
@@ -30,6 +30,9 @@
* **********************************************************************
*/
+// INTERNATIONALIZATION
+load_plugin_textdomain( 'pj-buddypress-honeypot', null, basename( dirname( __FILE__ ) ) );
+
class pjbp_honeypot {
/**
@@ -56,7 +59,7 @@ function __construct() {
function add_honeypot() {
echo '<div style="display: none;">';
- echo '<input type="text" name="'.apply_filters( 'bppj_honeypot_name', BPPJ_HONEYPOT_NAME ).'" id="'.apply_filters( 'bppj_honeypot_id', BPPJ_HONEYPOT_ID ).'" />';
+ echo '<input type="text" name="'.apply_filters( 'bppj_honeypot_name', self::BPPJ_HONEYPOT_NAME ).'" id="'.apply_filters( 'bppj_honeypot_id', self::BPPJ_HONEYPOT_ID ).'" />';
echo '</div>';
}
@@ -70,7 +73,7 @@ function add_honeypot() {
function check_honeypot( $result = array() ) {
global $bp;
- $bppj_honeypot_name = apply_filters( 'bppj_honeypot_name', BPPJ_HONEYPOT_NAME );
+ $bppj_honeypot_name = apply_filters( 'bppj_honeypot_name', self::BPPJ_HONEYPOT_NAME );
if( isset( $_POST[$bppj_honeypot_name] ) && !empty( $_POST[$bppj_honeypot_name] ) )
$result['errors']->add( 'pjbp_honeypot', apply_filters( 'bppj_honeypot_fail_message', __( "You're totally a spammer. Go somewhere else with your spammy ways." ) ) );

No commit comments for this range

Something went wrong with that request. Please try again.