From a4785232c00c93082197a1eb1e1260ce56dc605c Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Thu, 7 Mar 2024 21:48:12 -0500 Subject: [PATCH] fix: add a specific text domain to check in the phpcs tests --- includes/model/class-openedx-commerce-post-type.php | 4 ++-- phpcs.xml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/includes/model/class-openedx-commerce-post-type.php b/includes/model/class-openedx-commerce-post-type.php index d0a2046..90089b8 100644 --- a/includes/model/class-openedx-commerce-post-type.php +++ b/includes/model/class-openedx-commerce-post-type.php @@ -101,7 +101,7 @@ public function register_post_type() { 'name' => $this->plural, 'singular_name' => $this->single, 'name_admin_bar' => $this->single, - 'add_new' => sprintf( _x( 'Add New', 'openedx-commerce' ), $this->post_type ), + 'add_new' => sprintf( _x( 'Add New', 'openedx-commerce', 'openedx-commerce' ), $this->post_type ), // translators: %s: Name of the post type in singular. 'add_new_item' => sprintf( __( 'Add New %s', 'openedx-commerce' ), $this->single ), // translators: %s: Name of the post type in singular. @@ -119,7 +119,7 @@ public function register_post_type() { // translators: %s: Name of the post type in plural. 'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'openedx-commerce' ), $this->plural ), // translators: %s: Name of the post type in singular. - 'parent_item_colon' => sprintf( __( 'Parent %s' ), $this->single ), + 'parent_item_colon' => sprintf( __( 'Parent %s', 'openedx-commerce' ), $this->single ), 'menu_name' => $this->plural, ); diff --git a/phpcs.xml b/phpcs.xml index eae5329..222dd59 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -8,6 +8,7 @@ ./admin/index.php ./public/index.php index.php + composer-setup.php @@ -18,6 +19,15 @@ + + + + + + + + +