Changeset 2425295
- Timestamp:
- 11/25/2020 06:00:14 AM (5 years ago)
- Location:
- woo-in-stock-notifier/trunk
- Files:
-
- 4 edited
-
inc/classes/class-wsn-email.php (modified) (1 diff)
-
inc/classes/class-wsn-options.php (modified) (14 diffs)
-
instock-init.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-in-stock-notifier/trunk/inc/classes/class-wsn-email.php
r2414720 r2425295 45 45 46 46 $this->id = 'instock_notifier_users_mailout'; 47 $this->title = __( 'In-Stock Notifier' );47 $this->title = __( 'In-Stock Notifier', 'in-stock-notifier' ); 48 48 $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' ); 49 49 $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 201 201 ob_start(); 202 202 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' ); 204 204 } 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' ); 206 206 } 207 207 $msg = ob_get_clean(); … … 394 394 <div class="wsn-tab-table"> 395 395 <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> 398 398 </div> 399 399 <div class="wsn-tab-table-body"> … … 457 457 <div class="wsn-form"> 458 458 <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> 460 460 </h5> 461 461 <div class="wsn-form-field"> 462 462 <input type="text" class="wsn-input-field" 463 463 id="<?php echo "user-email-field-$pid"; ?>" 464 placeholder="<?php echo __( 'Enter email address' ); ?>"/>464 placeholder="<?php echo __( 'Enter email address', 'in-stock-notifier' ); ?>"/> 465 465 </div> 466 466 <div class="wsn-form-field"> … … 494 494 data-type="users" 495 495 > 496 <?php echo __( 'Users' ); ?>496 <?php echo __( 'Users', 'in-stock-notifier' ); ?> 497 497 </li> 498 498 <li … … 501 501 data-type="archived" 502 502 > 503 <?php echo __( 'Archived users' ); ?>503 <?php echo __( 'Archived users', 'in-stock-notifier' ); ?> 504 504 </li> 505 505 </ul> … … 525 525 > 526 526 <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' ); ?> 528 528 </a> 529 529 </div> … … 534 534 > 535 535 <i class="dashicons dashicons-star-half" aria-hidden="true"></i> 536 <?php echo __( 'Feedback' ); ?>536 <?php echo __( 'Feedback', 'in-stock-notifier' ); ?> 537 537 </a> 538 538 </div> … … 556 556 <div class="wsn-tab-table-header"> 557 557 <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> 559 559 <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> 561 561 </div> 562 562 <div class="wsn-tab-table-body"> … … 595 595 596 596 $this->render_notice( 597 __( 'No users' ),597 __( 'No users', 'in-stock-notifier' ), 598 598 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' ) ), 599 599 'dashicons-warning', … … 618 618 <div class="wsn-tab-table"> 619 619 <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> 622 622 </div> 623 623 <div class="wsn-tab-table-body"> … … 659 659 660 660 $this->render_notice( 661 __( 'No archived users' ),661 __( 'No archived users', 'in-stock-notifier' ), 662 662 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' ) ), 663 663 'dashicons-warning', … … 721 721 // Product isn't live yet 722 722 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' ) ); 724 724 725 725 return; … … 729 729 case 'simple': 730 730 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' ); 732 732 } else { 733 733 $this->waitlist_box( $pid, $wsn_product ); … … 759 759 <?php 760 760 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' ); 762 762 } else { 763 763 $this->waitlist_box( $pid, $variation_product ); -
woo-in-stock-notifier/trunk/instock-init.php
r2414720 r2425295 2 2 /** 3 3 * Plugin Name: Woo In-Stock Notifier 4 * Version: 1.0. 35 * Plugin URI: http:// emgk.github.io/4 * Version: 1.0.4 5 * Plugin URI: http://govind.js.org/ 6 6 * Author: Govind Kumar 7 * Author URI: http://emgk.github.io7 * Author URI: http://govind.js.org/ 8 8 * 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. 9 9 * Text Domain:in-stock-notifier 10 * Domain Path: /language /10 * Domain Path: /languages/ 11 11 * License: GPL2 12 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 /** 62 * Translate plugins 63 * 64 * @since 1.0.4 65 */ 66 add_action( 'plugins_loaded', 'wsn_localization_plugin' ); 67 68 /** 69 * Load plugin's language file 70 */ 71 function wsn_localization_plugin() { 72 load_plugin_textdomain( 'in-stock-notifier', false, WSN_PATH . 'languages/' ); 73 } 74 75 /** 62 76 * If WooCommerce isn't activated then show the admin the notice to activate 63 77 * the WooCommerce plugin order to make this plugin runnable. -
woo-in-stock-notifier/trunk/readme.txt
r2414720 r2425295 41 41 == Changelog == 42 42 43 = 1.0.4 = 44 * Make translatable 45 43 46 = 1.0.3 = 44 47 * Fix WC_Email issues
Note: See TracChangeset
for help on using the changeset viewer.