Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add l10n support and complete missing translations. #281

Merged
merged 3 commits into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding these!

}

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