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

fix: correct the text domains #89

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
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
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
Loading