timeliness-i18n 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/README.md +6 -2
- data/config/locales/de.yml +16 -0
- data/config/locales/es.yml +16 -0
- data/config/locales/fr.yml +16 -0
- data/config/locales/it.yml +16 -0
- data/lib/timeliness-i18n/version.rb +1 -1
- data/timeliness-i18n.gemspec +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40dc21d6ad702f14828776773cc59b49b22fefe0
|
|
4
|
+
data.tar.gz: 29ec063b01c8af15ec5fb11664894c7ecb08028e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dd8e68bcd7e8bbc120bd0f58f921eed34804f9096f32511cb1e27975ea931bbeeaa618407f3185b7b0be719562e21172ac9d97e6a46267c533c00511da03717
|
|
7
|
+
data.tar.gz: f3dc680e8b5923e45657e0dae2eb7a1dec774770a0642e8e5a1375be31554bfc1d1a88b0fd7ba357fa3bb9882a030914825d6f44a557b0b6479f67d1b3faf00d
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# timeliness-i18n
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/timeliness-i18n)
|
|
4
|
+
[]()
|
|
5
|
+
[]()
|
|
6
|
+
|
|
3
7
|
## Installation
|
|
4
8
|
|
|
5
9
|
Add this line to your application's Gemfile:
|
|
@@ -16,6 +20,6 @@ Or install it yourself as:
|
|
|
16
20
|
|
|
17
21
|
$ gem install timeliness-i18n
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## Something wrong with the translations? Contribute it!
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
Send a pull request! Fix the translations or create it for some missing locale. Help us to improves the quality of translations!
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
de:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
invalid_date: 'ist kein gültiges Datum'
|
|
5
|
+
invalid_time: 'ist keine gültige Zeit'
|
|
6
|
+
invalid_datetime: 'ist kein gültiges datetime'
|
|
7
|
+
is_at: 'muss sein %{restriction}'
|
|
8
|
+
before: 'muss vorher sein %{restriction}'
|
|
9
|
+
on_or_before: 'muss auf oder vor %{restriction}'
|
|
10
|
+
after: 'muss nach %{restriction}'
|
|
11
|
+
on_or_after: 'muss auf oder nach %{restriction}'
|
|
12
|
+
validates_timeliness:
|
|
13
|
+
error_value_formats:
|
|
14
|
+
date: '%d.%m.%Y'
|
|
15
|
+
time: '%H:%M:%S Uhr'
|
|
16
|
+
datetime: '%d.%m.%Y %H:%M:%S Uhr'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
es:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
invalid_date: 'no es una fecha válida'
|
|
5
|
+
invalid_time: 'no es un tiempo válido'
|
|
6
|
+
invalid_datetime: 'no es una fecha válida'
|
|
7
|
+
is_at: 'debe estar en %{restriction}'
|
|
8
|
+
before: 'debe ser antes %{restriction}'
|
|
9
|
+
on_or_before: 'debe estar en o antes %{restriction}'
|
|
10
|
+
after: 'debe ser después %{restriction}'
|
|
11
|
+
on_or_after: 'debe estar en o después %{restriction}'
|
|
12
|
+
validates_timeliness:
|
|
13
|
+
error_value_formats:
|
|
14
|
+
date: '%Y-%m-%d'
|
|
15
|
+
time: '%H:%M:%S'
|
|
16
|
+
datetime: '%Y-%m-%d %H:%M:%S'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
invalid_date: "n'est pas une date valide"
|
|
5
|
+
invalid_time: "n'est pas un temps valide"
|
|
6
|
+
invalid_datetime: "n'est pas une date valide"
|
|
7
|
+
is_at: 'doit être à %{restriction}'
|
|
8
|
+
before: 'doit être avant %{restriction}'
|
|
9
|
+
on_or_before: 'doit être au plus tard %{restriction}'
|
|
10
|
+
after: 'doit être après %{restriction}'
|
|
11
|
+
on_or_after: 'doit être sur ou après %{restriction}'
|
|
12
|
+
validates_timeliness:
|
|
13
|
+
error_value_formats:
|
|
14
|
+
date: '%d/%m/%Y'
|
|
15
|
+
time: '%Hh %Mmin %Ss'
|
|
16
|
+
datetime: '%d/%m/%Y %Hh %Mmin %Ss'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
it:
|
|
2
|
+
errors:
|
|
3
|
+
messages:
|
|
4
|
+
invalid_date: 'non è una data valida'
|
|
5
|
+
invalid_time: 'non è un momento valido'
|
|
6
|
+
invalid_datetime: 'non è una data valida'
|
|
7
|
+
is_at: 'deve essere a %{restriction}'
|
|
8
|
+
before: 'deve essere prima %{restriction}'
|
|
9
|
+
on_or_before: 'deve essere acceso o prima %{restriction}'
|
|
10
|
+
after: 'deve essere dopo %{restriction}'
|
|
11
|
+
on_or_after: 'deve essere su o dopo %{restriction}'
|
|
12
|
+
validates_timeliness:
|
|
13
|
+
error_value_formats:
|
|
14
|
+
date: '%d/%m/%Y'
|
|
15
|
+
time: '%H:%M:%S'
|
|
16
|
+
datetime: '%Y-%m-%d %H:%M:%S'
|
data/timeliness-i18n.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ['pedro.felipe.furtado@usp.br']
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Translations for the timeliness and validates_timeliness gem.}
|
|
13
|
-
spec.description =
|
|
13
|
+
spec.description = spec.summary
|
|
14
14
|
spec.homepage = 'https://github.com/pedrofurtado/timeliness-i18n'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: timeliness-i18n
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pedro Furtado
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -78,7 +78,11 @@ files:
|
|
|
78
78
|
- LICENSE.txt
|
|
79
79
|
- README.md
|
|
80
80
|
- Rakefile
|
|
81
|
+
- config/locales/de.yml
|
|
81
82
|
- config/locales/en.yml
|
|
83
|
+
- config/locales/es.yml
|
|
84
|
+
- config/locales/fr.yml
|
|
85
|
+
- config/locales/it.yml
|
|
82
86
|
- config/locales/pt-BR.yml
|
|
83
87
|
- lib/timeliness-i18n.rb
|
|
84
88
|
- lib/timeliness-i18n/engine.rb
|