Skip to content

Commit

Permalink
Merge pull request #39 from kimcoleman/dev
Browse files Browse the repository at this point in the history
Localizing fixes; readme update
  • Loading branch information
kimcoleman authored Mar 15, 2022
2 parents 453f85e + 3e52c33 commit df51b2c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 11 deletions.
30 changes: 29 additions & 1 deletion languages/memberlite-shortcodes.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: 2021-03-14 03:20+1100\n"
"POT-Creation-Date: 2022-03-15 14:36-0400\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 @@ -34,3 +34,31 @@ msgid ""
"You are logged in as <strong>%s</strong>. If you would like to use a "
"different account for this membership, <a href=\"%s\">log out now</a>."
msgstr ""

#: shortcodes/signup.php:55
msgid "Username"
msgstr ""

#: shortcodes/signup.php:60
msgid "Password"
msgstr ""

#: shortcodes/signup.php:67
msgid "Confirm Password"
msgstr ""

#: shortcodes/signup.php:73
msgid "E-mail Address"
msgstr ""

#: shortcodes/signup.php:80
msgid "Confirm E-mail"
msgstr ""

#: shortcodes/signup.php:86
msgid "Full Name"
msgstr ""

#: shortcodes/signup.php:87
msgid "LEAVE THIS BLANK"
msgstr ""
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Some of the shortcodes in this plugin will work with any theme, but we cannot gu
== Changelog ==

= 1.3.6 - 2022-03-15 =
* BUG FIX: Fixed a few strings that we not prepared for localization.
* BUG FIX/ENHANCEMENT: Only load some CSS for shortcodes for sites not using Memberlite theme.
* ENHANCEMENT: Updated to Font Awesome version 6.0.
* ENHANCEMENT: Tested up to WordPress 5.9.2.
Expand Down
4 changes: 2 additions & 2 deletions shortcodes/recent_posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function memberlitesc_recent_posts_shortcode_handler($atts, $content=null, $code
global $current_user;

if( empty( $current_user->ID) ) {
return _e( 'There was a problem fetching posts for the current user. Please try again later.', 'memberlite-shortcodes' );
return __( 'There was a problem fetching posts for the current user. Please try again later.', 'memberlite-shortcodes' );
}else{
$query_args['author'] = $current_user->ID;
}
Expand All @@ -62,7 +62,7 @@ function memberlitesc_recent_posts_shortcode_handler($atts, $content=null, $code
$author_id = $user->ID;

if( empty( $author_id ) ) {
return __( "No posts found for this user. Please ensure the author's name/ID is correct.", 'memberlite-shortcodes' );
return __( "No posts found for this user. Please ensure the author's name/ID is correct.", "memberlite-shortcodes" );
}else{
$query_args['author'] = $author_id;
}
Expand Down
16 changes: 8 additions & 8 deletions shortcodes/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,47 +44,47 @@ function memberlitesc_signup_shortcode($atts, $content=null, $code="")
{
?>
<p id="pmpro_account_loggedin">
<?php printf(__('You are logged in as <strong>%s</strong>. If you would like to use a different account for this membership, <a href="%s">log out now</a>.', 'pmpro'), $current_user->user_login, wp_logout_url($_SERVER['REQUEST_URI'])); ?>
<?php printf(__('You are logged in as <strong>%s</strong>. If you would like to use a different account for this membership, <a href="%s">log out now</a>.', 'memberlite-shortcodes'), $current_user->user_login, wp_logout_url($_SERVER['REQUEST_URI'])); ?>
</p>
<?php
}
else
{
?>
<div>
<label for="username">Username</label>
<label for="username"><?php esc_html_e( 'Username', 'memberlite-shortcodes' ); ?></label>
<input id="username" name="username" type="text" class="input" size="30" value="" />
</div>
<?php do_action("pmpro_checkout_after_username");?>
<div>
<label for="password">Password</label>
<label for="password"><?php esc_html_e( 'Password', 'memberlite-shortcodes' ); ?></label>
<input id="password" name="password" type="password" class="input" size="30" value="" />
</div>
<?php if($short) { ?>
<input type="hidden" name="password2_copy" value="1" />
<?php } else { ?>
<div>
<label for="password2">Confirm Password</label>
<label for="password2"><?php esc_html_e( 'Confirm Password', 'memberlite-shortcodes' ); ?></label>
<input id="password2" name="password2" type="password" class="input" size="30" value="" />
</div>
<?php } ?>
<?php do_action("pmpro_checkout_after_password");?>
<div>
<label for="bemail">E-mail Address</label>
<label for="bemail"><?php esc_html_e( 'E-mail Address', 'memberlite-shortcodes' ); ?></label>
<input id="bemail" name="bemail" type="email" class="input" size="30" value="" />
</div>
<?php if($short) { ?>
<input type="hidden" name="bconfirmemail_copy" value="1" />
<?php } else { ?>
<div>
<label for="bconfirmemail">Confirm E-mail</label>
<label for="bconfirmemail"><?php esc_html_e( 'Confirm E-mail', 'memberlite-shortcodes' ); ?></label>
<input id="bconfirmemail" name="bconfirmemail" type="email" class="input" size="30" value="" />
</div>
<?php } ?>
<?php do_action("pmpro_checkout_after_email");?>
<div class="pmpro_hidden">
<label for="fullname">Full Name</label>
<input id="fullname" name="fullname" type="text" class="input" size="30" value="" /> <strong>LEAVE THIS BLANK</strong>
<label for="fullname"><?php esc_html_e( 'Full Name', 'memberlite-shortcodes' ); ?></label>
<input id="fullname" name="fullname" type="text" class="input" size="30" value="" /> <strong><?php esc_html_e( 'LEAVE THIS BLANK', 'memberlite-shortcodes' ); ?></strong>
</div>

<div class="pmpro_captcha">
Expand Down

0 comments on commit df51b2c

Please sign in to comment.