date_validator 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2d06600bd79d2376bdf394d1347266e7cc5079fd
4
- data.tar.gz: 99f22f60af52d7323f6d7d5aefc77718df94b7f9
2
+ SHA256:
3
+ metadata.gz: 88a10cd8606bfd0b406c79deacb8e99394f4e1fc5781391560b5413b59a40357
4
+ data.tar.gz: 8b4f1033a4ec532e0f1cfb9ff36143d71a96b87578a4a5310b8858f7a5073c57
5
5
  SHA512:
6
- metadata.gz: 130c376d4a561b1ad84abd8080c98b5f82085f1d2fd79ab6327ec9ee9746d5ff4f5a838b81eb752ea1e9b9f119017f162290f9be2c1eef2d3ea91ab3527694d0
7
- data.tar.gz: 3b1f7a559b9448c59b0b4317edf44e3c8bdb4e37f7374a41c3f8d6dae04950c7a55b0a0e6dd9913c16352feb4f9f62925b172826c58ba8516b02dd180166d74f
6
+ metadata.gz: 98c6d6d166a0a74b23f698c2b67a4c7cb037b110742b537f59f71a4e99e0b089136e8eb110fe785b852e3696820f562e2848a1af930a2fcdec9cf695b3a606d7
7
+ data.tar.gz: a72d2efdf1f7fc0578fd3482a174f1369afc280ced7a5f86f3559b2696d65fa47910e9fa8418005274c3a47763b5ddc69363939211016a53e6b3f0e4c8800c18
@@ -0,0 +1,41 @@
1
+ name: "Tests"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - "*"
10
+
11
+ env:
12
+ CI: "true"
13
+
14
+ jobs:
15
+ main:
16
+ name: Tests
17
+ runs-on: ubuntu-latest
18
+ strategy:
19
+ matrix:
20
+ ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
21
+ activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0]
22
+ exclude:
23
+ - ruby: 2.2
24
+ activemodel: 6.0
25
+ - ruby: 2.3
26
+ activemodel: 6.0
27
+ - ruby: 2.4
28
+ activemodel: 6.0
29
+ fail-fast: true
30
+ env:
31
+ ACTIVE_MODEL_VERSION: ${{ matrix.activemodel }}
32
+ steps:
33
+ - uses: actions/checkout@v2.0.0
34
+ with:
35
+ fetch-depth: 1
36
+ - uses: ruby/setup-ruby@master
37
+ with:
38
+ ruby-version: ${{ matrix.ruby }}
39
+ - run: bundle install --jobs 4 --retry 3
40
+ name: Install Ruby deps
41
+ - run: bundle exec rake
data/Gemfile CHANGED
@@ -1,17 +1,12 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- active_model_version = ENV['ACTIVE_MODEL_VERSION'] || 'default'
6
-
7
5
  active_model_opts =
8
- case active_model_version
9
- when 'master'
10
- { github: 'rails/rails' }
11
- when 'default'
12
- '~> 3'
13
- else
14
- "~> #{active_model_version}"
6
+ case version = ENV['ACTIVE_MODEL_VERSION'] || "master"
7
+ when 'master' then { github: 'rails/rails' }
8
+ when 'default' then '~> 3'
9
+ else "~> #{version}"
15
10
  end
16
11
 
17
12
  gem 'activemodel', active_model_opts
data/Readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # date_validator [![Build Status](https://travis-ci.org/codegram/date_validator.png?branch=master)](https://travis-ci.org/codegram/date_validator)
2
2
 
3
3
 
4
- A simple date validator for Rails. Should be compatible with all latest Rubies.
4
+ A simple date validator for Rails. Should be compatible with all latest Rubies (~> 2.x).
5
5
 
6
6
 
7
7
  ```shell
@@ -4,9 +4,9 @@ af:
4
4
  errors:
5
5
  messages:
6
6
  not_a_date: "is nie 'n datum nie"
7
- after: "moet na %{date} wees"
8
- after_or_equal_to: "moet na of op %{date} wees"
9
- before: "moet voor %{date} wees"
10
- before_or_equal_to: "moet voor of op %{date} wees"
11
- equal_to: "moet gelyk aan %{date} wees"
12
- cannot_be_in_the_future: "kan nie in die toekoms wees nie"
7
+ date_after: "moet na %{date} wees"
8
+ date_after_or_equal_to: "moet na of op %{date} wees"
9
+ date_before: "moet voor %{date} wees"
10
+ date_before_or_equal_to: "moet voor of op %{date} wees"
11
+ date_equal_to: "moet gelyk aan %{date} wees"
12
+ cannot_be_in_the_future: "kan nie in die toekoms wees nie"
@@ -0,0 +1,9 @@
1
+ ar:
2
+ errors:
3
+ messages:
4
+ not_a_date: "ليس بتاريخ"
5
+ date_after: "يجب أن يكون بعد %{date}"
6
+ date_after_or_equal_to: "يجب أن يكون مساوي أو بعد %{date}"
7
+ date_before: "يجب أن يكون قبل %{date}"
8
+ date_before_or_equal_to: "يجب أن يكون مساوي أو قبل %{date}"
9
+ date_equal_to: "يجب أن يساوي %{date}"
@@ -0,0 +1,9 @@
1
+ ca:
2
+ errors:
3
+ messages:
4
+ not_a_date: "no és una data"
5
+ date_after: "ha de ser posterior a %{date}"
6
+ date_after_or_equal_to: "ha de ser posterior o igual a %{date}"
7
+ date_before: "ha de ser abans de %{date}"
8
+ date_before_or_equal_to: "ha de ser abans de o igual a %{date}"
9
+ date_equal_to: "ha de ser igual a %{date}"
@@ -0,0 +1,8 @@
1
+ de:
2
+ errors:
3
+ messages:
4
+ not_a_date: "ist kein Datum"
5
+ date_after: "muss nach %{date} sein"
6
+ date_after_or_equal_to: "muss nach oder gleich %{date} sein"
7
+ date_before: "muss vor %{date} sein"
8
+ date_before_or_equal_to: "muss vor oder gleich %{date} sein"
@@ -0,0 +1,9 @@
1
+ en:
2
+ errors:
3
+ messages:
4
+ not_a_date: "is not a date"
5
+ date_after: "must be after %{date}"
6
+ date_after_or_equal_to: "must be after or equal to %{date}"
7
+ date_before: "must be before %{date}"
8
+ date_before_or_equal_to: "must be before or equal to %{date}"
9
+ date_equal_to: "must be equal to %{date}"
@@ -0,0 +1,9 @@
1
+ es:
2
+ errors:
3
+ messages:
4
+ not_a_date: "no es una fecha"
5
+ date_after: "tiene que ser posterior a %{date}"
6
+ date_after_or_equal_to: "tiene que ser posterior o igual a %{date}"
7
+ date_before: "tiene que ser antes de %{date}"
8
+ date_before_or_equal_to: "tiene que ser antes o igual a %{date}"
9
+ date_equal_to: "tiene que ser igual a %{date}"
@@ -5,7 +5,7 @@ fr:
5
5
  errors:
6
6
  messages:
7
7
  not_a_date: "n'est pas une date"
8
- after: "doit être après %{date}"
9
- after_or_equal_to: "doit être supérieur ou égal à %{date}"
10
- before: "doit être avant %{date}"
11
- before_or_equal_to: "doit être inférieur ou égal à %{date}"
8
+ date_after: "doit être après %{date}"
9
+ date_after_or_equal_to: "doit être supérieur ou égal à %{date}"
10
+ date_before: "doit être avant %{date}"
11
+ date_before_or_equal_to: "doit être inférieur ou égal à %{date}"
@@ -0,0 +1,9 @@
1
+ it:
2
+ errors:
3
+ messages:
4
+ not_a_date: "non è una data"
5
+ date_after: "deve essere successiva a %{date}"
6
+ date_after_or_equal_to: "deve essere successiva o uguale a %{date}"
7
+ date_before: "deve essere antecedente a %{date}"
8
+ date_before_or_equal_to: "deve essere antecedente o uguale a %{date}"
9
+ date_equal_to: "deve essere uguale a %{date}"
@@ -0,0 +1,9 @@
1
+ ja:
2
+ errors:
3
+ messages:
4
+ not_a_date: "は日付ではありません"
5
+ date_after: "は%{date}より後に設定してください"
6
+ date_after_or_equal_to: "は%{date}以後に設定してください"
7
+ date_before: "は%{date}より前に設定してください"
8
+ date_before_or_equal_to: "は%{date}以前に設定してください"
9
+ date_equal_to: "は%{date}にしてください"
@@ -0,0 +1,8 @@
1
+ nl:
2
+ errors:
3
+ messages:
4
+ not_a_date: "is geen datum"
5
+ date_after: "moet na %{date} liggen"
6
+ date_after_or_equal_to: "moet gelijk zijn aan of na %{date} liggen"
7
+ date_before: "moet voor %{date} liggen"
8
+ date_before_or_equal_to: "moet gelijk zijn of voor %{date} liggen"
@@ -0,0 +1,8 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ not_a_date: "nie jest datą"
5
+ date_after: "musi być po %{date}"
6
+ date_after_or_equal_to: "musi być po lub równa %{date}"
7
+ date_before: "musi być przed %{date}"
8
+ date_before_or_equal_to: "musi być przed lub równa %{date}"
@@ -0,0 +1,8 @@
1
+ pt-BR:
2
+ errors:
3
+ messages:
4
+ not_a_date: "não é uma data válida"
5
+ date_after: "deve ser após %{date}"
6
+ date_after_or_equal_to: "deve ser após ou igual a %{date}"
7
+ date_before: "deve ser antes de %{date}"
8
+ date_before_or_equal_to: "deve ser antes ou igual a %{date}"
@@ -0,0 +1,8 @@
1
+ ru:
2
+ errors:
3
+ messages:
4
+ not_a_date: "не является датой"
5
+ date_after: "должна быть позднее чем %{date}"
6
+ date_after_or_equal_to: "должна равняться или быть позднее чем %{date}"
7
+ date_before: "должна быть ранее чем %{date}"
8
+ date_before_or_equal_to: "должна равняться или быть ранее чем %{date}"
@@ -0,0 +1,9 @@
1
+ tr:
2
+ errors:
3
+ messages:
4
+ not_a_date: "geçerli tarih değil"
5
+ date_after: "%{date} den ileri bir tarih olmalı"
6
+ date_after_or_equal_to: "%{date} ile aynı veya ileri bir tarih olmalı"
7
+ date_before: "%{date} den öncesi bir tarih olmalı"
8
+ date_before_or_equal_to: "%{date} ile aynı veya öncesi bir tarih olmalı"
9
+ date_equal_to: "%{date} ile aynı tarihte olmalı"
@@ -0,0 +1,9 @@
1
+ zh-CN:
2
+ errors:
3
+ messages:
4
+ not_a_date: "不是一个日期"
5
+ after: "必须晚于 %{date}"
6
+ after_or_equal_to: "必须早于或等于 %{date}"
7
+ before: "必须早于 %{date}"
8
+ before_or_equal_to: "必须晚于或等于 %{date}"
9
+ equal_to: "必须等于 %{date}"
@@ -5,22 +5,23 @@ require "date_validator/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "date_validator"
7
7
  s.version = DateValidator::VERSION
8
- s.platform = Gem::Platform::RUBY
9
8
  s.authors = ["Oriol Gual", "Josep M. Bach", "Josep Jaume Rey"]
10
9
  s.email = ["info@codegram.com"]
11
10
  s.homepage = "http://github.com/codegram/date_validator"
12
- s.summary = %q{A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3, based on ActiveModel.}
13
- s.description = %q{A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3, based on ActiveModel. Currently supporting :after, :before, :after_or_equal_to and :before_or_equal_to options.}
11
+ s.summary = %q{A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3+, based on ActiveModel.}
12
+ s.description = %q{A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3+, based on ActiveModel. Currently supporting :after, :before, :after_or_equal_to and :before_or_equal_to options.}
14
13
 
15
14
  s.rubyforge_project = "date_validator"
16
15
 
17
- s.add_runtime_dependency 'activemodel'
18
- s.add_runtime_dependency 'activesupport'
16
+ s.add_runtime_dependency 'activemodel', '>= 3'
17
+ s.add_runtime_dependency 'activesupport', '>= 3'
19
18
 
20
19
  s.add_development_dependency 'minitest'
21
- s.add_development_dependency 'rake'
20
+ s.add_development_dependency 'rake', '>= 12.3.3'
22
21
  s.add_development_dependency 'tzinfo'
23
22
 
23
+ s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze)
24
+
24
25
  s.files = `git ls-files`.split("\n")
25
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
26
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
@@ -94,7 +94,7 @@ module ActiveModel
94
94
  end
95
95
 
96
96
  unless is_time?(option_value) && value.to_i.send(CHECKS[option], option_value.to_i)
97
- record.errors.add(attr_name, option, options.merge(
97
+ record.errors.add(attr_name, :"date_#{option}", options.merge(
98
98
  value: original_value,
99
99
  date: (I18n.localize(original_option_value) rescue original_option_value)
100
100
  ))
@@ -2,7 +2,7 @@ require 'active_model/validations/date_validator'
2
2
  require 'active_support/i18n'
3
3
  require 'date_validator/engine' if defined?(Rails)
4
4
 
5
- # A simple date validator for Rails 3.
5
+ # A simple date validator for Rails 3+.
6
6
  #
7
7
  # @example
8
8
  # validates :expiration_date,
@@ -1,8 +1,4 @@
1
1
  module DateValidator
2
2
  class Engine < Rails::Engine
3
- initializer 'date_validator' do
4
- files = Dir[Pathname.new(File.dirname(__FILE__)).join('../..', 'locales', '*.yml')]
5
- config.i18n.load_path += files
6
- end
7
3
  end
8
4
  end
@@ -1,4 +1,4 @@
1
1
  module DateValidator
2
2
  # The version number.
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.0"
4
4
  end
@@ -14,7 +14,7 @@ require 'minitest/autorun'
14
14
  require 'active_model'
15
15
  require 'date_validator'
16
16
 
17
- I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../locales', '*.yml')).to_s]
17
+ I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../config/locales', '*.yml')).to_s]
18
18
 
19
19
  class TestRecord
20
20
  include ActiveModel::Validations
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oriol Gual
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-13 00:00:00.000000000 Z
13
+ date: 2020-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '0'
28
+ version: '3'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: activesupport
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '0'
35
+ version: '3'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '0'
42
+ version: '3'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: minitest
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0'
63
+ version: 12.3.3
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: '0'
70
+ version: 12.3.3
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: tzinfo
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  description: A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails
86
- 3, based on ActiveModel. Currently supporting :after, :before, :after_or_equal_to
86
+ 3+, based on ActiveModel. Currently supporting :after, :before, :after_or_equal_to
87
87
  and :before_or_equal_to options.
88
88
  email:
89
89
  - info@codegram.com
@@ -93,31 +93,33 @@ extra_rdoc_files: []
93
93
  files:
94
94
  - ".document"
95
95
  - ".gemtest"
96
+ - ".github/workflows/ci.yml"
96
97
  - ".gitignore"
97
98
  - ".rspec"
98
- - ".travis.yml"
99
99
  - Gemfile
100
100
  - LICENSE
101
101
  - Rakefile
102
102
  - Readme.md
103
+ - config/locales/af.yml
104
+ - config/locales/ar.yml
105
+ - config/locales/ca.yml
106
+ - config/locales/de.yml
107
+ - config/locales/en.yml
108
+ - config/locales/es.yml
109
+ - config/locales/fr.yml
110
+ - config/locales/it.yml
111
+ - config/locales/ja.yml
112
+ - config/locales/nl.yml
113
+ - config/locales/pl.yml
114
+ - config/locales/pt-BR.yml
115
+ - config/locales/ru.yml
116
+ - config/locales/tr.yml
117
+ - config/locales/zh-CN.yml
103
118
  - date_validator.gemspec
104
119
  - lib/active_model/validations/date_validator.rb
105
120
  - lib/date_validator.rb
106
121
  - lib/date_validator/engine.rb
107
122
  - lib/date_validator/version.rb
108
- - locales/af.yml
109
- - locales/ca.yml
110
- - locales/de.yml
111
- - locales/en.yml
112
- - locales/es.yml
113
- - locales/fr.yml
114
- - locales/it.yml
115
- - locales/ja.yml
116
- - locales/nl.yml
117
- - locales/pl.yml
118
- - locales/pt-BR.yml
119
- - locales/ru.yml
120
- - locales/tr.yml
121
123
  - test/date_validator_test.rb
122
124
  - test/test_helper.rb
123
125
  homepage: http://github.com/codegram/date_validator
@@ -131,19 +133,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
133
  requirements:
132
134
  - - ">="
133
135
  - !ruby/object:Gem::Version
134
- version: '0'
136
+ version: '2.2'
135
137
  required_rubygems_version: !ruby/object:Gem::Requirement
136
138
  requirements:
137
139
  - - ">="
138
140
  - !ruby/object:Gem::Version
139
141
  version: '0'
140
142
  requirements: []
141
- rubyforge_project: date_validator
142
- rubygems_version: 2.4.5
143
+ rubygems_version: 3.1.2
143
144
  signing_key:
144
145
  specification_version: 4
145
- summary: A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3, based
146
- on ActiveModel.
146
+ summary: A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3+,
147
+ based on ActiveModel.
147
148
  test_files:
148
149
  - test/date_validator_test.rb
149
150
  - test/test_helper.rb
@@ -1,13 +0,0 @@
1
- # http://about.travis-ci.org/docs/user/build-configuration/
2
- langauge: ruby
3
- before_install:
4
- - gem update bundler
5
- env:
6
- - ACTIVE_MODEL_VERSION=3.2
7
- - ACTIVE_MODEL_VERSION=4.0
8
- - ACTIVE_MODEL_VERSION=4.2
9
- rvm:
10
- - 1.9.3
11
- - 2.2
12
- - 2.3.0
13
- - jruby-19mode
@@ -1,8 +0,0 @@
1
- ca:
2
- errors:
3
- messages:
4
- not_a_date: "no és una data"
5
- after: "ha de ser posterior a %{date}"
6
- after_or_equal_to: "ha de ser posterior o igual a %{date}"
7
- before: "ha de ser abans de %{date}"
8
- before_or_equal_to: "ha de ser abans de o igual a %{date}"
@@ -1,8 +0,0 @@
1
- de:
2
- errors:
3
- messages:
4
- not_a_date: "ist kein Datum"
5
- after: "muss nach %{date} sein"
6
- after_or_equal_to: "muss nach oder gleich %{date} sein"
7
- before: "muss vor %{date} sein"
8
- before_or_equal_to: "muss vor oder gleich %{date} sein"
@@ -1,9 +0,0 @@
1
- en:
2
- errors:
3
- messages:
4
- not_a_date: "is not a date"
5
- after: "must be after %{date}"
6
- after_or_equal_to: "must be after or equal to %{date}"
7
- before: "must be before %{date}"
8
- before_or_equal_to: "must be before or equal to %{date}"
9
- equal_to: "must be equal to %{date}"
@@ -1,8 +0,0 @@
1
- es:
2
- errors:
3
- messages:
4
- not_a_date: "no es una fecha"
5
- after: "tiene que ser posterior a %{date}"
6
- after_or_equal_to: "tiene que ser posterior o igual a %{date}"
7
- before: "tiene que ser antes de %{date}"
8
- before_or_equal_to: "tiene que ser antes o igual a %{date}"
@@ -1,9 +0,0 @@
1
- it:
2
- errors:
3
- messages:
4
- not_a_date: "non è una data"
5
- after: "deve essere successiva a %{date}"
6
- after_or_equal_to: "deve essere successiva o uguale a %{date}"
7
- before: "deve essere antecedente a %{date}"
8
- before_or_equal_to: "deve essere antecedente o uguale a %{date}"
9
- equal_to: "deve essere uguale a %{date}"
@@ -1,9 +0,0 @@
1
- ja:
2
- errors:
3
- messages:
4
- not_a_date: "は日付ではありません"
5
- after: "は%{date}より後に設定してください"
6
- after_or_equal_to: "は%{date}以後に設定してください"
7
- before: "は%{date}より前に設定してください"
8
- before_or_equal_to: "は%{date}以前に設定してください"
9
- equal_to: "は%{date}にしてください"
@@ -1,8 +0,0 @@
1
- nl:
2
- errors:
3
- messages:
4
- not_a_date: "is geen datum"
5
- after: "moet na %{date} liggen"
6
- after_or_equal_to: "moet gelijk zijn aan of na %{date} liggen"
7
- before: "moet voor %{date} liggen"
8
- before_or_equal_to: "moet gelijk zijn of voor %{date} liggen"
@@ -1,8 +0,0 @@
1
- pl:
2
- errors:
3
- messages:
4
- not_a_date: "nie jest datą"
5
- after: "musi być po %{date}"
6
- after_or_equal_to: "musi być po lub równa %{date}"
7
- before: "musi być przed %{date}"
8
- before_or_equal_to: "musi być przed lub równa %{date}"
@@ -1,8 +0,0 @@
1
- pt-BR:
2
- errors:
3
- messages:
4
- not_a_date: "não é uma data válida"
5
- after: "deve ser após %{date}"
6
- after_or_equal_to: "deve ser após ou igual a %{date}"
7
- before: "deve ser antes de %{date}"
8
- before_or_equal_to: "deve ser antes ou igual a %{date}"
@@ -1,8 +0,0 @@
1
- ru:
2
- errors:
3
- messages:
4
- not_a_date: "не является датой"
5
- after: "должна быть позднее чем %{date}"
6
- after_or_equal_to: "должна равняться или быть позднее чем %{date}"
7
- before: "должна быть ранее чем %{date}"
8
- before_or_equal_to: "должна равняться или быть ранее чем %{date}"
@@ -1,9 +0,0 @@
1
- tr:
2
- errors:
3
- messages:
4
- not_a_date: "geçerli tarih değil"
5
- after: "%{date} den ileri bir tarih olmalı"
6
- after_or_equal_to: "%{date} ile aynı veya ileri bir tarih olmalı"
7
- before: "%{date} den öncesi bir tarih olmalı"
8
- before_or_equal_to: "%{date} ile aynı veya öncesi bir tarih olmalı"
9
- equal_to: "%{date} ile aynı tarihte olmalı"