spree_frontend 2.4.0.rc2 → 2.4.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/spree/checkout_controller.rb +16 -0
  3. data/app/controllers/spree/orders_controller.rb +1 -1
  4. data/app/controllers/spree/products_controller.rb +5 -1
  5. data/app/views/spree/checkout/edit.html.erb +6 -5
  6. data/app/views/spree/products/show.html.erb +1 -1
  7. data/app/views/spree/shared/_google_analytics.html.erb +2 -2
  8. data/lib/spree/frontend/engine.rb +1 -0
  9. data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +23 -0
  10. data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +25 -0
  11. data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +25 -0
  12. data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +25 -0
  13. data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +25 -0
  14. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +12 -18
  15. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +11 -10
  16. data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +25 -0
  17. data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +23 -0
  18. data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +25 -0
  19. data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +25 -0
  20. data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +26 -0
  21. metadata +16 -8
  22. data/vendor/assets/javascripts/jquery.validate/localization/messages_cn.js +0 -23
  23. 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: 755592ef010c216060da1010dbd8f09c94fb09d3
4
- data.tar.gz: 23953859a27b8e1cf754f6ce868d0365ed71da37
3
+ metadata.gz: 1089a79535f1706b421cb76a7e518e34b9a67611
4
+ data.tar.gz: b156f201c7eb42e619e483e8b72232abe6261a1d
5
5
  SHA512:
6
- metadata.gz: f0d78f6334f3ae347236405ae442326d988d214ca9a26977975c36ae27b8f5cd0f77a95282572a4f6de065e18383d6a5808fa36ba9af0c2c1bb4c5caea096cac
7
- data.tar.gz: 201a1ec7a298d40621e3f7bf94a06b8ebc0dec3b86cc7cac281e9eca01ae1e40e263b2522d33ad5d2bdc0aa4b0afb811a65ae131691700dd8b76936bcd1a348e
6
+ metadata.gz: 29c59434095955aa26eda666002f982260ff083291c1405cf37ffa9b48dcf1c65602121f47aa9984914a6f90dd51e543310f020d496ad2d2a4663ab43d413520
7
+ data.tar.gz: 03b76fbd5538e992e0aaad98cbdcf3aba874d9292c6c59cf2e2c19173577675a87ce945efb9cdd0392d79a650798b016d9b421c1437df36c5999a3bcdf534460
@@ -7,6 +7,8 @@ module Spree
7
7
  ssl_required
8
8
 
9
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_action :ensure_order_not_completed
12
14
  before_action :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]
@@ -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
 
@@ -22,7 +22,11 @@ module Spree
22
22
 
23
23
  private
24
24
  def accurate_title
25
- @product ? @product.meta_title || @product.name : super
25
+ if @product
26
+ @product.meta_title.blank? ? @product.name : @product.meta_title
27
+ else
28
+ super
29
+ end
26
30
  end
27
31
 
28
32
  def load_product
@@ -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 %>
@@ -30,7 +30,7 @@
30
30
 
31
31
  <div id="product-description" data-hook="product_description">
32
32
 
33
- <h1 class="product-title" itemprop="name"><%= accurate_title %></h1>
33
+ <h1 class="product-title" itemprop="name"><%= @product.name %></h1>
34
34
 
35
35
  <div itemprop="description" data-hook="description">
36
36
  <%= product_description(@product) rescue Spree.t(:product_has_no_description) %>
@@ -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.4.0.rc2
4
+ version: 2.4.0.rc3
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-09 00:00:00.000000000 Z
11
+ date: 2014-11-07 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.4.0.rc2
19
+ version: 2.4.0.rc3
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.4.0.rc2
26
+ version: 2.4.0.rc3
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.4.0.rc2
33
+ version: 2.4.0.rc3
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.4.0.rc2
40
+ version: 2.4.0.rc3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: canonical-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -466,24 +466,28 @@ files:
466
466
  - vendor/assets/javascripts/jquery.validate/localization/messages_ar.js
467
467
  - vendor/assets/javascripts/jquery.validate/localization/messages_bg.js
468
468
  - vendor/assets/javascripts/jquery.validate/localization/messages_ca.js
469
- - vendor/assets/javascripts/jquery.validate/localization/messages_cn.js
470
469
  - vendor/assets/javascripts/jquery.validate/localization/messages_cs.js
471
470
  - vendor/assets/javascripts/jquery.validate/localization/messages_da.js
472
471
  - vendor/assets/javascripts/jquery.validate/localization/messages_de.js
473
472
  - vendor/assets/javascripts/jquery.validate/localization/messages_el.js
474
473
  - vendor/assets/javascripts/jquery.validate/localization/messages_es.js
474
+ - vendor/assets/javascripts/jquery.validate/localization/messages_et.js
475
+ - vendor/assets/javascripts/jquery.validate/localization/messages_eu.js
475
476
  - vendor/assets/javascripts/jquery.validate/localization/messages_fa.js
476
477
  - vendor/assets/javascripts/jquery.validate/localization/messages_fi.js
477
478
  - vendor/assets/javascripts/jquery.validate/localization/messages_fr.js
478
479
  - vendor/assets/javascripts/jquery.validate/localization/messages_ge.js
479
480
  - vendor/assets/javascripts/jquery.validate/localization/messages_he.js
481
+ - vendor/assets/javascripts/jquery.validate/localization/messages_hr.js
480
482
  - vendor/assets/javascripts/jquery.validate/localization/messages_hu.js
481
483
  - vendor/assets/javascripts/jquery.validate/localization/messages_it.js
482
484
  - vendor/assets/javascripts/jquery.validate/localization/messages_ja.js
485
+ - vendor/assets/javascripts/jquery.validate/localization/messages_ka.js
483
486
  - vendor/assets/javascripts/jquery.validate/localization/messages_kk.js
484
487
  - vendor/assets/javascripts/jquery.validate/localization/messages_ko.js
485
488
  - vendor/assets/javascripts/jquery.validate/localization/messages_lt.js
486
489
  - vendor/assets/javascripts/jquery.validate/localization/messages_lv.js
490
+ - vendor/assets/javascripts/jquery.validate/localization/messages_ms.js
487
491
  - vendor/assets/javascripts/jquery.validate/localization/messages_nl.js
488
492
  - vendor/assets/javascripts/jquery.validate/localization/messages_no.js
489
493
  - vendor/assets/javascripts/jquery.validate/localization/messages_pl.js
@@ -494,12 +498,16 @@ files:
494
498
  - vendor/assets/javascripts/jquery.validate/localization/messages_se.js
495
499
  - vendor/assets/javascripts/jquery.validate/localization/messages_si.js
496
500
  - vendor/assets/javascripts/jquery.validate/localization/messages_sk.js
501
+ - vendor/assets/javascripts/jquery.validate/localization/messages_sl.js
497
502
  - vendor/assets/javascripts/jquery.validate/localization/messages_sr.js
503
+ - vendor/assets/javascripts/jquery.validate/localization/messages_sv.js
498
504
  - vendor/assets/javascripts/jquery.validate/localization/messages_th.js
499
505
  - vendor/assets/javascripts/jquery.validate/localization/messages_tr.js
500
506
  - vendor/assets/javascripts/jquery.validate/localization/messages_tw.js
501
- - vendor/assets/javascripts/jquery.validate/localization/messages_ua.js
507
+ - vendor/assets/javascripts/jquery.validate/localization/messages_uk.js
502
508
  - vendor/assets/javascripts/jquery.validate/localization/messages_vi.js
509
+ - vendor/assets/javascripts/jquery.validate/localization/messages_zh.js
510
+ - vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js
503
511
  - vendor/assets/javascripts/jquery.validate/localization/methods_de.js
504
512
  - vendor/assets/javascripts/jquery.validate/localization/methods_nl.js
505
513
  - 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
- });