Plugin Directory

Changeset 2425295


Ignore:
Timestamp:
11/25/2020 06:00:14 AM (5 years ago)
Author:
gk.loveweb
Message:

Release 1.0.4

Location:
woo-in-stock-notifier/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woo-in-stock-notifier/trunk/inc/classes/class-wsn-email.php

    r2414720 r2425295  
    4545
    4646            $this->id             = 'instock_notifier_users_mailout';
    47             $this->title          = __( 'In-Stock Notifier' );
     47            $this->title          = __( 'In-Stock Notifier', 'in-stock-notifier' );
    4848            $this->description    = __( 'When a product is Out-of-Stock and when it comes In-Stock again, this email is sent to all users registered in the waiting list for that product.', 'in-stock-notifier' );
    4949            $this->heading        = __( '{product_title} now back in stock at {blogname}', 'in-stock-notifier' );
  • woo-in-stock-notifier/trunk/inc/classes/class-wsn-options.php

    r2414720 r2425295  
    201201                    ob_start();
    202202                    if ( $response ) {
    203                         $this->render_notice( __( 'Email sent!' ), __( 'Email successfully sent to all users.' ), 'dashicons-yes' );
     203                        $this->render_notice( __( 'Email sent!', 'in-stock-notifier' ), __( 'Email successfully sent to all users.', 'in-stock-notifier' ), 'dashicons-yes' );
    204204                    } else {
    205                         $this->render_notice( __( 'Failed!' ), __( 'Failed to send email to all users.' ), 'dashicons-no' );
     205                        $this->render_notice( __( 'Failed!', 'in-stock-notifier' ), __( 'Failed to send email to all users.', 'in-stock-notifier' ), 'dashicons-no' );
    206206                    }
    207207                    $msg = ob_get_clean();
     
    394394                        <div class="wsn-tab-table">
    395395                            <div class="wsn-tab-table-header">
    396                                 <div class="wsn-tab-table-list-col"><?php echo __( 'Email' ); ?></div>
    397                                 <div class="wsn-tab-table-list-col"><?php echo __( 'Action' ); ?></div>
     396                                <div class="wsn-tab-table-list-col"><?php echo __( 'Email', 'in-stock-notifier' ); ?></div>
     397                                <div class="wsn-tab-table-list-col"><?php echo __( 'Action', 'in-stock-notifier' ); ?></div>
    398398                            </div>
    399399                            <div class="wsn-tab-table-body">
     
    457457                            <div class="wsn-form">
    458458                                <h5><label
    459                                             for="<?php echo "user-email-field-$pid"; ?>"><?php echo __( 'Add new user' ); ?></label>
     459                                            for="<?php echo "user-email-field-$pid"; ?>"><?php echo __( 'Add new user', 'in-stock-notifier' ); ?></label>
    460460                                </h5>
    461461                                <div class="wsn-form-field">
    462462                                    <input type="text" class="wsn-input-field"
    463463                                           id="<?php echo "user-email-field-$pid"; ?>"
    464                                            placeholder="<?php echo __( 'Enter email address' ); ?>"/>
     464                                           placeholder="<?php echo __( 'Enter email address', 'in-stock-notifier' ); ?>"/>
    465465                                </div>
    466466                                <div class="wsn-form-field">
     
    494494                                            data-type="users"
    495495                                    >
    496                                         <?php echo __( 'Users' ); ?>
     496                                        <?php echo __( 'Users', 'in-stock-notifier' ); ?>
    497497                                    </li>
    498498                                    <li
     
    501501                                            data-type="archived"
    502502                                    >
    503                                         <?php echo __( 'Archived users' ); ?>
     503                                        <?php echo __( 'Archived users', 'in-stock-notifier' ); ?>
    504504                                    </li>
    505505                                </ul>
     
    525525                                    >
    526526                                        <i class="dashicons dashicons-email-alt" aria-hidden="true"></i>
    527                                         <?php echo __( 'Send email to all users' ); ?>
     527                                        <?php echo __( 'Send email to all users', 'in-stock-notifier' ); ?>
    528528                                    </a>
    529529                                </div>
     
    534534                                    >
    535535                                        <i class="dashicons dashicons-star-half" aria-hidden="true"></i>
    536                                         <?php echo __( 'Feedback' ); ?>
     536                                        <?php echo __( 'Feedback', 'in-stock-notifier' ); ?>
    537537                                    </a>
    538538                                </div>
     
    556556                                            <div class="wsn-tab-table-header">
    557557                                                <div
    558                                                         class="wsn-tab-table-list-col"><?php echo __( 'Email' ); ?></div>
     558                                                        class="wsn-tab-table-list-col"><?php echo __( 'Email', 'in-stock-notifier' ); ?></div>
    559559                                                <div
    560                                                         class="wsn-tab-table-list-col"><?php echo __( 'Action' ); ?></div>
     560                                                        class="wsn-tab-table-list-col"><?php echo __( 'Action', 'in-stock-notifier' ); ?></div>
    561561                                            </div>
    562562                                            <div class="wsn-tab-table-body">
     
    595595
    596596                                                $this->render_notice(
    597                                                     __( 'No users' ),
     597                                                    __( 'No users', 'in-stock-notifier' ),
    598598                                                    apply_filters( 'wsn_waitlist_no_users', __( 'Currently there are no users waiting for this product.<br/>Click on "Add new user" to add new user manually.', 'in-stock-notifier' ) ),
    599599                                                    'dashicons-warning',
     
    618618                                        <div class="wsn-tab-table">
    619619                                            <div class="wsn-tab-table-header">
    620                                                 <div class="wsn-tab-table-list-col"><?php echo __( 'Email' ); ?></div>
    621                                                 <div class="wsn-tab-table-list-col"><?php echo __( 'Action' ); ?></div>
     620                                                <div class="wsn-tab-table-list-col"><?php echo __( 'Email', 'in-stock-notifier' ); ?></div>
     621                                                <div class="wsn-tab-table-list-col"><?php echo __( 'Action', 'in-stock-notifier' ); ?></div>
    622622                                            </div>
    623623                                            <div class="wsn-tab-table-body">
     
    659659
    660660                                                $this->render_notice(
    661                                                     __( 'No archived users' ),
     661                                                    __( 'No archived users', 'in-stock-notifier' ),
    662662                                                    apply_filters( 'wsn_waitlist_no_archived_users', __( 'User will be added to archived list once the email is sent. <br/> To enable this feature go to "WooCommerce > In-Stock Notifier".', 'in-stock-notifier' ) ),
    663663                                                    'dashicons-warning',
     
    721721            // Product isn't live yet
    722722            if ( 'auto-draft' === $post->post_status ) {
    723                 $this->render_notice( __( 'Not published' ), __( 'Product is not published yet.' ) );
     723                $this->render_notice( __( 'Not published' ), __( 'Product is not published yet.', 'in-stock-notifier' ) );
    724724
    725725                return;
     
    729729                case 'simple':
    730730                    if ( $wsn_product->is_in_stock() ) {
    731                         $this->render_notice( __( 'In-stock' ), __( 'Product is already available for sale.' ), 'dashicons-smiley' );
     731                        $this->render_notice( __( 'In-stock' ), __( 'Product is already available for sale.', 'in-stock-notifier' ), 'dashicons-smiley' );
    732732                    } else {
    733733                        $this->waitlist_box( $pid, $wsn_product );
     
    759759                                            <?php
    760760                                            if ( $variation_product->is_in_stock() ) {
    761                                                 $this->render_notice( __( 'In-stock' ), __( 'Product is already available for sale.' ), 'dashicons-smiley' );
     761                                                $this->render_notice( __( 'In-stock' ), __( 'Product is already available for sale.', 'in-stock-notifier' ), 'dashicons-smiley' );
    762762                                            } else {
    763763                                                $this->waitlist_box( $pid, $variation_product );
  • woo-in-stock-notifier/trunk/instock-init.php

    r2414720 r2425295  
    22/**
    33 * Plugin Name: Woo In-Stock Notifier
    4  * Version: 1.0.3
    5  * Plugin URI: http://emgk.github.io/
     4 * Version: 1.0.4
     5 * Plugin URI: http://govind.js.org/
    66 * Author: Govind Kumar
    7  * Author URI:http://emgk.github.io
     7 * Author URI: http://govind.js.org/
    88 * Description: Customers can build a waiting list of products those are out of stock. They will be notified automatically via email, when products come back in stock.
    99 * Text Domain:in-stock-notifier
    10  * Domain Path: /language/
     10 * Domain Path: /languages/
    1111 * License: GPL2
    1212 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161/**
     62 * Translate plugins
     63 *
     64 * @since 1.0.4
     65 */
     66add_action( 'plugins_loaded', 'wsn_localization_plugin' );
     67
     68/**
     69 * Load plugin's language file
     70 */
     71function wsn_localization_plugin() {
     72    load_plugin_textdomain( 'in-stock-notifier', false, WSN_PATH . 'languages/' );
     73}
     74
     75/**
    6276 * If WooCommerce isn't activated then show the admin the notice to activate
    6377 * the WooCommerce plugin order to make this plugin runnable.
  • woo-in-stock-notifier/trunk/readme.txt

    r2414720 r2425295  
    4141== Changelog ==
    4242
     43= 1.0.4 =
     44* Make translatable
     45
    4346= 1.0.3 =
    4447* Fix WC_Email issues
Note: See TracChangeset for help on using the changeset viewer.