Skip to content

Commit 6de05b6

Browse files
Nicolas KulkaNicolas Kulka
authored andcommitted
update textdomain
1 parent 02c6fde commit 6de05b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/helpers/class-member-auth.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ public static function authenticate_username_password($member, $username, $passw
183183
$error = new WP_Error();
184184

185185
if ( empty($username) ) {
186-
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.'));
186+
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.', 'mpt'));
187187
}
188188
if ( empty($password) ) {
189-
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.'));
189+
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.', 'mpt'));
190190
}
191191

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

198198
if ( !$member->exists() ) {
199-
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() ) );
199+
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() ) );
200200
}
201201

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

207207
if ( !wp_check_password($password, $member->password, false) ) {
208-
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>?' ),
208+
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' ),
209209
$username, mpt_get_lost_password_permalink() ) );
210210
}
211211

0 commit comments

Comments
 (0)