Plugin Directory

Changeset 3237206


Ignore:
Timestamp:
02/09/2025 07:48:44 AM (14 months ago)
Author:
camoo
Message:

Ensure custom translations are loaded correctly

Location:
camoo-pay-for-ecommerce/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • camoo-pay-for-ecommerce/trunk/camoo-pay-for-ecommerce.php

    r3237199 r3237206  
    66 * Plugin URI: https://github.com/camoo/camoo-woocommerce-gateway
    77 * Description: Receive Mobile Money payments on your store using CamooPay for WooCommerce.
    8  * Version: 1.0
     8 * Version: 1.0.1
    99 * Tested up to: 6.7
    1010 * Author: Camoo Sarl
  • camoo-pay-for-ecommerce/trunk/includes/Plugin.php

    r3237199 r3237206  
    2626    class Plugin
    2727    {
    28         public const WC_CAMOO_PAY_DB_VERSION = '1.0';
     28        public const WC_CAMOO_PAY_DB_VERSION = '1.0.1';
    2929
    3030        public const WC_CAMOO_PAY_GATEWAY_ID = 'wc_camoo_pay';
     31
     32        private const DOMAIN_TEXT = 'camoo-pay-for-ecommerce';
    3133
    3234        protected $id;
     
    151153            add_action('rest_api_init', [$this, 'notification_route']);
    152154            add_action('woocommerce_loaded', [new Media(), 'upload_image_to_media_library']);
     155            $this->loadTextDomain();
    153156        }
    154157
     
    215218        }
    216219
     220        public function loadTextDomain(): void
     221        {
     222            load_plugin_textdomain(
     223                self::DOMAIN_TEXT,
     224                false,
     225                dirname(plugin_basename(__DIR__)) . '/includes/languages'
     226            );
     227        }
     228
    217229        public static function get_webhook_url($endpoint): string
    218230        {
  • camoo-pay-for-ecommerce/trunk/readme.txt

    r3237199 r3237206  
    44Requires Plugins: woocommerce
    55Tested up to: 6.7.1
    6 Stable tag: 1.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    58583. Install the plugin by pressing the "Install" button.
    59594. Activate the plugin by pressing the "Activate" button.
    60 5. Open the settings page for e-Commerce and click the "Payments" tab.
     605. Go to WooCommerce, click on settings and select the "Payments" tab.
    61616. Click on the line for "CamooPay for e-commerce Payment."
    62627. Configure your CamooPay for e-commerce Gateway settings.
     
    8888
    8989== Changelog ==
     90= 1.0.1: February 09, 2025 =
     91* tweak: Ensure custom translations are loaded correctly
    9092
    9193= 1.0: January 09, 2025 =
Note: See TracChangeset for help on using the changeset viewer.