Skip to content

Commit

Permalink
update textdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Kulka authored and Nicolas Kulka committed Feb 15, 2017
1 parent 02c6fde commit 6de05b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/helpers/class-member-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ public static function authenticate_username_password($member, $username, $passw
$error = new WP_Error();

if ( empty($username) ) {
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.'));
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.', 'mpt'));
}
if ( empty($password) ) {
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.'));
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.', 'mpt'));
}

return $error;
Expand All @@ -196,7 +196,7 @@ public static function authenticate_username_password($member, $username, $passw
$member->fill_by( 'username', $username );

if ( !$member->exists() ) {
return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), mpt_get_lost_password_permalink() ) );
return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?', 'mpt'), mpt_get_lost_password_permalink() ) );
}

$member = apply_filters('mpt_authenticate_member', $member, $password);
Expand All @@ -205,7 +205,7 @@ public static function authenticate_username_password($member, $username, $passw
}

if ( !wp_check_password($password, $member->password, false) ) {
return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),
return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?', 'mpt' ),
$username, mpt_get_lost_password_permalink() ) );
}

Expand Down

0 comments on commit 6de05b6

Please # to comment.