Skip to content

Commit

Permalink
fix: correct the text domains
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Aug 22, 2024
1 parent e97fc8a commit 552a549
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions admin/class-openedx-commerce-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public function add_openedx_course_product_type( $type_options ) {
$type_options['wild_card'] = array(
'id' => 'is_openedx_course',
'wrapper_class' => 'show_if_simple',
'label' => __( 'Open edX Course', 'woocommerce' ),
'description' => __( 'Check this box if the product is an Open edX Course', 'woocommerce' ),
'label' => __( 'Open edX Course', 'openedx-commerce' ),
'description' => __( 'Check this box if the product is an Open edX Course', 'openedx-commerce' ),
'default' => $checked,
);
return $type_options;
Expand Down Expand Up @@ -257,27 +257,27 @@ public function add_custom_product_fields() {
woocommerce_wp_text_input(
array(
'id' => '_course_id',
'label' => __( 'Open edX Course ID', 'woocommerce' ),
'label' => __( 'Open edX Course ID', 'openedx-commerce' ),
'placeholder' => '',
'desc_tip' => 'true',
'description' => __(
'Ex: course-v1:edX+DemoX+Demo_Course.
<br><br> You can find the Open edX Course ID
in the URL of your course in your LMS.',
'woocommerce',
'openedx-commerce',
),
)
);

woocommerce_wp_select(
array(
'id' => '_mode',
'label' => __( 'Open edX Course Mode', 'woocommerce' ),
'label' => __( 'Open edX Course Mode', 'openedx-commerce' ),
'desc_tip' => 'true',
'description' => __(
'Select the mode for your course.
Make sure to set a mode that your course has.',
'woocommerce',
'openedx-commerce',
),
'options' => utils\get_enrollment_options(),
)
Expand All @@ -293,7 +293,7 @@ public function add_custom_product_fields() {
*/
public function add_custom_column_order_items() {
echo '<th>' .
esc_html__( 'Related Enrollment Request', 'woocommerce' ) .
esc_html__( 'Related Enrollment Request', 'openedx-commerce' ) .
'</th>';
}

Expand Down Expand Up @@ -351,7 +351,7 @@ public function add_admin_order_item_values( $product, $item, $item_id = null )
} else {

$html_output = '<td>';
$html_output .= esc_html__( 'Product is not an Open edX Course', 'woocommerce' );
$html_output .= esc_html__( 'Product is not an Open edX Course', 'openedx-commerce' );
$html_output .= '</td>';

echo wp_kses(
Expand Down
1 change: 0 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<properties>
<property name="text_domain" type="array">
<element value="openedx-commerce"/>
<element value="woocommerce"/>
</property>
</properties>
</rule>
Expand Down

0 comments on commit 552a549

Please sign in to comment.