Skip to content

Commit

Permalink
refactor: improve double dirname and add more documentation of Open e…
Browse files Browse the repository at this point in the history
…dX (#64)

* refactor: improve the double dirname

* docs: add more information about the Open edX connection and fix the tested up version
  • Loading branch information
MaferMazu authored Dec 13, 2023
1 parent 4b5f14b commit 24e76a1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Here are some things you can do with this plugin:

- **Obtain enrollment information:** This requests the Open edX APIs to retrieve the enrollment status of a user in a course.

**Note**

This plugin calls the APIs from <a href="https://github.com/openedx/edx-platform" target="_blank">Open edX Platform</a>.

More information about the API connection can be found in <a href="https://github.com/openedx/openedx-wordpress-ecommerce/blob/main/docs/source/decisions/0002-api-connection.rst" target="_blank">Decisions: API connection</a>.

To learn more, you can visit the <a href="https://openedx.org/terms-of-use/" target="_blank">Open edX Terms of Service</a>.

# Installation

## Requirements
Expand Down
10 changes: 9 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: felipemontoya, julianrg2, mafermazu
Tags: openedx, open edx, ecommerce, lms, courses
Requires at least: 6.3
Tested up to: 6.3.1
Tested up to: 6.3
Requires PHP: 8.0
Stable tag: 2.0.1
License: GPLv2 or later
Expand Down Expand Up @@ -41,6 +41,14 @@ Below are some links to help you get started with Open edX WooCommerce Plugin:
- <a href="https://edunext-docs-openedx-woocommerce-plugin.readthedocs-hosted.com/en/latest/plugin_quickstart.html" target="_blank">Quick Start Guide</a>
- <a href="https://edunext-docs-openedx-woocommerce-plugin.readthedocs-hosted.com/en/latest/how-tos/index.html" target="_blank">How-to Guides</a>

**Note**

This plugin calls the APIs from <a href="https://github.com/openedx/edx-platform" target="_blank">Open edX Platform</a>.

More information about the API connection can be found in <a href="https://github.com/openedx/openedx-wordpress-ecommerce/blob/main/docs/source/decisions/0002-api-connection.rst" target="_blank">Decisions: API connection</a>.

To learn more, you can visit the <a href="https://openedx.org/terms-of-use/" target="_blank">Open edX Terms of Service</a>.

== Installation ==

= Minimum Requirements =
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 @@ -38,7 +38,7 @@ public function load_plugin_textdomain() {
load_plugin_textdomain(
'openedx-commerce',
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
dirname( plugin_basename( __FILE__ ), 2 ) . '/languages/'
);
}
}

0 comments on commit 24e76a1

Please sign in to comment.