i18n: Fix some translation strings (#16441)

* i18n: permissions -> permission

* i18n: permissions -> permission
This commit is contained in:
Rami Yushuvaev 2017-08-14 19:25:08 +03:00 committed by Mike Jolley
parent 423d46f864
commit 17d10b3e9f
2 changed files with 4 additions and 4 deletions

View File

@ -201,7 +201,7 @@ class WC_Admin_Webhooks {
}
if ( ! current_user_can( 'publish_shop_webhooks' ) ) {
wp_die( __( 'You do not have permissions to create Webhooks!', 'woocommerce' ) );
wp_die( __( 'You do not have permission to create Webhooks', 'woocommerce' ) );
}
$webhook_id = wp_insert_post( array(
@ -286,7 +286,7 @@ class WC_Admin_Webhooks {
}
if ( ! current_user_can( 'edit_shop_webhooks' ) ) {
wp_die( __( 'You do not have permissions to edit Webhooks!', 'woocommerce' ) );
wp_die( __( 'You do not have permission to edit Webhooks', 'woocommerce' ) );
}
$webhooks = array_map( 'absint', (array) $_GET['webhook'] );
@ -315,7 +315,7 @@ class WC_Admin_Webhooks {
}
if ( ! current_user_can( 'delete_shop_webhooks' ) ) {
wp_die( __( 'You do not have permissions to delete Webhooks!', 'woocommerce' ) );
wp_die( __( 'You do not have permission to delete Webhooks', 'woocommerce' ) );
}
$webhooks = get_posts( array(

View File

@ -374,7 +374,7 @@ class WC_Auth {
exit;
}
} else {
throw new Exception( __( 'You do not have permissions to access this page!', 'woocommerce' ) );
throw new Exception( __( 'You do not have permission to access this page', 'woocommerce' ) );
}
} catch ( Exception $e ) {
$this->maybe_delete_key( $consumer_data );