Skip to content

Commit

Permalink
Fixing some more text domains.
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude committed Oct 2, 2020
1 parent 641495d commit 0d692c8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions includes/options-membership-levels.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function pmprobb_pmpro_membership_level_after_other_settings()
<table>
<tbody class="form-table">
<tr>
<th scope="row" valign="top"><label for="forum_role"><?php _e('Forum Role', 'pmpro');?></label></th>
<th scope="row" valign="top"><label for="forum_role"><?php _e('Forum Role', 'pmpro-bbpress');?></label></th>
<td>
<select id="forum_role" name="forum_role">
<option value="" <?php selected($forum_role, '');?>><?php esc_html_e( 'Default Behavior', 'pmpro-bbpress' ); ?></option>
Expand All @@ -59,7 +59,7 @@ function pmprobb_pmpro_membership_level_after_other_settings()
</td>
</tr>
<tr>
<th scope="row" valign="top"><label for="forum_color"><?php _e('Background Color', 'pmpro');?></label></th>
<th scope="row" valign="top"><label for="forum_color"><?php _e('Background Color', 'pmpro-bbpress');?></label></th>
<td>
<input type="text" id="forum_color" name="forum_color" value="<?php echo esc_attr($forum_color);?>" />
<p class="description"><?php printf( esc_html__( 'You can also add custom styles for %s via your CSS files.', 'pmpro-bbpress' ), "<code>.pmpro-level-" . intval( $level_id ) . "</code>" ); ?></p>
Expand Down
Binary file modified languages/pmpro-bbpress.mo
Binary file not shown.
12 changes: 7 additions & 5 deletions languages/pmpro-bbpress.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2020-10-02 02:25+1000\n"
"POT-Creation-Date: 2020-10-03 09:54+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -21,11 +21,13 @@ msgstr ""
msgid "This forum is for members only."
msgstr ""

#: includes/options-membership-levels.php:43
#: includes/options-membership-levels.php:43
#: includes/options-membership-levels.php:56
msgid "Forum Role"
msgstr ""

#: includes/options-membership-levels.php:62
#: includes/options-membership-levels.php:62
#: includes/options-membership-levels.php:75
msgid "Background Color"
Expand All @@ -41,18 +43,18 @@ msgstr ""
msgid "%1$s"
msgstr ""

#: pmpro-bbpress.php:168 pmpro-bbpress.php:140
#: pmpro-bbpress.php:168 pmpro-bbpress.php:140 pmpro-bbpress.php:168
msgid "You do not have the required membership level to access that forum."
msgstr ""

#: pmpro-bbpress.php:442 pmpro-bbpress.php:420
#: pmpro-bbpress.php:442 pmpro-bbpress.php:420 pmpro-bbpress.php:442
msgid "Replies viewable by members only"
msgstr ""

#: pmpro-bbpress.php:504 pmpro-bbpress.php:198
#: pmpro-bbpress.php:509 pmpro-bbpress.php:198 pmpro-bbpress.php:504
msgid "View Documentation"
msgstr ""

#: pmpro-bbpress.php:505 pmpro-bbpress.php:199
#: pmpro-bbpress.php:510 pmpro-bbpress.php:199 pmpro-bbpress.php:505
msgid "Visit Customer Support Forum"
msgstr ""
12 changes: 7 additions & 5 deletions languages/pmpro-bbpress.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2020-10-02 02:25+1000\n"
"POT-Creation-Date: 2020-10-03 09:54+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -21,11 +21,13 @@ msgstr ""
msgid "This forum is for members only."
msgstr ""

#: includes/options-membership-levels.php:43
#: includes/options-membership-levels.php:43
#: includes/options-membership-levels.php:56
msgid "Forum Role"
msgstr ""

#: includes/options-membership-levels.php:62
#: includes/options-membership-levels.php:62
#: includes/options-membership-levels.php:75
msgid "Background Color"
Expand All @@ -41,18 +43,18 @@ msgstr ""
msgid "%1$s"
msgstr ""

#: pmpro-bbpress.php:168 pmpro-bbpress.php:140
#: pmpro-bbpress.php:168 pmpro-bbpress.php:140 pmpro-bbpress.php:168
msgid "You do not have the required membership level to access that forum."
msgstr ""

#: pmpro-bbpress.php:442 pmpro-bbpress.php:420
#: pmpro-bbpress.php:442 pmpro-bbpress.php:420 pmpro-bbpress.php:442
msgid "Replies viewable by members only"
msgstr ""

#: pmpro-bbpress.php:504 pmpro-bbpress.php:198
#: pmpro-bbpress.php:509 pmpro-bbpress.php:198 pmpro-bbpress.php:504
msgid "View Documentation"
msgstr ""

#: pmpro-bbpress.php:505 pmpro-bbpress.php:199
#: pmpro-bbpress.php:510 pmpro-bbpress.php:199 pmpro-bbpress.php:505
msgid "Visit Customer Support Forum"
msgstr ""
5 changes: 5 additions & 0 deletions pmpro-bbpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ function pmprobb_non_member_reply_notifications( $user_ids, $reply_id, $topic_id
if ( empty( $user_ids ) ) {
return $user_ids;
}

// Make sure PMPro is active.
if ( ! function_exists( 'pmpro_has_membership_access' ) ) {
return $user_ids;
}

// Check if topic id belongs to restricted forum.
$forum_id = bbp_get_topic_forum_id( $topic_id );
Expand Down

0 comments on commit 0d692c8

Please sign in to comment.