Skip to content

Commit

Permalink
Add missing textdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Aug 4, 2016
1 parent 9396c54 commit 387cd74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function get_zone( $zone_id ) {
*/
public function get_items_permissions_check( $request ) {
if ( ! wc_shipping_enabled() ) {
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.' ), array( 'status' => 404 ) );
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.', 'woocommerce' ), array( 'status' => 404 ) );
}

if ( ! wc_rest_check_manager_permissions( 'settings', 'read' ) ) {
Expand All @@ -78,7 +78,7 @@ public function get_items_permissions_check( $request ) {
*/
public function create_item_permissions_check( $request ) {
if ( ! wc_shipping_enabled() ) {
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.' ), array( 'status' => 404 ) );
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.', 'woocommerce' ), array( 'status' => 404 ) );
}

if ( ! wc_rest_check_manager_permissions( 'settings', 'edit' ) ) {
Expand All @@ -96,7 +96,7 @@ public function create_item_permissions_check( $request ) {
*/
public function update_items_permissions_check( $request ) {
if ( ! wc_shipping_enabled() ) {
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.' ), array( 'status' => 404 ) );
return new WP_Error( 'rest_no_route', __( 'Shipping is disabled.', 'woocommerce' ), array( 'status' => 404 ) );
}

if ( ! wc_rest_check_manager_permissions( 'settings', 'edit' ) ) {
Expand Down

0 comments on commit 387cd74

Please sign in to comment.