spree_frontend 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/spree/checkout_controller.rb +17 -1
  3. data/app/controllers/spree/orders_controller.rb +4 -4
  4. data/app/controllers/spree/store_controller.rb +2 -0
  5. data/app/views/spree/checkout/edit.html.erb +6 -5
  6. data/app/views/spree/shared/_google_analytics.html.erb +2 -2
  7. data/lib/spree/frontend/engine.rb +1 -0
  8. data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +23 -0
  9. data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +25 -0
  10. data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +25 -0
  11. data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +25 -0
  12. data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +25 -0
  13. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +12 -18
  14. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +11 -10
  15. data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +25 -0
  16. data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +23 -0
  17. data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +25 -0
  18. data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +25 -0
  19. data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +26 -0
  20. metadata +16 -8
  21. data/vendor/assets/javascripts/jquery.validate/localization/messages_cn.js +0 -23
  22. data/vendor/assets/javascripts/jquery.validate/localization/messages_ua.js +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81ff20e9fa570b13545e2d4254c553002ee2d69b
4
- data.tar.gz: e649a7a731494c613518e9012ef84827f690e3e9
3
+ metadata.gz: 693da529be65370abfd8e355599a9137d38ebc33
4
+ data.tar.gz: 3d6cf4977d26118a41cb6d2b31390bed65d95f09
5
5
  SHA512:
6
- metadata.gz: 9c98b8dcc8b6757aa113c864d1d70a29cf4b10faa3140573a785a81e09cf3a0f5ccdd2cdfc487b24f9190039104fb37460754a1652a368996c8b0a00e5cb04eb
7
- data.tar.gz: ed0605aa585c3e8cca4c0f0687ea3c676f2dda5855919cd886e734dbc0868c1ee17145b2582faf857a113665b4248ac83e3d9bf1d217aa514b9d3e6fb221d74f
6
+ metadata.gz: bf15e6c6d64c3e24b889a4eace053db2bbba9a5c216255b923403dabdc6b8b3852f40f44d3ce8e0a433dc9f5ddac18d2637938b26bf8ebb003d43bfae8d46377
7
+ data.tar.gz: 24f28860ed1b19252864e8e6471e45b7cb14d4853e44640dbc2ca31f9de549952093c529f022034ce1990a953bac687a5537f9a626ce571ce5d7c0fc6a402139
@@ -6,7 +6,9 @@ module Spree
6
6
  class CheckoutController < Spree::StoreController
7
7
  ssl_required
8
8
 
9
- before_filter :load_order_with_lock
9
+ before_action :load_order_with_lock
10
+ before_filter :ensure_valid_state_lock_version, only: [:update]
11
+ before_filter :set_state_if_present
10
12
 
11
13
  before_filter :ensure_order_not_completed
12
14
  before_filter :ensure_checkout_allowed
@@ -72,7 +74,21 @@ module Spree
72
74
  def load_order_with_lock
73
75
  @order = current_order(lock: true)
74
76
  redirect_to spree.cart_path and return unless @order
77
+ end
78
+
79
+ def ensure_valid_state_lock_version
80
+ if params[:order] && params[:order][:state_lock_version]
81
+ @order.with_lock do
82
+ unless @order.state_lock_version == params[:order].delete(:state_lock_version).to_i
83
+ flash[:error] = Spree.t(:order_already_updated)
84
+ redirect_to checkout_state_path(@order.state) and return
85
+ end
86
+ @order.increment!(:state_lock_version)
87
+ end
88
+ end
89
+ end
75
90
 
91
+ def set_state_if_present
76
92
  if params[:state]
77
93
  redirect_to checkout_state_path(@order.state) if @order.can_go_to_state?(params[:state]) && !skip_state_validation?
78
94
  @order.state = params[:state]
@@ -8,9 +8,9 @@ module Spree
8
8
 
9
9
  respond_to :html
10
10
 
11
- before_filter :assign_order_with_lock, only: :update
12
- before_filter :apply_coupon_code, only: :update
13
- skip_before_filter :verify_authenticity_token
11
+ before_action :assign_order_with_lock, only: :update
12
+ before_action :apply_coupon_code, only: :update
13
+ skip_before_action :verify_authenticity_token, only: [:populate]
14
14
 
15
15
  def show
16
16
  @order = Order.find_by_number!(params[:id])
@@ -35,7 +35,7 @@ module Spree
35
35
 
36
36
  # Shows the current incomplete order from the session
37
37
  def edit
38
- @order = current_order || Order.new
38
+ @order = current_order || Order.incomplete.find_or_initialize_by(guest_token: cookies.signed[:guest_token])
39
39
  associate_user
40
40
  end
41
41
 
@@ -2,6 +2,8 @@ module Spree
2
2
  class StoreController < Spree::BaseController
3
3
  include Spree::Core::ControllerHelpers::Order
4
4
 
5
+ skip_before_action :set_current_order, only: :cart_link
6
+
5
7
  def unauthorized
6
8
  render 'spree/shared/unauthorized', :layout => Spree::Config[:layout], :status => 401
7
9
  end
@@ -1,11 +1,11 @@
1
- <div id="checkout" data-hook>
1
+ <div id="checkout" data-hook>
2
2
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
3
-
3
+
4
4
  <div class="row" data-hook="checkout_header">
5
5
  <h1 class="columns three alpha" data-hook="checkout_title"><%= Spree.t(:checkout) %></h1>
6
6
  <div class="columns thirteen omega" data-hook="checkout_progress"><%= checkout_progress %></div>
7
7
  </div>
8
-
8
+
9
9
  <div class="row" data-hook="checkout_content">
10
10
  <div class="columns <%= if @order.state != 'confirm' then 'alpha twelve' else 'alpha omega sixteen' end %>" data-hook="checkout_form_wrapper">
11
11
  <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
@@ -15,9 +15,10 @@
15
15
  <%= form.text_field :email %>
16
16
  </p>
17
17
  <% end %>
18
+ <%= form.hidden_field :state_lock_version %>
18
19
  <%= render @order.state, :form => form %>
19
20
  <% end %>
20
- </div>
21
+ </div>
21
22
  <% if @order.state != 'confirm' %>
22
23
  <div id="checkout-summary" data-hook="checkout_summary_box" class="columns omega four">
23
24
  <%= render :partial => 'summary', :locals => { :order => @order } %>
@@ -32,5 +33,5 @@ Spree.current_order_token = "<%= @order.guest_token %>"
32
33
  </script>
33
34
 
34
35
  <% if I18n.locale != :en %>
35
- <script src="<%= assets_prefix %>/jquery.validate/localization/messages_<%= I18n.locale.to_s.downcase.gsub("-", "") %>.js"></script>
36
+ <%= javascript_include_tag 'jquery.validate/localization/messages_' + I18n.locale.to_s.downcase.gsub('-', '') %>
36
37
  <% end %>
@@ -5,7 +5,7 @@
5
5
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
6
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
7
 
8
- ga('create', '<%= tracker.analytics_id %>','<%= current_store.url.sub(/(^www.)?/,'') %>');
8
+ ga('create', '<%= tracker.analytics_id %>', 'auto');
9
9
  ga('require', 'displayfeatures');
10
10
  ga('send', 'pageview');
11
11
 
@@ -24,7 +24,7 @@
24
24
  ga('ecommerce:addItem', {
25
25
  'id': '<%= j @order.number %>', // Transaction ID. Required.
26
26
  'name': '<%= j line_item.variant.product.name %>', // Product name. Required.
27
- 'sku': '<%= j line_item.variant.sku %>', // SKU/code.
27
+ 'sku': '<%= j (line_item.variant.sku || line_item.variant_id) %>', // SKU/code.
28
28
  'category': '', // Category or variation.
29
29
  'price': '<%= line_item.price %>', // Unit price.
30
30
  'quantity': '<%= line_item.quantity %>' // Quantity.
@@ -7,6 +7,7 @@ module Spree
7
7
  initializer "spree.assets.precompile", :group => :all do |app|
8
8
  app.config.assets.precompile += %w[
9
9
  spree/frontend/all*
10
+ jquery.validate/localization/messages_*
10
11
  ]
11
12
  end
12
13
 
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: ET (Estonian; eesti, eesti keel)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "See väli peab olema täidetud.",
8
+ maxlength: $.validator.format("Palun sisestage vähem kui {0} tähemärki."),
9
+ minlength: $.validator.format("Palun sisestage vähemalt {0} tähemärki."),
10
+ rangelength: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1} tähemärki."),
11
+ email: "Palun sisestage korrektne e-maili aadress.",
12
+ url: "Palun sisestage korrektne URL.",
13
+ date: "Palun sisestage korrektne kuupäev.",
14
+ dateISO: "Palun sisestage korrektne kuupäev (YYYY-MM-DD).",
15
+ number: "Palun sisestage korrektne number.",
16
+ digits: "Palun sisestage ainult numbreid.",
17
+ equalTo: "Palun sisestage sama väärtus uuesti.",
18
+ range: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1}."),
19
+ max: $.validator.format("Palun sisestage väärtus, mis on väiksem või võrdne arvuga {0}."),
20
+ min: $.validator.format("Palun sisestage väärtus, mis on suurem või võrdne arvuga {0}."),
21
+ creditcard: "Palun sisestage korrektne krediitkaardi number."
22
+ });
23
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: EU (Basque; euskara, euskera)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "Eremu hau beharrezkoa da.",
8
+ remote: "Mesedez, bete eremu hau.",
9
+ email: "Mesedez, idatzi baliozko posta helbide bat.",
10
+ url: "Mesedez, idatzi baliozko URL bat.",
11
+ date: "Mesedez, idatzi baliozko data bat.",
12
+ dateISO: "Mesedez, idatzi baliozko (ISO) data bat.",
13
+ number: "Mesedez, idatzi baliozko zenbaki oso bat.",
14
+ digits: "Mesedez, idatzi digituak soilik.",
15
+ creditcard: "Mesedez, idatzi baliozko txartel zenbaki bat.",
16
+ equalTo: "Mesedez, idatzi berdina berriro ere.",
17
+ accept: "Mesedez, idatzi onartutako luzapena duen balio bat.",
18
+ maxlength: $.validator.format("Mesedez, ez idatzi {0} karaktere baino gehiago."),
19
+ minlength: $.validator.format("Mesedez, ez idatzi {0} karaktere baino gutxiago."),
20
+ rangelength: $.validator.format("Mesedez, idatzi {0} eta {1} karaktere arteko balio bat."),
21
+ range: $.validator.format("Mesedez, idatzi {0} eta {1} arteko balio bat."),
22
+ max: $.validator.format("Mesedez, idatzi {0} edo txikiagoa den balio bat."),
23
+ min: $.validator.format("Mesedez, idatzi {0} edo handiagoa den balio bat.")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: HR (Croatia; hrvatski jezik)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "Ovo polje je obavezno.",
8
+ remote: "Ovo polje treba popraviti.",
9
+ email: "Unesite ispravnu e-mail adresu.",
10
+ url: "Unesite ispravan URL.",
11
+ date: "Unesite ispravan datum.",
12
+ dateISO: "Unesite ispravan datum (ISO).",
13
+ number: "Unesite ispravan broj.",
14
+ digits: "Unesite samo brojeve.",
15
+ creditcard: "Unesite ispravan broj kreditne kartice.",
16
+ equalTo: "Unesite ponovo istu vrijednost.",
17
+ accept: "Unesite vrijednost sa ispravnom ekstenzijom.",
18
+ maxlength: $.validator.format("Maksimalni broj znakova je {0} ."),
19
+ minlength: $.validator.format("Minimalni broj znakova je {0} ."),
20
+ rangelength: $.validator.format("Unesite vrijednost između {0} i {1} znakova."),
21
+ range: $.validator.format("Unesite vrijednost između {0} i {1}."),
22
+ max: $.validator.format("Unesite vrijednost manju ili jednaku {0}."),
23
+ min: $.validator.format("Unesite vrijednost veću ili jednaku {0}.")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: KA (Georgian; ქართული)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "ამ ველის შევსება აუცილებელია.",
8
+ remote: "გთხოვთ მიუთითოთ სწორი მნიშვნელობა.",
9
+ email: "გთხოვთ მიუთითოთ ელ-ფოსტის კორექტული მისამართი.",
10
+ url: "გთხოვთ მიუთითოთ კორექტული URL.",
11
+ date: "გთხოვთ მიუთითოთ კორექტული თარიღი.",
12
+ dateISO: "გთხოვთ მიუთითოთ კორექტული თარიღი ISO ფორმატში.",
13
+ number: "გთხოვთ მიუთითოთ ციფრი.",
14
+ digits: "გთხოვთ მიუთითოთ მხოლოდ ციფრები.",
15
+ creditcard: "გთხოვთ მიუთითოთ საკრედიტო ბარათის კორექტული ნომერი.",
16
+ equalTo: "გთხოვთ მიუთითოთ ასეთივე მნიშვნელობა კიდევ ერთხელ.",
17
+ accept: "გთხოვთ აირჩიოთ ფაილი კორექტული გაფართოებით.",
18
+ maxlength: $.validator.format("დასაშვებია არაუმეტეს {0} სიმბოლო."),
19
+ minlength: $.validator.format("აუცილებელია შეიყვანოთ მინიმუმ {0} სიმბოლო."),
20
+ rangelength: $.validator.format("ტექსტში სიმბოლოების რაოდენობა უნდა იყოს {0}-დან {1}-მდე."),
21
+ range: $.validator.format("გთხოვთ შეიყვანოთ ციფრი {0}-დან {1}-მდე."),
22
+ max: $.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც ნაკლებია ან უდრის {0}-ს."),
23
+ min: $.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც მეტია ან უდრის {0}-ს.")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: MS (Malay; Melayu)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "Medan ini diperlukan.",
8
+ remote: "Sila betulkan medan ini.",
9
+ email: "Sila masukkan alamat emel yang betul.",
10
+ url: "Sila masukkan URL yang betul.",
11
+ date: "Sila masukkan tarikh yang betul.",
12
+ dateISO: "Sila masukkan tarikh(ISO) yang betul.",
13
+ number: "Sila masukkan nombor yang betul.",
14
+ digits: "Sila masukkan nilai digit sahaja.",
15
+ creditcard: "Sila masukkan nombor kredit kad yang betul.",
16
+ equalTo: "Sila masukkan nilai yang sama semula.",
17
+ accept: "Sila masukkan nilai yang telah diterima.",
18
+ maxlength: $.validator.format("Sila masukkan nilai tidak lebih dari {0} aksara."),
19
+ minlength: $.validator.format("Sila masukkan nilai sekurang-kurangnya {0} aksara."),
20
+ rangelength: $.validator.format("Sila masukkan panjang nilai antara {0} dan {1} aksara."),
21
+ range: $.validator.format("Sila masukkan nilai antara {0} dan {1} aksara."),
22
+ max: $.validator.format("Sila masukkan nilai yang kurang atau sama dengan {0}."),
23
+ min: $.validator.format("Sila masukkan nilai yang lebih atau sama dengan {0}.")
24
+ });
25
+ }(jQuery));
@@ -1,30 +1,24 @@
1
- /**
1
+ /*
2
2
  * Translated default messages for the jQuery validation plugin.
3
- * Language: PT_BR
4
- * Translator: Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
3
+ * Locale: PT (Portuguese; português)
4
+ * Region: BR (Brazil)
5
5
  */
6
- jQuery.extend(jQuery.validator.messages, {
6
+ (function ($) {$.extend($.validator.messages, {
7
7
  required: "Este campo &eacute; requerido.",
8
8
  remote: "Por favor, corrija este campo.",
9
9
  email: "Por favor, forne&ccedil;a um endere&ccedil;o eletr&ocirc;nico v&aacute;lido.",
10
10
  url: "Por favor, forne&ccedil;a uma URL v&aacute;lida.",
11
11
  date: "Por favor, forne&ccedil;a uma data v&aacute;lida.",
12
12
  dateISO: "Por favor, forne&ccedil;a uma data v&aacute;lida (ISO).",
13
- dateDE: "Bitte geben Sie ein gültiges Datum ein.",
14
- number: "Por favor, forne&ccedil;a um n&uacute;mero v&aacute;lida.",
15
- numberDE: "Bitte geben Sie eine Nummer ein.",
13
+ number: "Por favor, forne&ccedil;a um n&uacute;mero v&aacute;lido.",
16
14
  digits: "Por favor, forne&ccedil;a somente d&iacute;gitos.",
17
15
  creditcard: "Por favor, forne&ccedil;a um cart&atilde;o de cr&eacute;dito v&aacute;lido.",
18
16
  equalTo: "Por favor, forne&ccedil;a o mesmo valor novamente.",
19
17
  accept: "Por favor, forne&ccedil;a um valor com uma extens&atilde;o v&aacute;lida.",
20
- maxlength: jQuery.validator.format("Por favor, forne&ccedil;a n&atilde;o mais que {0} caracteres."),
21
- minlength: jQuery.validator.format("Por favor, forne&ccedil;a ao menos {0} caracteres."),
22
- rangelength: jQuery.validator.format("Por favor, forne&ccedil;a um valor entre {0} e {1} caracteres de comprimento."),
23
- range: jQuery.validator.format("Por favor, forne&ccedil;a um valor entre {0} e {1}."),
24
- max: jQuery.validator.format("Por favor, forne&ccedil;a um valor menor ou igual a {0}."),
25
- min: jQuery.validator.format("Por favor, forne&ccedil;a um valor maior ou igual a {0}.")
26
- });
27
-
28
- jQuery.validator.addMethod("datePTBR", function(value) {
29
- return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value);
30
- }, "Por favor, forne&ccedil;a uma data v&aacute;lida.");
18
+ maxlength: $.validator.format("Por favor, forne&ccedil;a n&atilde;o mais que {0} caracteres."),
19
+ minlength: $.validator.format("Por favor, forne&ccedil;a ao menos {0} caracteres."),
20
+ rangelength: $.validator.format("Por favor, forne&ccedil;a um valor entre {0} e {1} caracteres de comprimento."),
21
+ range: $.validator.format("Por favor, forne&ccedil;a um valor entre {0} e {1}."),
22
+ max: $.validator.format("Por favor, forne&ccedil;a um valor menor ou igual a {0}."),
23
+ min: $.validator.format("Por favor, forne&ccedil;a um valor maior ou igual a {0}.")
24
+ });}(jQuery));
@@ -1,8 +1,9 @@
1
- /**
1
+ /*
2
2
  * Translated default messages for the jQuery validation plugin.
3
- * Locale: PT_PT
3
+ * Locale: PT (Portuguese; português)
4
+ * Region: PT (Portugal)
4
5
  */
5
- jQuery.extend(jQuery.validator.messages, {
6
+ (function ($) {$.extend($.validator.messages, {
6
7
  required: "Campo de preenchimento obrigat&oacute;rio.",
7
8
  remote: "Por favor, corrija este campo.",
8
9
  email: "Por favor, introduza um endere&ccedil;o eletr&oacute;nico v&aacute;lido.",
@@ -14,10 +15,10 @@ jQuery.extend(jQuery.validator.messages, {
14
15
  creditcard: "Por favor, introduza um n&uacute;mero de cart&atilde;o de cr&eacute;dito v&aacute;lido.",
15
16
  equalTo: "Por favor, introduza de novo o mesmo valor.",
16
17
  accept: "Por favor, introduza um ficheiro com uma extens&atilde;o v&aacute;lida.",
17
- maxlength: jQuery.validator.format("Por favor, n&atilde;o introduza mais do que {0} caracteres."),
18
- minlength: jQuery.validator.format("Por favor, introduza pelo menos {0} caracteres."),
19
- rangelength: jQuery.validator.format("Por favor, introduza entre {0} e {1} caracteres."),
20
- range: jQuery.validator.format("Por favor, introduza um valor entre {0} e {1}."),
21
- max: jQuery.validator.format("Por favor, introduza um valor menor ou igual a {0}."),
22
- min: jQuery.validator.format("Por favor, introduza um valor maior ou igual a {0}.")
23
- });
18
+ maxlength: $.validator.format("Por favor, n&atilde;o introduza mais do que {0} caracteres."),
19
+ minlength: $.validator.format("Por favor, introduza pelo menos {0} caracteres."),
20
+ rangelength: $.validator.format("Por favor, introduza entre {0} e {1} caracteres."),
21
+ range: $.validator.format("Por favor, introduza um valor entre {0} e {1}."),
22
+ max: $.validator.format("Por favor, introduza um valor menor ou igual a {0}."),
23
+ min: $.validator.format("Por favor, introduza um valor maior ou igual a {0}.")
24
+ });}(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Language: SL (Slovenian; slovenski jezik)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "To polje je obvezno.",
8
+ remote: "Prosimo popravite to polje.",
9
+ email: "Prosimo vnesite veljaven email naslov.",
10
+ url: "Prosimo vnesite veljaven URL naslov.",
11
+ date: "Prosimo vnesite veljaven datum.",
12
+ dateISO: "Prosimo vnesite veljaven ISO datum.",
13
+ number: "Prosimo vnesite veljavno število.",
14
+ digits: "Prosimo vnesite samo števila.",
15
+ creditcard: "Prosimo vnesite veljavno številko kreditne kartice.",
16
+ equalTo: "Prosimo ponovno vnesite vrednost.",
17
+ accept: "Prosimo vnesite vrednost z veljavno končnico.",
18
+ maxlength: $.validator.format("Prosimo vnesite največ {0} znakov."),
19
+ minlength: $.validator.format("Prosimo vnesite najmanj {0} znakov."),
20
+ rangelength: $.validator.format("Prosimo vnesite najmanj {0} in največ {1} znakov."),
21
+ range: $.validator.format("Prosimo vnesite vrednost med {0} in {1}."),
22
+ max: $.validator.format("Prosimo vnesite vrednost manjše ali enako {0}."),
23
+ min: $.validator.format("Prosimo vnesite vrednost večje ali enako {0}.")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: SV (Swedish; Svenska)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "Detta f&auml;lt &auml;r obligatoriskt.",
8
+ maxlength: $.validator.format("Du f&aring;r ange h&ouml;gst {0} tecken."),
9
+ minlength: $.validator.format("Du m&aring;ste ange minst {0} tecken."),
10
+ rangelength: $.validator.format("Ange minst {0} och max {1} tecken."),
11
+ email: "Ange en korrekt e-postadress.",
12
+ url: "Ange en korrekt URL.",
13
+ date: "Ange ett korrekt datum.",
14
+ dateISO: "Ange ett korrekt datum (&Aring;&Aring;&Aring;&Aring;-MM-DD).",
15
+ number: "Ange ett korrekt nummer.",
16
+ digits: "Ange endast siffror.",
17
+ equalTo: "Ange samma v&auml;rde igen.",
18
+ range: $.validator.format("Ange ett v&auml;rde mellan {0} och {1}."),
19
+ max: $.validator.format("Ange ett v&auml;rde som &auml;r mindre eller lika med {0}."),
20
+ min: $.validator.format("Ange ett v&auml;rde som &auml;r st&ouml;rre eller lika med {0}."),
21
+ creditcard: "Ange ett korrekt kreditkortsnummer."
22
+ });
23
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: UK (Ukrainian; українська мова)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "Це поле необхідно заповнити.",
8
+ remote: "Будь ласка, введіть правильне значення.",
9
+ email: "Будь ласка, введіть коректну адресу електронної пошти.",
10
+ url: "Будь ласка, введіть коректний URL.",
11
+ date: "Будь ласка, введіть коректну дату.",
12
+ dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
13
+ number: "Будь ласка, введіть число.",
14
+ digits: "Вводите потрібно лише цифри.",
15
+ creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
16
+ equalTo: "Будь ласка, введіть таке ж значення ще раз.",
17
+ accept: "Будь ласка, виберіть файл з правильним розширенням.",
18
+ maxlength: $.validator.format("Будь ласка, введіть не більше {0} символів."),
19
+ minlength: $.validator.format("Будь ласка, введіть не менше {0} символів."),
20
+ rangelength: $.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),
21
+ range: $.validator.format("Будь ласка, введіть число від {0} до {1}."),
22
+ max: $.validator.format("Будь ласка, введіть число, менше або рівно {0}."),
23
+ min: $.validator.format("Будь ласка, введіть число, більше або рівно {0}.")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
4
+ */
5
+ (function ($) {
6
+ $.extend($.validator.messages, {
7
+ required: "必选字段",
8
+ remote: "请修正该字段",
9
+ email: "请输入正确格式的电子邮件",
10
+ url: "请输入合法的网址",
11
+ date: "请输入合法的日期",
12
+ dateISO: "请输入合法的日期 (ISO).",
13
+ number: "请输入合法的数字",
14
+ digits: "只能输入整数",
15
+ creditcard: "请输入合法的信用卡号",
16
+ equalTo: "请再次输入相同的值",
17
+ accept: "请输入拥有合法后缀名的字符串",
18
+ maxlength: $.validator.format("请输入一个长度最多是 {0} 的字符串"),
19
+ minlength: $.validator.format("请输入一个长度最少是 {0} 的字符串"),
20
+ rangelength: $.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"),
21
+ range: $.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
22
+ max: $.validator.format("请输入一个最大为 {0} 的值"),
23
+ min: $.validator.format("请输入一个最小为 {0} 的值")
24
+ });
25
+ }(jQuery));
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語)
4
+ * Region: TW (Taiwan)
5
+ */
6
+ (function ($) {
7
+ $.extend($.validator.messages, {
8
+ required: "必填",
9
+ remote: "請修正此欄位",
10
+ email: "請輸入正確的電子信箱",
11
+ url: "請輸入合法的URL",
12
+ date: "請輸入合法的日期",
13
+ dateISO: "請輸入合法的日期 (ISO).",
14
+ number: "請輸入數字",
15
+ digits: "請輸入整數",
16
+ creditcard: "請輸入合法的信用卡號碼",
17
+ equalTo: "請重複輸入一次",
18
+ accept: "請輸入有效的後缀字串",
19
+ maxlength: $.validator.format("請輸入長度不大於{0} 的字串"),
20
+ minlength: $.validator.format("請輸入長度不小於 {0} 的字串"),
21
+ rangelength: $.validator.format("請輸入長度介於 {0} 和 {1} 之間的字串"),
22
+ range: $.validator.format("請輸入介於 {0} 和 {1} 之間的數值"),
23
+ max: $.validator.format("請輸入不大於 {0} 的數值"),
24
+ min: $.validator.format("請輸入不小於 {0} 的數值")
25
+ });
26
+ }(jQuery));
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.4
19
+ version: 2.3.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.4
26
+ version: 2.3.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.4
33
+ version: 2.3.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.3.4
40
+ version: 2.3.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: canonical-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -480,24 +480,28 @@ files:
480
480
  - vendor/assets/javascripts/jquery.validate/localization/messages_ar.js
481
481
  - vendor/assets/javascripts/jquery.validate/localization/messages_bg.js
482
482
  - vendor/assets/javascripts/jquery.validate/localization/messages_ca.js
483
- - vendor/assets/javascripts/jquery.validate/localization/messages_cn.js
484
483
  - vendor/assets/javascripts/jquery.validate/localization/messages_cs.js
485
484
  - vendor/assets/javascripts/jquery.validate/localization/messages_da.js
486
485
  - vendor/assets/javascripts/jquery.validate/localization/messages_de.js
487
486
  - vendor/assets/javascripts/jquery.validate/localization/messages_el.js
488
487
  - vendor/assets/javascripts/jquery.validate/localization/messages_es.js
488
+ - vendor/assets/javascripts/jquery.validate/localization/messages_et.js
489
+ - vendor/assets/javascripts/jquery.validate/localization/messages_eu.js
489
490
  - vendor/assets/javascripts/jquery.validate/localization/messages_fa.js
490
491
  - vendor/assets/javascripts/jquery.validate/localization/messages_fi.js
491
492
  - vendor/assets/javascripts/jquery.validate/localization/messages_fr.js
492
493
  - vendor/assets/javascripts/jquery.validate/localization/messages_ge.js
493
494
  - vendor/assets/javascripts/jquery.validate/localization/messages_he.js
495
+ - vendor/assets/javascripts/jquery.validate/localization/messages_hr.js
494
496
  - vendor/assets/javascripts/jquery.validate/localization/messages_hu.js
495
497
  - vendor/assets/javascripts/jquery.validate/localization/messages_it.js
496
498
  - vendor/assets/javascripts/jquery.validate/localization/messages_ja.js
499
+ - vendor/assets/javascripts/jquery.validate/localization/messages_ka.js
497
500
  - vendor/assets/javascripts/jquery.validate/localization/messages_kk.js
498
501
  - vendor/assets/javascripts/jquery.validate/localization/messages_ko.js
499
502
  - vendor/assets/javascripts/jquery.validate/localization/messages_lt.js
500
503
  - vendor/assets/javascripts/jquery.validate/localization/messages_lv.js
504
+ - vendor/assets/javascripts/jquery.validate/localization/messages_ms.js
501
505
  - vendor/assets/javascripts/jquery.validate/localization/messages_nl.js
502
506
  - vendor/assets/javascripts/jquery.validate/localization/messages_no.js
503
507
  - vendor/assets/javascripts/jquery.validate/localization/messages_pl.js
@@ -508,12 +512,16 @@ files:
508
512
  - vendor/assets/javascripts/jquery.validate/localization/messages_se.js
509
513
  - vendor/assets/javascripts/jquery.validate/localization/messages_si.js
510
514
  - vendor/assets/javascripts/jquery.validate/localization/messages_sk.js
515
+ - vendor/assets/javascripts/jquery.validate/localization/messages_sl.js
511
516
  - vendor/assets/javascripts/jquery.validate/localization/messages_sr.js
517
+ - vendor/assets/javascripts/jquery.validate/localization/messages_sv.js
512
518
  - vendor/assets/javascripts/jquery.validate/localization/messages_th.js
513
519
  - vendor/assets/javascripts/jquery.validate/localization/messages_tr.js
514
520
  - vendor/assets/javascripts/jquery.validate/localization/messages_tw.js
515
- - vendor/assets/javascripts/jquery.validate/localization/messages_ua.js
521
+ - vendor/assets/javascripts/jquery.validate/localization/messages_uk.js
516
522
  - vendor/assets/javascripts/jquery.validate/localization/messages_vi.js
523
+ - vendor/assets/javascripts/jquery.validate/localization/messages_zh.js
524
+ - vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js
517
525
  - vendor/assets/javascripts/jquery.validate/localization/methods_de.js
518
526
  - vendor/assets/javascripts/jquery.validate/localization/methods_nl.js
519
527
  - vendor/assets/javascripts/jquery.validate/localization/methods_pt.js
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: CN
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "必选字段",
7
- remote: "请修正该字段",
8
- email: "请输入正确格式的电子邮件",
9
- url: "请输入合法的网址",
10
- date: "请输入合法的日期",
11
- dateISO: "请输入合法的日期 (ISO).",
12
- number: "请输入合法的数字",
13
- digits: "只能输入整数",
14
- creditcard: "请输入合法的信用卡号",
15
- equalTo: "请再次输入相同的值",
16
- accept: "请输入拥有合法后缀名的字符串",
17
- maxlength: jQuery.validator.format("请输入一个长度最多是 {0} 的字符串"),
18
- minlength: jQuery.validator.format("请输入一个长度最少是 {0} 的字符串"),
19
- rangelength: jQuery.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"),
20
- range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
21
- max: jQuery.validator.format("请输入一个最大为 {0} 的值"),
22
- min: jQuery.validator.format("请输入一个最小为 {0} 的值")
23
- });
@@ -1,24 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Language: UA (Ukrainian)
4
- * Author: maserg <maserg at gmail dot com>
5
- */
6
- jQuery.extend(jQuery.validator.messages, {
7
- required: "Це поле необхідно заповнити.",
8
- remote: "Будь ласка, введіть правильне значення.",
9
- email: "Будь ласка, введіть коректну адресу електронної пошти.",
10
- url: "Будь ласка, введіть коректний URL.",
11
- date: "Будь ласка, введіть коректну дату.",
12
- dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
13
- number: "Будь ласка, введіть число.",
14
- digits: "Вводите потрібно лише цифри.",
15
- creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
16
- equalTo: "Будь ласка, введіть таке ж значення ще раз.",
17
- accept: "Будь ласка, виберіть файл з правильним розширенням.",
18
- maxlength: jQuery.validator.format("Будь ласка, введіть не більше {0} символів."),
19
- minlength: jQuery.validator.format("Будь ласка, введіть не менше {0} символів."),
20
- rangelength: jQuery.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),
21
- range: jQuery.validator.format("Будь ласка, введіть число від {0} до {1}."),
22
- max: jQuery.validator.format("Будь ласка, введіть число, менше або рівно {0}."),
23
- min: jQuery.validator.format("Будь ласка, введіть число, більше або рівно {0}.")
24
- });