spree_frontend 2.3.13 → 2.4.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +1 -1
- data/app/assets/javascripts/spree/frontend/product.js.coffee +2 -3
- data/app/controllers/spree/checkout_controller.rb +8 -24
- data/app/controllers/spree/content_controller.rb +1 -1
- data/app/controllers/spree/orders_controller.rb +4 -5
- data/app/controllers/spree/products_controller.rb +3 -3
- data/app/controllers/spree/store_controller.rb +0 -2
- data/app/views/spree/checkout/_payment.html.erb +3 -7
- data/app/views/spree/checkout/_summary.html.erb +8 -8
- data/app/views/spree/checkout/edit.html.erb +6 -7
- data/app/views/spree/orders/_adjustment_row.html.erb +8 -6
- data/app/views/spree/orders/_form.html.erb +2 -2
- data/app/views/spree/shared/_google_analytics.html.erb +2 -6
- data/app/views/spree/shared/_products.html.erb +4 -2
- data/lib/spree/frontend/engine.rb +0 -1
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cn.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +18 -12
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +10 -11
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ua.js +24 -0
- metadata +11 -34
- data/config/initializers/assets.rb +0 -1
- data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53f0a52d23729286b63ed9aa23ee0408deca5e4b
|
4
|
+
data.tar.gz: 400969b439b7cc6c0d2cd4f3feb88e614d718210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 791f30fc1fc4ee2a7705f72b7b6ba7335e4ea818f52cad459eb9ad9108319fa10c3952940b3322d94a9d0e98ba49c0e4bd6a4ae5e58d79e10305c2f122c9d5b1
|
7
|
+
data.tar.gz: 84409a111108028c3d9f0a95ace54ffc323ce3f6616302efceeef192789d37a78c30493f49761e13ee881c2e24db8f15fea8ab310f1b1e0889b0f282bbd2772d
|
@@ -25,7 +25,7 @@ Spree.ready ($) ->
|
|
25
25
|
statePara = ($ '#' + region + 'state')
|
26
26
|
stateSelect = statePara.find('select')
|
27
27
|
stateInput = statePara.find('input')
|
28
|
-
stateSpanRequired = statePara.find('state-required')
|
28
|
+
stateSpanRequired = statePara.find('[id$="state-required"]')
|
29
29
|
if states.length > 0
|
30
30
|
selected = parseInt stateSelect.val()
|
31
31
|
stateSelect.html ''
|
@@ -6,9 +6,8 @@ $ ->
|
|
6
6
|
thumbnails.find('a').on 'click', (event) ->
|
7
7
|
($ '#main-image').data 'selectedThumb', ($ event.currentTarget).attr('href')
|
8
8
|
($ '#main-image').data 'selectedThumbId', ($ event.currentTarget).parent().attr('id')
|
9
|
-
(
|
10
|
-
|
11
|
-
($ event.currentTarget).parent('li').addClass 'selected'
|
9
|
+
thumbnails.find('li').removeClass 'selected'
|
10
|
+
($ event.currentTarget).parent('li').addClass 'selected'
|
12
11
|
false
|
13
12
|
|
14
13
|
thumbnails.find('li').on 'mouseenter', (event) ->
|
@@ -7,19 +7,17 @@ module Spree
|
|
7
7
|
ssl_required
|
8
8
|
|
9
9
|
before_action :load_order_with_lock
|
10
|
-
before_action :ensure_valid_state_lock_version, only: [:update]
|
11
|
-
before_action :set_state_if_present
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
before_action :ensure_order_not_completed
|
12
|
+
before_action :ensure_checkout_allowed
|
13
|
+
before_action :ensure_sufficient_stock_lines
|
14
|
+
before_action :ensure_valid_state
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
before_action :associate_user
|
17
|
+
before_action :check_authorization
|
18
|
+
before_action :apply_coupon_code
|
21
19
|
|
22
|
-
|
20
|
+
before_action :setup_for_current_state
|
23
21
|
|
24
22
|
helper 'spree/orders'
|
25
23
|
|
@@ -74,21 +72,7 @@ module Spree
|
|
74
72
|
def load_order_with_lock
|
75
73
|
@order = current_order(lock: true)
|
76
74
|
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
|
90
75
|
|
91
|
-
def set_state_if_present
|
92
76
|
if params[:state]
|
93
77
|
redirect_to checkout_state_path(@order.state) if @order.can_go_to_state?(params[:state]) && !skip_state_validation?
|
94
78
|
@order.state = params[:state]
|
@@ -2,7 +2,7 @@ module Spree
|
|
2
2
|
class ContentController < Spree::StoreController
|
3
3
|
# Don't serve local files or static assets
|
4
4
|
before_filter { render_404 if params[:path] =~ /(\.|\\)/ }
|
5
|
-
|
5
|
+
after_action :fire_visited_path, only: :show
|
6
6
|
|
7
7
|
rescue_from ActionView::MissingTemplate, :with => :render_404
|
8
8
|
|
@@ -2,7 +2,7 @@ module Spree
|
|
2
2
|
class OrdersController < Spree::StoreController
|
3
3
|
ssl_required :show
|
4
4
|
|
5
|
-
|
5
|
+
before_action :check_authorization
|
6
6
|
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
|
7
7
|
helper 'spree/products', 'spree/orders'
|
8
8
|
|
@@ -10,7 +10,7 @@ module Spree
|
|
10
10
|
|
11
11
|
before_action :assign_order_with_lock, only: :update
|
12
12
|
before_action :apply_coupon_code, only: :update
|
13
|
-
skip_before_action :verify_authenticity_token
|
13
|
+
skip_before_action :verify_authenticity_token
|
14
14
|
|
15
15
|
def show
|
16
16
|
@order = Order.find_by_number!(params[:id])
|
@@ -35,15 +35,14 @@ module Spree
|
|
35
35
|
|
36
36
|
# Shows the current incomplete order from the session
|
37
37
|
def edit
|
38
|
-
@order = current_order || Order.
|
38
|
+
@order = current_order || Order.new
|
39
39
|
associate_user
|
40
40
|
end
|
41
41
|
|
42
42
|
# Adds a new item to the order (creating a new order if none already exists)
|
43
43
|
def populate
|
44
44
|
populator = Spree::OrderPopulator.new(current_order(create_order_if_necessary: true), current_currency)
|
45
|
-
|
46
|
-
if populator.populate(params[:variant_id], params[:quantity])
|
45
|
+
if populator.populate(params[:variant_id], params[:quantity], params[:options])
|
47
46
|
respond_with(@order) do |format|
|
48
47
|
format.html { redirect_to cart_path }
|
49
48
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Spree
|
2
2
|
class ProductsController < Spree::StoreController
|
3
|
-
|
4
|
-
|
3
|
+
before_action :load_product, only: :show
|
4
|
+
before_action :load_taxon, only: :index
|
5
5
|
|
6
6
|
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
|
7
7
|
helper 'spree/taxons'
|
@@ -22,7 +22,7 @@ module Spree
|
|
22
22
|
|
23
23
|
private
|
24
24
|
def accurate_title
|
25
|
-
@product ? @product.name : super
|
25
|
+
@product ? @product.meta_title || @product.name : super
|
26
26
|
end
|
27
27
|
|
28
28
|
def load_product
|
@@ -2,8 +2,6 @@ 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
|
-
|
7
5
|
def unauthorized
|
8
6
|
render 'spree/shared/unauthorized', :layout => Spree::Config[:layout], :status => 401
|
9
7
|
end
|
@@ -5,14 +5,10 @@
|
|
5
5
|
<% if @payment_sources.present? %>
|
6
6
|
<div class="card_options">
|
7
7
|
<%= radio_button_tag 'use_existing_card', 'yes', true %>
|
8
|
-
<label for="use_existing_card_yes">
|
9
|
-
<%= Spree.t(:use_existing_cc) %>
|
10
|
-
</label>
|
8
|
+
<label for="use_existing_card_yes">Use an existing card on file</label>
|
11
9
|
<br/>
|
12
10
|
<%= radio_button_tag 'use_existing_card', 'no' %>
|
13
|
-
<label for="use_existing_card_no">
|
14
|
-
<%= Spree.t(:use_new_cc_or_payment_method) %>
|
15
|
-
</label>
|
11
|
+
<label for="use_existing_card_no">Use a new card / payment method</label>
|
16
12
|
</div>
|
17
13
|
|
18
14
|
<div id="existing_cards">
|
@@ -26,7 +22,7 @@
|
|
26
22
|
<td><%= card.month %></td>
|
27
23
|
<td><%= card.year %></td>
|
28
24
|
<td>
|
29
|
-
<%= radio_button_tag "existing_card", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
|
25
|
+
<%= radio_button_tag "order[existing_card]", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
|
30
26
|
</td>
|
31
27
|
</tr>
|
32
28
|
<% end %>
|
@@ -7,9 +7,9 @@
|
|
7
7
|
<td><strong><%= order.display_item_total.to_html %></strong></td>
|
8
8
|
</tr>
|
9
9
|
|
10
|
-
<% if order.line_item_adjustments.exists? %>
|
10
|
+
<% if order.line_item_adjustments.nonzero.exists? %>
|
11
11
|
<tbody data-hook="order_details_promotion_adjustments">
|
12
|
-
<% order.line_item_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
12
|
+
<% order.line_item_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
13
13
|
<tr class="total">
|
14
14
|
<td><%= label %></td>
|
15
15
|
<td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<% end %>
|
20
20
|
|
21
21
|
<tbody data-hook="order_details_tax_adjustments">
|
22
|
-
<% order.all_adjustments.tax.eligible.group_by(&:label).each do |label, adjustments| %>
|
22
|
+
<% order.all_adjustments.nonzero.tax.eligible.group_by(&:label).each do |label, adjustments| %>
|
23
23
|
<tr class="total">
|
24
24
|
<td><%= label %></td>
|
25
25
|
<td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
|
@@ -27,15 +27,15 @@
|
|
27
27
|
<% end %>
|
28
28
|
</tbody>
|
29
29
|
|
30
|
-
<% if order.
|
30
|
+
<% if order.passed_checkout_step?("delivery") && order.shipments.any? %>
|
31
31
|
<tr data-hook="shipping_total">
|
32
32
|
<td><%= Spree.t(:shipping_total) %>:</td>
|
33
33
|
<td><%= Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency).to_html %></td>
|
34
34
|
</tr>
|
35
35
|
|
36
|
-
<% if order.shipment_adjustments.exists? %>
|
36
|
+
<% if order.shipment_adjustments.nonzero.exists? %>
|
37
37
|
<tbody data-hook="order_details_shipment_promotion_adjustments">
|
38
|
-
<% order.shipment_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
38
|
+
<% order.shipment_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
39
39
|
<tr class="total">
|
40
40
|
<td><%= label %>:</td>
|
41
41
|
<td><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %></td>
|
@@ -45,9 +45,9 @@
|
|
45
45
|
<% end %>
|
46
46
|
<% end %>
|
47
47
|
|
48
|
-
<% if order.adjustments.eligible.exists? %>
|
48
|
+
<% if order.adjustments.nonzero.eligible.exists? %>
|
49
49
|
<tbody id="summary-order-charges" data-hook>
|
50
|
-
<% order.adjustments.eligible.each do |adjustment| %>
|
50
|
+
<% order.adjustments.nonzero.eligible.each do |adjustment| %>
|
51
51
|
<% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
|
52
52
|
<tr class="total">
|
53
53
|
<td><%= adjustment.label %>:</td>
|
@@ -1,24 +1,23 @@
|
|
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| %>
|
12
|
-
<%
|
12
|
+
<% if @order.state == 'address' || !@order.email? %>
|
13
13
|
<p class="field" style='clear: both'>
|
14
14
|
<%= form.label :email %><br />
|
15
15
|
<%= form.text_field :email %>
|
16
16
|
</p>
|
17
17
|
<% end %>
|
18
|
-
<%= form.hidden_field :state_lock_version %>
|
19
18
|
<%= render @order.state, :form => form %>
|
20
19
|
<% end %>
|
21
|
-
</div>
|
20
|
+
</div>
|
22
21
|
<% if @order.state != 'confirm' %>
|
23
22
|
<div id="checkout-summary" data-hook="checkout_summary_box" class="columns omega four">
|
24
23
|
<%= render :partial => 'summary', :locals => { :order => @order } %>
|
@@ -33,5 +32,5 @@ Spree.current_order_token = "<%= @order.guest_token %>"
|
|
33
32
|
</script>
|
34
33
|
|
35
34
|
<% if I18n.locale != :en %>
|
36
|
-
<%=
|
35
|
+
<script src="<%= assets_prefix %>/jquery.validate/localization/messages_<%= I18n.locale.to_s.downcase.gsub("-", "") %>.js"></script>
|
37
36
|
<% end %>
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
</
|
1
|
+
<% if adjustments.sum(&:amount) != 0 %>
|
2
|
+
<tr class="adjustment">
|
3
|
+
<td colspan="4" align='right'><h5><%= type %>: <%= label %></h5></td>
|
4
|
+
<td colspan='2'>
|
5
|
+
<h5><%= Spree::Money.new(adjustments.sum(&:amount), :currency => @order.currency) %></h5>
|
6
|
+
</td>
|
7
|
+
</tr>
|
8
|
+
<% end %>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
</tr>
|
11
11
|
</thead>
|
12
12
|
<tbody id="line_items" data-hook>
|
13
|
-
<%= render partial: 'line_item', collection: order_form.object.line_items, locals: {order_form: order_form} %>
|
13
|
+
<%= render partial: 'spree/orders/line_item', collection: order_form.object.line_items, locals: {order_form: order_form} %>
|
14
14
|
</tbody>
|
15
|
-
<% if @order.adjustments.exists? || @order.line_item_adjustments.exists? || @order.shipment_adjustments.exists? %>
|
15
|
+
<% if @order.adjustments.nonzero.exists? || @order.line_item_adjustments.nonzero.exists? || @order.shipment_adjustments.nonzero.exists? || @order.shipments.any? %>
|
16
16
|
<tr class="cart-subtotal">
|
17
17
|
<td colspan="4" align='right'><h5><%= Spree.t(:cart_subtotal, :count => @order.line_items.sum(:quantity)) %></h5></th>
|
18
18
|
<td colspan><h5><%= order_form.object.display_item_total %></h5></td>
|
@@ -5,11 +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
|
-
|
9
|
-
ga('create', { 'trackingId': '<%= tracker.analytics_id %>', 'cookieDomain': 'auto', 'userId': '<%= user_analytics_id %>' });
|
10
|
-
<% else %>
|
11
|
-
ga('create', '<%= tracker.analytics_id %>', 'auto');
|
12
|
-
<% end %>
|
8
|
+
ga('create', '<%= tracker.analytics_id %>','<%= current_store.url.sub(/(^www.)?/,'') %>');
|
13
9
|
ga('require', 'displayfeatures');
|
14
10
|
ga('send', 'pageview');
|
15
11
|
|
@@ -28,7 +24,7 @@
|
|
28
24
|
ga('ecommerce:addItem', {
|
29
25
|
'id': '<%= j @order.number %>', // Transaction ID. Required.
|
30
26
|
'name': '<%= j line_item.variant.product.name %>', // Product name. Required.
|
31
|
-
'sku': '<%= j
|
27
|
+
'sku': '<%= j line_item.variant.sku %>', // SKU/code.
|
32
28
|
'category': '', // Category or variation.
|
33
29
|
'price': '<%= line_item.price %>', // Unit price.
|
34
30
|
'quantity': '<%= line_item.quantity %>' // Quantity.
|
@@ -24,14 +24,16 @@
|
|
24
24
|
<% if products.any? %>
|
25
25
|
<ul id="products" class="inline product-listing" data-hook>
|
26
26
|
<% products.each do |product| %>
|
27
|
-
<% url =
|
27
|
+
<% url = product_path(product, :taxon_id => @taxon.try(:id)) %>
|
28
28
|
<li id="product_<%= product.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">
|
29
29
|
<% cache(@taxon.present? ? [I18n.locale, current_currency, @taxon, product] : [I18n.locale, current_currency, product]) do %>
|
30
30
|
<div class="product-image">
|
31
31
|
<%= link_to small_image(product, :itemprop => "image"), url, :itemprop => 'url' %>
|
32
32
|
</div>
|
33
33
|
<%= link_to truncate(product.name, :length => 50), url, :class => 'info', :itemprop => "name", :title => product.name %>
|
34
|
-
<span
|
34
|
+
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
35
|
+
<span class="price selling" itemprop="price"><%= display_price(product) %>
|
36
|
+
</span>
|
35
37
|
<% end %>
|
36
38
|
</li>
|
37
39
|
<% end %>
|
@@ -0,0 +1,23 @@
|
|
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 +1,30 @@
|
|
1
|
-
|
1
|
+
/**
|
2
2
|
* Translated default messages for the jQuery validation plugin.
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* Language: PT_BR
|
4
|
+
* Translator: Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
|
5
5
|
*/
|
6
|
-
|
6
|
+
jQuery.extend(jQuery.validator.messages, {
|
7
7
|
required: "Este campo é requerido.",
|
8
8
|
remote: "Por favor, corrija este campo.",
|
9
9
|
email: "Por favor, forneça um endereço eletrônico válido.",
|
10
10
|
url: "Por favor, forneça uma URL válida.",
|
11
11
|
date: "Por favor, forneça uma data válida.",
|
12
12
|
dateISO: "Por favor, forneça uma data válida (ISO).",
|
13
|
-
|
13
|
+
dateDE: "Bitte geben Sie ein gültiges Datum ein.",
|
14
|
+
number: "Por favor, forneça um número válida.",
|
15
|
+
numberDE: "Bitte geben Sie eine Nummer ein.",
|
14
16
|
digits: "Por favor, forneça somente dígitos.",
|
15
17
|
creditcard: "Por favor, forneça um cartão de crédito válido.",
|
16
18
|
equalTo: "Por favor, forneça o mesmo valor novamente.",
|
17
19
|
accept: "Por favor, forneça um valor com uma extensão válida.",
|
18
|
-
maxlength:
|
19
|
-
minlength:
|
20
|
-
rangelength:
|
21
|
-
range:
|
22
|
-
max:
|
23
|
-
min:
|
24
|
-
});
|
20
|
+
maxlength: jQuery.validator.format("Por favor, forneça não mais que {0} caracteres."),
|
21
|
+
minlength: jQuery.validator.format("Por favor, forneça ao menos {0} caracteres."),
|
22
|
+
rangelength: jQuery.validator.format("Por favor, forneça um valor entre {0} e {1} caracteres de comprimento."),
|
23
|
+
range: jQuery.validator.format("Por favor, forneça um valor entre {0} e {1}."),
|
24
|
+
max: jQuery.validator.format("Por favor, forneça um valor menor ou igual a {0}."),
|
25
|
+
min: jQuery.validator.format("Por favor, forneç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ça uma data válida.");
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
1
|
+
/**
|
2
2
|
* Translated default messages for the jQuery validation plugin.
|
3
|
-
* Locale:
|
4
|
-
* Region: PT (Portugal)
|
3
|
+
* Locale: PT_PT
|
5
4
|
*/
|
6
|
-
|
5
|
+
jQuery.extend(jQuery.validator.messages, {
|
7
6
|
required: "Campo de preenchimento obrigatório.",
|
8
7
|
remote: "Por favor, corrija este campo.",
|
9
8
|
email: "Por favor, introduza um endereço eletrónico válido.",
|
@@ -15,10 +14,10 @@
|
|
15
14
|
creditcard: "Por favor, introduza um número de cartão de crédito válido.",
|
16
15
|
equalTo: "Por favor, introduza de novo o mesmo valor.",
|
17
16
|
accept: "Por favor, introduza um ficheiro com uma extensão válida.",
|
18
|
-
maxlength:
|
19
|
-
minlength:
|
20
|
-
rangelength:
|
21
|
-
range:
|
22
|
-
max:
|
23
|
-
min:
|
24
|
-
});
|
17
|
+
maxlength: jQuery.validator.format("Por favor, nã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
|
+
});
|
@@ -0,0 +1,24 @@
|
|
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
|
+
});
|
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
|
+
version: 2.4.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-09 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.
|
19
|
+
version: 2.4.0.rc1
|
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.
|
26
|
+
version: 2.4.0.rc1
|
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.
|
33
|
+
version: 2.4.0.rc1
|
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.
|
40
|
+
version: 2.4.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: canonical-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.5.1
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: email_spec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.2.1
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 1.2.1
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: capybara-accessible
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,7 +197,6 @@ files:
|
|
211
197
|
- app/views/spree/store/cart_link.html.erb
|
212
198
|
- app/views/spree/taxons/_taxon.html.erb
|
213
199
|
- app/views/spree/taxons/show.html.erb
|
214
|
-
- config/initializers/assets.rb
|
215
200
|
- config/initializers/canonical_rails.rb
|
216
201
|
- config/initializers/check_for_orphaned_preferences.rb
|
217
202
|
- config/initializers/deprecation_checker.rb
|
@@ -481,28 +466,24 @@ files:
|
|
481
466
|
- vendor/assets/javascripts/jquery.validate/localization/messages_ar.js
|
482
467
|
- vendor/assets/javascripts/jquery.validate/localization/messages_bg.js
|
483
468
|
- vendor/assets/javascripts/jquery.validate/localization/messages_ca.js
|
469
|
+
- vendor/assets/javascripts/jquery.validate/localization/messages_cn.js
|
484
470
|
- vendor/assets/javascripts/jquery.validate/localization/messages_cs.js
|
485
471
|
- vendor/assets/javascripts/jquery.validate/localization/messages_da.js
|
486
472
|
- vendor/assets/javascripts/jquery.validate/localization/messages_de.js
|
487
473
|
- vendor/assets/javascripts/jquery.validate/localization/messages_el.js
|
488
474
|
- vendor/assets/javascripts/jquery.validate/localization/messages_es.js
|
489
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_et.js
|
490
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_eu.js
|
491
475
|
- vendor/assets/javascripts/jquery.validate/localization/messages_fa.js
|
492
476
|
- vendor/assets/javascripts/jquery.validate/localization/messages_fi.js
|
493
477
|
- vendor/assets/javascripts/jquery.validate/localization/messages_fr.js
|
494
478
|
- vendor/assets/javascripts/jquery.validate/localization/messages_ge.js
|
495
479
|
- vendor/assets/javascripts/jquery.validate/localization/messages_he.js
|
496
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_hr.js
|
497
480
|
- vendor/assets/javascripts/jquery.validate/localization/messages_hu.js
|
498
481
|
- vendor/assets/javascripts/jquery.validate/localization/messages_it.js
|
499
482
|
- vendor/assets/javascripts/jquery.validate/localization/messages_ja.js
|
500
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ka.js
|
501
483
|
- vendor/assets/javascripts/jquery.validate/localization/messages_kk.js
|
502
484
|
- vendor/assets/javascripts/jquery.validate/localization/messages_ko.js
|
503
485
|
- vendor/assets/javascripts/jquery.validate/localization/messages_lt.js
|
504
486
|
- vendor/assets/javascripts/jquery.validate/localization/messages_lv.js
|
505
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ms.js
|
506
487
|
- vendor/assets/javascripts/jquery.validate/localization/messages_nl.js
|
507
488
|
- vendor/assets/javascripts/jquery.validate/localization/messages_no.js
|
508
489
|
- vendor/assets/javascripts/jquery.validate/localization/messages_pl.js
|
@@ -513,16 +494,12 @@ files:
|
|
513
494
|
- vendor/assets/javascripts/jquery.validate/localization/messages_se.js
|
514
495
|
- vendor/assets/javascripts/jquery.validate/localization/messages_si.js
|
515
496
|
- vendor/assets/javascripts/jquery.validate/localization/messages_sk.js
|
516
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sl.js
|
517
497
|
- vendor/assets/javascripts/jquery.validate/localization/messages_sr.js
|
518
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sv.js
|
519
498
|
- vendor/assets/javascripts/jquery.validate/localization/messages_th.js
|
520
499
|
- vendor/assets/javascripts/jquery.validate/localization/messages_tr.js
|
521
500
|
- vendor/assets/javascripts/jquery.validate/localization/messages_tw.js
|
522
|
-
- vendor/assets/javascripts/jquery.validate/localization/
|
501
|
+
- vendor/assets/javascripts/jquery.validate/localization/messages_ua.js
|
523
502
|
- vendor/assets/javascripts/jquery.validate/localization/messages_vi.js
|
524
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_zh.js
|
525
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js
|
526
503
|
- vendor/assets/javascripts/jquery.validate/localization/methods_de.js
|
527
504
|
- vendor/assets/javascripts/jquery.validate/localization/methods_nl.js
|
528
505
|
- vendor/assets/javascripts/jquery.validate/localization/methods_pt.js
|
@@ -541,13 +518,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
541
518
|
version: 1.9.3
|
542
519
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
543
520
|
requirements:
|
544
|
-
- - "
|
521
|
+
- - ">"
|
545
522
|
- !ruby/object:Gem::Version
|
546
|
-
version:
|
523
|
+
version: 1.3.1
|
547
524
|
requirements:
|
548
525
|
- none
|
549
526
|
rubyforge_project: spree_frontend
|
550
|
-
rubygems_version: 2.
|
527
|
+
rubygems_version: 2.2.2
|
551
528
|
signing_key:
|
552
529
|
specification_version: 4
|
553
530
|
summary: Frontend e-commerce functionality for the Spree project.
|
@@ -1 +0,0 @@
|
|
1
|
-
Rails.application.config.assets.precompile += %w( favicon.ico spree/frontend/cart.png )
|
@@ -1,23 +0,0 @@
|
|
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));
|
@@ -1,25 +0,0 @@
|
|
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));
|
@@ -1,25 +0,0 @@
|
|
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));
|
@@ -1,25 +0,0 @@
|
|
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));
|
@@ -1,25 +0,0 @@
|
|
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,25 +0,0 @@
|
|
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));
|
@@ -1,23 +0,0 @@
|
|
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ält är obligatoriskt.",
|
8
|
-
maxlength: $.validator.format("Du får ange högst {0} tecken."),
|
9
|
-
minlength: $.validator.format("Du må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 (ÅÅÅÅ-MM-DD).",
|
15
|
-
number: "Ange ett korrekt nummer.",
|
16
|
-
digits: "Ange endast siffror.",
|
17
|
-
equalTo: "Ange samma värde igen.",
|
18
|
-
range: $.validator.format("Ange ett värde mellan {0} och {1}."),
|
19
|
-
max: $.validator.format("Ange ett värde som är mindre eller lika med {0}."),
|
20
|
-
min: $.validator.format("Ange ett värde som är större eller lika med {0}."),
|
21
|
-
creditcard: "Ange ett korrekt kreditkortsnummer."
|
22
|
-
});
|
23
|
-
}(jQuery));
|
@@ -1,25 +0,0 @@
|
|
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));
|
@@ -1,25 +0,0 @@
|
|
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));
|
@@ -1,26 +0,0 @@
|
|
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));
|