diff --git a/.gitignore b/.gitignore index a191bc1..b0947f3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ phpcs-report.xml build .DS_Store source/.DS_Store + +### Build files ### +openedx-commerce diff --git a/includes/class-openedx-commerce-i18n.php b/includes/class-openedx-commerce-i18n.php deleted file mode 100644 index 56e1b18..0000000 --- a/includes/class-openedx-commerce-i18n.php +++ /dev/null @@ -1,42 +0,0 @@ -plugin_name = 'openedx-commerce'; $this->load_dependencies(); - $this->set_locale(); $this->define_admin_hooks(); $this->define_public_hooks(); $this->define_plugin_settings_hooks(); @@ -84,7 +83,6 @@ public function __construct() { * Include the following files that make up the plugin: * * - Openedx_Commerce_Loader. Orchestrates the hooks of the plugin. - * - Openedx_Commerce_I18n. Defines internationalization functionality. * - Openedx_Commerce_Admin. Defines all hooks for the admin area. * - Openedx_Commerce_Public. Defines all hooks for the public side of the site. * @@ -103,13 +101,6 @@ private function load_dependencies() { include_once plugin_dir_path( __DIR__ ) . 'includes/class-openedx-commerce-loader.php'; - /** - * The class responsible for defining internationalization functionality - * of the plugin. - */ - include_once plugin_dir_path( __DIR__ ) - . 'includes/class-openedx-commerce-i18n.php'; - /** * The class responsible for defining all actions that occur in the admin area. */ @@ -170,26 +161,6 @@ private function load_dependencies() { . 'includes/model/class-openedx-commerce-api-calls.php'; } - /** - * Define the locale for this plugin for internationalization. - * - * Uses the Openedx_Commerce_I18n class in order to set the domain and to register the hook - * with WordPress. - * - * @since 1.0.0 - * @access private - */ - private function set_locale() { - - $plugin_i18n = new Openedx_Commerce_I18n(); - - $this->loader->add_action( - 'plugins_loaded', - $plugin_i18n, - 'load_plugin_textdomain' - ); - } - /** * Register all of the hooks related to the admin area functionality * of the plugin.