Skip to content

Commit

Permalink
load plugin textdomain on init
Browse files Browse the repository at this point in the history
closes #1
  • Loading branch information
Manos Psychogyiopoulos committed May 31, 2016
1 parent 07545c8 commit 57882ec
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 33 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** WooCommerce Product Bundles - Min/Max Items ***

2016.05.31 - version 1.0.5
* Fix - Load plugin textdomain on init.

2016.05.02 - version 1.0.4
* Fix - Composite Products v3.6 support.
* Fix - Product Bundles v4.14 support. Fix validation notices not displaying on first page load. Requires Product Bundles v4.14.3+.
Expand Down
60 changes: 30 additions & 30 deletions languages/woocommerce-product-bundles-min-max-items.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the GNU General Public License v3.0.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Product Bundles - Min/Max Items 1.0.4\n"
"Project-Id-Version: WooCommerce Product Bundles - Min/Max Items 1.0.5\n"
"Report-Msgid-Bugs-To: https://support.woothemes.com/hc/en-us\n"
"POT-Creation-Date: 2016-05-02 09:17:46+00:00\n"
"POT-Creation-Date: 2016-05-31 14:52:29+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -13,103 +13,103 @@ msgstr ""
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
"X-Generator: grunt-wp-i18n 0.5.3\n"

#: woocommerce-product-bundles-min-max-items.php:87
#: woocommerce-product-bundles-min-max-items.php:100
msgid ""
"&quot;WooCommerce Product Bundles &ndash; Min/Max Items&quot; requires at "
"least Product Bundles version %s in order to function. Please upgrade "
"WooCommerce Product Bundles."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:96
#: woocommerce-product-bundles-min-max-items.php:109
msgid "Min Items"
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:96
#: woocommerce-product-bundles-min-max-items.php:109
msgid "Minimum allowed quantity of items in the bundle."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:97
#: woocommerce-product-bundles-min-max-items.php:110
msgid "Max Items"
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:97
#: woocommerce-product-bundles-min-max-items.php:110
msgid "Maximum allowed quantity of items in the bundle."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:129
#: woocommerce-product-bundles-min-max-items.php:142
msgid "Please select at least %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:130
#: woocommerce-product-bundles-min-max-items.php:143
msgid "Please select at least 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:131
#: woocommerce-product-bundles-min-max-items.php:144
msgid "Please select at most %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:132
#: woocommerce-product-bundles-min-max-items.php:145
msgid "Please select at most 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:133
#: woocommerce-product-bundles-min-max-items.php:146
msgid "Please select %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:134
#: woocommerce-product-bundles-min-max-items.php:147
msgid "Please select 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:135
#: woocommerce-product-bundles-min-max-items.php:240
#: woocommerce-product-bundles-min-max-items.php:148
#: woocommerce-product-bundles-min-max-items.php:253
msgid "You have selected %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:136
#: woocommerce-product-bundles-min-max-items.php:238
#: woocommerce-product-bundles-min-max-items.php:149
#: woocommerce-product-bundles-min-max-items.php:251
msgid "You have selected 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:137
#: woocommerce-product-bundles-min-max-items.php:236
#: woocommerce-product-bundles-min-max-items.php:150
#: woocommerce-product-bundles-min-max-items.php:249
msgid "You have not selected any items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:138
#: woocommerce-product-bundles-min-max-items.php:151
msgid "%1$s %2$s"
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:191
#: woocommerce-product-bundles-min-max-items.php:214
#: woocommerce-product-bundles-min-max-items.php:204
#: woocommerce-product-bundles-min-max-items.php:227
msgid "you must select 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:193
#: woocommerce-product-bundles-min-max-items.php:206
msgid "you must select at least 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:199
#: woocommerce-product-bundles-min-max-items.php:222
#: woocommerce-product-bundles-min-max-items.php:212
#: woocommerce-product-bundles-min-max-items.php:235
msgid "you must select %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:201
#: woocommerce-product-bundles-min-max-items.php:214
msgid "you must select at least %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:216
#: woocommerce-product-bundles-min-max-items.php:229
msgid "you must select at most 1 item."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:224
#: woocommerce-product-bundles-min-max-items.php:237
msgid "you must select at most %s items."
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:233
#: woocommerce-product-bundles-min-max-items.php:246
msgid "To purchase &quot;%s&quot;"
msgstr ""

#: woocommerce-product-bundles-min-max-items.php:243
#: woocommerce-product-bundles-min-max-items.php:256
msgid "%1$s %2$s %3$s"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: franticpsyx, SomewhereWarm
Tags: woocommerce, product, bundles, products, min, max, quantity, restrict, validation, limit
Requires at least: 4.1
Tested up to: 4.5
Stable tag: 1.0.4
Stable tag: 1.0.5
WC requires at least: 2.3
WC tested up to: 2.6
License: GNU General Public License v3.0
Expand Down
17 changes: 15 additions & 2 deletions woocommerce-product-bundles-min-max-items.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Product Bundles - Min/Max Items
* Plugin URI: http://www.woothemes.com/products/composite-products/
* Description: WooCommerce Product Bundles plugin that allows you to define min/max bundled item count constraints.
* Version: 1.0.4
* Version: 1.0.5
* Author: SomewhereWarm
* Author URI: http://somewherewarm.net/
* Developer: Manos Psychogyiopoulos
Expand All @@ -27,7 +27,7 @@

class WC_PB_Min_Max_Items {

public static $version = '1.0.4';
public static $version = '1.0.5';
public static $req_pb_version = '4.14.3';

public static function plugin_url() {
Expand Down Expand Up @@ -78,6 +78,19 @@ public static function load_plugin() {

// When min/max qty constraints are present, require input.
add_filter( 'woocommerce_bundle_requires_input', __CLASS__ . '::min_max_bundle_requires_input', 10, 2 );

// Cart validation.
add_action( 'init', __CLASS__ . '::localize_plugin' );
}

/**
* Load textdomain.
*
* @return void
*/
public static function localize_plugin() {

load_plugin_textdomain( 'woocommerce-product-bundles-min-max-items', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

/**
Expand Down

0 comments on commit 57882ec

Please sign in to comment.