Skip to content

Commit

Permalink
fix: change data base names
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Nov 2, 2023
1 parent 2ec41af commit ce05bbc
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'openedx-woocommerce-plugin.zip'
filename: 'openedx-commerce.zip'
exclusions: '*.git*'

- name: Create a GitHub release
Expand All @@ -104,4 +104,4 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
artifacts: "openedx-woocommerce-plugin.zip"
artifacts: "openedx-commerce.zip"
28 changes: 14 additions & 14 deletions admin/views/class-openedx-commerce-enrollment-info-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function render_enrollment_info_form( $post ) {
?>
>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'The id of the course to be used for the enroll, e.g. course-v1:edX+DemoX+Demo_Course.', 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( 'The id of the course to be used for the enroll, e.g. course-v1:edX+DemoX+Demo_Course.', 'wp-openedx-commerce' ); ?></span>
</td>
</tr>
<tr>
Expand All @@ -123,8 +123,8 @@ public function render_enrollment_info_form( $post ) {
<input type="email" id="openedx_enrollment_email" name="enrollment_email" value="<?php echo esc_attr( $email ); ?>">
</div>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'The email of the user to be used for the enroll.', 'wp-openedx-woocommerce-plugin' ); ?></span>
<button name="enrollment_sync" class="button save_order button-secondary sync_button"><span><?php esc_html_e( 'Read from Open edX', 'wp-openedx-woocommerce-plugin' ); ?></span></button>
<span class="tooltip-text"><?php esc_html_e( 'The email of the user to be used for the enroll.', 'wp-openedx-commerce' ); ?></span>
<button name="enrollment_sync" class="button save_order button-secondary sync_button"><span><?php esc_html_e( 'Read from Open edX', 'wp-openedx-commerce' ); ?></span></button>
</td>
</tr>
<tr class="gray_zone first_zone">
Expand All @@ -138,7 +138,7 @@ public function render_enrollment_info_form( $post ) {
<?php endforeach; ?>
</select>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'The mode of your enrollment request. Make sure to set a mode that your course has.', 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( 'The mode of your enrollment request. Make sure to set a mode that your course has.', 'wp-openedx-commerce' ); ?></span>
</td>
</tr>

Expand All @@ -157,7 +157,7 @@ public function render_enrollment_info_form( $post ) {
?>
>
<?php
esc_html_e( 'Enroll', 'wp-openedx-woocommerce-plugin' );
esc_html_e( 'Enroll', 'wp-openedx-commerce' );
?>
</option>
<option value="unenroll"
Expand All @@ -168,12 +168,12 @@ public function render_enrollment_info_form( $post ) {
?>
>
<?php
esc_html_e( 'Un-enroll', 'wp-openedx-woocommerce-plugin' );
esc_html_e( 'Un-enroll', 'wp-openedx-commerce' );
?>
</option>
</select>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'The type of your request. If you select Enroll, you will create an enrollment, and if you select Un-enroll, you will set a soft unenrollment (enrollment with status inactive).', 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( 'The type of your request. If you select Enroll, you will create an enrollment, and if you select Un-enroll, you will set a soft unenrollment (enrollment with status inactive).', 'wp-openedx-commerce' ); ?></span>
</td>
</tr>
<tr class="gray_zone">
Expand All @@ -192,31 +192,31 @@ public function render_enrollment_info_form( $post ) {
?>
</div>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'The id of the order associated with this request.', 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( 'The id of the order associated with this request.', 'wp-openedx-commerce' ); ?></span>
</td>
</tr>

<tr class="gray_zone">
<td class="checkbox-td">
<input class="action-checkbox" type="checkbox" id="force" name="enrollment_force" value="opcion1">
<label for="force"><?php esc_html_e( 'Use the "force" flag', 'wp-openedx-woocommerce-plugin' ); ?></label>
<label for="force"><?php esc_html_e( 'Use the "force" flag', 'wp-openedx-commerce' ); ?></label>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( "Disregard the course's enrollment end dates.", 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( "Disregard the course's enrollment end dates.", 'wp-openedx-commerce' ); ?></span>
</td>
<td>
<input class="action-checkbox" type="checkbox" id="no_pre" name="enrollment_allowed" value="opcion1">
<label for="no_pre"><?php esc_html_e( "Create course enrollment allowed if the user doesn't exist", 'wp-openedx-woocommerce-plugin' ); ?></label>
<label for="no_pre"><?php esc_html_e( "Create course enrollment allowed if the user doesn't exist", 'wp-openedx-commerce' ); ?></label>
<span class="tooltip-icon">?</span>
<span class="tooltip-text"><?php esc_html_e( 'Creates a register in the table Course Enrollment Allowed if the email we use in the request is not a user in our Open edX platform yet.', 'wp-openedx-woocommerce-plugin' ); ?></span>
<span class="tooltip-text"><?php esc_html_e( 'Creates a register in the table Course Enrollment Allowed if the email we use in the request is not a user in our Open edX platform yet.', 'wp-openedx-commerce' ); ?></span>
</td>
</tr>

<tr class="gray_zone">
<td class="first">
<button name="enrollment_process" class="button save_order button-primary"><span><?php esc_html_e( 'Save and update Open edX', 'wp-openedx-woocommerce-plugin' ); ?></span></button>
<button name="enrollment_process" class="button save_order button-primary"><span><?php esc_html_e( 'Save and update Open edX', 'wp-openedx-commerce' ); ?></span></button>
</td>
<td>
<button name="save_no_process" class="button save_order button-secondary"><span><?php esc_html_e( 'Save in WordPress', 'wp-openedx-woocommerce-plugin' ); ?></span></button>
<button name="save_no_process" class="button save_order button-secondary"><span><?php esc_html_e( 'Save in WordPress', 'wp-openedx-commerce' ); ?></span></button>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion includes/class-openedx-commerce-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Openedx_Commerce_I18n {
public function load_plugin_textdomain() {

load_plugin_textdomain(
'openedx-woocommerce-plugin',
'openedx-commerce',
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
);
Expand Down
2 changes: 1 addition & 1 deletion includes/model/class-openedx-commerce-api-calls.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public function get_enrollment_process_body( $enrollment_data, $use_old_endpoint
),
'enrollment_attributes' => array(
array(
'namespace' => 'openedx-woocommerce-plugin',
'namespace' => 'openedx-commerce',
'name' => 'message',
'value' => 'Enrollment request response.',
),
Expand Down
12 changes: 6 additions & 6 deletions includes/model/class-openedx-commerce-enrollment.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,43 +148,43 @@ public function register_status() {
register_post_status(
'enrollment-success',
array(
'label' => __( 'Success', 'wp-openedx-woocommerce-plugin' ),
'label' => __( 'Success', 'wp-openedx-commerce' ),
'public' => false,
'internal' => true,
'private' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
// translators: %s: number of items.
'label_count' => _n_noop( 'Success <span class="count">(%s)</span>', 'Success <span class="count">(%s)</span>', 'wp-openedx-woocommerce-plugin' ),
'label_count' => _n_noop( 'Success <span class="count">(%s)</span>', 'Success <span class="count">(%s)</span>', 'wp-openedx-commerce' ),
)
);
register_post_status(
'enrollment-pending',
array(
'label' => __( 'Pending', 'wp-openedx-woocommerce-plugin' ),
'label' => __( 'Pending', 'wp-openedx-commerce' ),
'public' => false,
'internal' => true,
'private' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
// translators: %s: number of items.
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'wp-openedx-woocommerce-plugin' ),
'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', 'wp-openedx-commerce' ),
)
);
register_post_status(
'enrollment-error',
array(
'label' => __( 'Error', 'wp-openedx-woocommerce-plugin' ),
'label' => __( 'Error', 'wp-openedx-commerce' ),
'public' => false,
'internal' => true,
'private' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
// translators: %s: number of items.
'label_count' => _n_noop( 'Error <span class="count">(%s)</span>', 'Error <span class="count">(%s)</span>', 'wp-openedx-woocommerce-plugin' ),
'label_count' => _n_noop( 'Error <span class="count">(%s)</span>', 'Error <span class="count">(%s)</span>', 'wp-openedx-commerce' ),
)
);
}
Expand Down
18 changes: 9 additions & 9 deletions includes/model/class-openedx-commerce-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ public function register_post_type() {
'name' => $this->plural,
'singular_name' => $this->single,
'name_admin_bar' => $this->single,
'add_new' => _x( 'Add New', $this->post_type, 'wp-openedx-woocommerce-plugin' ), // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralContext
'add_new' => _x( 'Add New', $this->post_type, 'wp-openedx-commerce' ), // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralContext
// translators: %s: Name of the post type in singular.
'add_new_item' => sprintf( __( 'Add New %s', 'wp-openedx-woocommerce-plugin' ), $this->single ),
'add_new_item' => sprintf( __( 'Add New %s', 'wp-openedx-commerce' ), $this->single ),
// translators: %s: Name of the post type in singular.
'edit_item' => sprintf( __( 'Edit %s', 'wp-openedx-woocommerce-plugin' ), $this->single ),
'edit_item' => sprintf( __( 'Edit %s', 'wp-openedx-commerce' ), $this->single ),
// translators: %s: Name of the post type in singular.
'new_item' => sprintf( __( 'New %s', 'wp-openedx-woocommerce-plugin' ), $this->single ),
'new_item' => sprintf( __( 'New %s', 'wp-openedx-commerce' ), $this->single ),
// translators: %s: Name of the post type in plural.
'all_items' => sprintf( __( 'All %s', 'wp-openedx-woocommerce-plugin' ), $this->plural ),
'all_items' => sprintf( __( 'All %s', 'wp-openedx-commerce' ), $this->plural ),
// translators: %s: Name of the post type in singular.
'view_item' => sprintf( __( 'View %s', 'wp-openedx-woocommerce-plugin' ), $this->single ),
'view_item' => sprintf( __( 'View %s', 'wp-openedx-commerce' ), $this->single ),
// translators: %s: Name of the post type in plural.
'search_items' => sprintf( __( 'Search %s', 'wp-openedx-woocommerce-plugin' ), $this->plural ),
'search_items' => sprintf( __( 'Search %s', 'wp-openedx-commerce' ), $this->plural ),
// translators: %s: Name of the post type in plural.
'not_found' => sprintf( __( 'No %s Found', 'wp-openedx-woocommerce-plugin' ), $this->plural ),
'not_found' => sprintf( __( 'No %s Found', 'wp-openedx-commerce' ), $this->plural ),
// translators: %s: Name of the post type in plural.
'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'wp-openedx-woocommerce-plugin' ), $this->plural ),
'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'wp-openedx-commerce' ), $this->plural ),
// translators: %s: Name of the post type in singular.
'parent_item_colon' => sprintf( __( 'Parent %s' ), $this->single ),
'menu_name' => $this->plural,
Expand Down
14 changes: 7 additions & 7 deletions utils/openedx-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Open edX WooCommerce Plugin utils.
*
* @package openedx-woocommerce-plugin
* @package openedx-commerce
* @since 1.6.0
*/

Expand All @@ -13,11 +13,11 @@
*/
function get_enrollment_options() {
return array(
'Honor' => __( 'Honor', 'wp-openedx-woocommerce-plugin' ),
'Audit' => __( 'Audit', 'wp-openedx-woocommerce-plugin' ),
'Verified' => __( 'Verified', 'wp-openedx-woocommerce-plugin' ),
'Credit' => __( 'Credit', 'wp-openedx-woocommerce-plugin' ),
'Professional' => __( 'Professional', 'wp-openedx-woocommerce-plugin' ),
'No ID Professional' => __( 'No ID Professional', 'wp-openedx-woocommerce-plugin' ),
'Honor' => __( 'Honor', 'wp-openedx-commerce' ),
'Audit' => __( 'Audit', 'wp-openedx-commerce' ),
'Verified' => __( 'Verified', 'wp-openedx-commerce' ),
'Credit' => __( 'Credit', 'wp-openedx-commerce' ),
'Professional' => __( 'Professional', 'wp-openedx-commerce' ),
'No ID Professional' => __( 'No ID Professional', 'wp-openedx-commerce' ),
);
}

0 comments on commit ce05bbc

Please sign in to comment.