Skip to content

Commit

Permalink
Add l10n support and complete missing translations. (#281)
Browse files Browse the repository at this point in the history
Fixes #280, props @Sonic853!
  • Loading branch information
Sonic853 authored and kasparsd committed Apr 16, 2019
1 parent 1566745 commit ebbdaf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class.two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -738,7 +738,7 @@ public static function user_two_factor_options( $user ) {
<table class="form-table">
<tr>
<th>
<?php esc_html_e( 'Two-Factor Options' ); ?>
<?php esc_html_e( 'Two-Factor Options', 'two-factor' ); ?>
</th>
<td>
<table class="two-factor-methods-table">
Expand Down

0 comments on commit ebbdaf3

Please sign in to comment.