Plugin Directory

Changeset 2276735


Ignore:
Timestamp:
04/05/2020 09:09:58 PM (6 years ago)
Author:
shopybot
Message:

added i18n

Location:
shopybot-woocommerce/trunk
Files:
17 added
4 edited

Legend:

Unmodified
Added
Removed
  • shopybot-woocommerce/trunk/includes/class-wc-shopybot-export.php

    r2273744 r2276735  
    147147        update_option($this->id . '_page', $page);
    148148    }
    149 
    150149
    151150    public function debugOn() {
  • shopybot-woocommerce/trunk/includes/class-wc-shopybot-notices.php

    r1794653 r2276735  
    1010    exit;
    1111}
    12 
    1312
    1413function shopybot_shop_connect_success() {
  • shopybot-woocommerce/trunk/readme.txt

    r2273744 r2276735  
    44Requires at least: 3.9
    55Tested up to: 5.4
    6 Stable tag: 1.0.11
     6Stable tag: 1.0.12
    77License: GNU GENERAL PUBLIC LICENSE Version 3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2424- Start importing your products every 30 minutes, so you don't need to worry about updating ShopyBot after you made changes on website.
    2525- Make all your exported products searchable in the Facebook Messenger so your clients can search or browse categories.
    26 - When customers click to buy product in chatbot it will be added to cart and customer will be redirected to checkout page automatically.
     26- When customers click to buy product in chatbot it will be added to cart and customer will be *redirected to checkout page automatically*.
    2727- Keeps track on statistics of product clicks and views.
    2828
     
    100100== Changelog ==
    101101
     102= 1.0.12 =
     103- Added plugin internationalization
     104- Added translations for languages: Spanish, Ukrainian, German, French, Italian, Japanese, Chinese, Potuguese
     105
    102106= 1.0.11 =
    103107- Fixed export XML file url (shopybot-woocommerce.xml) for Wordpress installations in subfolders
  • shopybot-woocommerce/trunk/shopybot-woocommerce.php

    r2273744 r2276735  
    22
    33/**
    4  * Shopybot - Facebook ChatBot for your WooCommerce shop
     4 * Shopybot - Facebook ChatBot for WooCommerce
    55 *
    66 * This file is read by WordPress to generate the plugin information in the plugin
     
    1010 *
    1111 * @link                 https://www.shopybot.com
    12  * @since                1.0.11
     12 * @since                1.0.12
    1313 * @package              Shopybot_Woocommerce
    1414 *
     
    1717 * Plugin URI:           https://www.shopybot.com/connect-bot/woocommerce
    1818 * Description:          Create a ChatBot and sell your products in Facebook Messenger
    19  * Version:              1.0.11
     19 * Version:              1.0.12
    2020 * Author:               ShopyBot
     21 * Text Domain:          shopybot-woocommerce
     22 * Domain Path:          /languages
    2123 * Author URI:           https://www.shopybot.com
    2224 * License:              GPL-2.0+
    2325 * License URI:          http://www.gnu.org/licenses/gpl-2.0.txt
    24  * Text Domain:          shopybot-woocommerce
    25  * Domain Path:          /languages
    2626 * Woo:                  2127297:0ea4fe4c2d7ca6338f8a322fb3e4e187
    27  * Text Domain:          shopybot-woocommerce
    2827 * Requires at least:    4.9
    2928 * Tested up to:         5.4
     
    5756                include_once 'includes/class-wc-shopybot-export.php';
    5857
     58                add_action( 'plugins_loaded', 'shopybot_woocommerce_load_plugin_textdomain' );
     59
     60                // Load translations
     61                add_action( 'plugins_loaded', 'shopybot_load_textdomain' );
     62
    5963                // Register the integration.
    6064                add_filter('woocommerce_integrations', array($this, 'add_integration'));
     
    7175        }
    7276
     77        function shopybot_woocommerce_load_plugin_textdomain() {
     78          load_plugin_textdomain( 'shopybot-woocommerce', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     79        }
     80
    7381        function add_action_links($links) {
    7482            $mylinks = array(
    75                 '<a href="' . admin_url('/admin.php?page=wc-settings&tab=integration&section=shopybot-woocommerce') . '">Settings</a>',
     83                '<a href="' . admin_url('/admin.php?page=wc-settings&tab=integration&section=shopybot-woocommerce') . '">'.
     84                __( 'Settings', 'shopybot-woocommerce' )
     85                .'</a>',
    7686            );
    7787            return array_merge($links, $mylinks);
Note: See TracChangeset for help on using the changeset viewer.