From ebbdaf3692deff5794d181e21944679f2dd3fd2c Mon Sep 17 00:00:00 2001 From: Sonic853 Date: Wed, 17 Apr 2019 01:13:34 +0800 Subject: [PATCH] Add l10n support and complete missing translations. (#281) Fixes #280, props @Sonic853! --- class.two-factor-core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class.two-factor-core.php b/class.two-factor-core.php index bf716932..bcaf438f 100644 --- a/class.two-factor-core.php +++ b/class.two-factor-core.php @@ -337,7 +337,7 @@ public static function backup_2fa() { if ( isset( $providers[ $_GET['provider'] ] ) ) { $provider = $providers[ $_GET['provider'] ]; } else { - wp_die( esc_html__( 'Cheatin’ uh?' ), 403 ); + wp_die( esc_html__( 'Cheatin’ uh?', 'two-factor' ), 403 ); } self::login_html( $user, $_GET['wp-auth-nonce'], $_GET['redirect_to'], '', $provider ); @@ -608,7 +608,7 @@ public static function login_form_validate_2fa() { if ( isset( $providers[ $_POST['provider'] ] ) ) { $provider = $providers[ $_POST['provider'] ]; } else { - wp_die( esc_html__( 'Cheatin’ uh?' ), 403 ); + wp_die( esc_html__( 'Cheatin’ uh?', 'two-factor' ), 403 ); } } else { $provider = self::get_primary_provider_for_user( $user->ID ); @@ -683,7 +683,7 @@ public static function login_form_validate_2fa() { * @return array Updated array of columns. */ public static function filter_manage_users_columns( array $columns ) { - $columns['two-factor'] = __( 'Two-Factor' ); + $columns['two-factor'] = __( 'Two-Factor', 'two-factor' ); return $columns; } @@ -738,7 +738,7 @@ public static function user_two_factor_options( $user ) {
- +