padrino-helpers 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/padrino-helpers/locale/{cz.yml → cs.yml} +4 -4
- data/lib/padrino-helpers/locale/de.yml +7 -4
- data/lib/padrino-helpers/locale/fr.yml +5 -4
- data/lib/padrino-helpers/locale/it.yml +4 -0
- data/lib/padrino-helpers/locale/ja.yml +1 -1
- data/lib/padrino-helpers/locale/nl.yml +29 -25
- data/lib/padrino-helpers/locale/zh_cn.yml +2 -1
- data/test/test_locale.rb +20 -0
- metadata +6 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
cs:
|
2
2
|
number:
|
3
3
|
# Used in number_with_delimiter()
|
4
4
|
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
@@ -17,8 +17,8 @@ cz:
|
|
17
17
|
format: "%n %u"
|
18
18
|
unit: "Kč"
|
19
19
|
# These three are to override number.format and are optional
|
20
|
-
|
21
|
-
|
20
|
+
separator: ","
|
21
|
+
delimiter: " "
|
22
22
|
precision: 2
|
23
23
|
|
24
24
|
# Used in number_to_percentage()
|
@@ -100,4 +100,4 @@ cz:
|
|
100
100
|
header:
|
101
101
|
one: "Při ukládání %{model} došlo k chybě a nebylo jej možné uložit"
|
102
102
|
other: "Při ukládání %{model} došlo ke %{count} chybám a nebylo možné jej uložit"
|
103
|
-
body: "Následující pole obsahují chybně vyplněné údaje:"
|
103
|
+
body: "Následující pole obsahují chybně vyplněné údaje:"
|
@@ -8,9 +8,9 @@ de:
|
|
8
8
|
format:
|
9
9
|
unit: '€'
|
10
10
|
format: '%n%u'
|
11
|
-
separator:
|
12
|
-
delimiter:
|
13
|
-
precision:
|
11
|
+
separator: ","
|
12
|
+
delimiter: "."
|
13
|
+
precision: 2
|
14
14
|
percentage:
|
15
15
|
format:
|
16
16
|
delimiter: ""
|
@@ -69,10 +69,13 @@ de:
|
|
69
69
|
over_x_years:
|
70
70
|
one: 'mehr als 1 Jahr'
|
71
71
|
other: 'mehr als %{count} Jahre'
|
72
|
+
almost_x_years:
|
73
|
+
one: 'fast ein Jahr'
|
74
|
+
other: 'fast %{count} Jahre'
|
72
75
|
models:
|
73
76
|
errors:
|
74
77
|
template:
|
75
78
|
header:
|
76
79
|
one: "1 Fehler verhindert, dass Objekt %{model} gesichert werden kann"
|
77
80
|
other: "%{count} Fehler verhindern, dass Objekt %{model} gesichert werden kann"
|
78
|
-
body: "Es existieren Probleme mit den folgenden Feldern:"
|
81
|
+
body: "Es existieren Probleme mit den folgenden Feldern:"
|
@@ -8,9 +8,9 @@ fr:
|
|
8
8
|
format:
|
9
9
|
unit: '€'
|
10
10
|
format: '%n%u'
|
11
|
-
separator:
|
12
|
-
delimiter:
|
13
|
-
precision:
|
11
|
+
separator: "."
|
12
|
+
delimiter: ""
|
13
|
+
precision: 2
|
14
14
|
percentage:
|
15
15
|
format:
|
16
16
|
delimiter: ""
|
@@ -76,4 +76,5 @@ fr:
|
|
76
76
|
header:
|
77
77
|
one: "1 erreur a empêché ce %{model} d'être sauvé"
|
78
78
|
other: "%{count} erreurs ont empêché ce %{model} d'être sauvé"
|
79
|
-
body: "Il y avait des problèmes avec les champs suivants:"
|
79
|
+
body: "Il y avait des problèmes avec les champs suivants:"
|
80
|
+
|
@@ -8,9 +8,9 @@ nl:
|
|
8
8
|
format:
|
9
9
|
unit: '€'
|
10
10
|
format: '%u %n'
|
11
|
-
separator:
|
12
|
-
delimiter:
|
13
|
-
precision:
|
11
|
+
separator: ","
|
12
|
+
delimiter: "."
|
13
|
+
precision: 2
|
14
14
|
percentage:
|
15
15
|
format:
|
16
16
|
delimiter: ""
|
@@ -36,36 +36,40 @@ nl:
|
|
36
36
|
|
37
37
|
datetime:
|
38
38
|
distance_in_words:
|
39
|
-
half_a_minute:
|
39
|
+
half_a_minute: "een halve minuut"
|
40
40
|
less_than_x_seconds:
|
41
|
-
|
42
|
-
|
43
|
-
other: 'minder dan %{count} seconden'
|
41
|
+
one: "minder dan \xC3\xA9\xC3\xA9n seconde"
|
42
|
+
other: "minder dan %{count} seconden"
|
44
43
|
x_seconds:
|
45
|
-
one:
|
46
|
-
other:
|
44
|
+
one: "1 seconde"
|
45
|
+
other: "%{count} seconden"
|
47
46
|
less_than_x_minutes:
|
48
|
-
|
49
|
-
|
50
|
-
other: 'minder dan %{count} minuten'
|
47
|
+
one: "minder dan \xC3\xA9\xC3\xA9n minuut"
|
48
|
+
other: "minder dan %{count} minuten"
|
51
49
|
x_minutes:
|
52
|
-
one:
|
53
|
-
other:
|
50
|
+
one: "1 minuut"
|
51
|
+
other: "%{count} minuten"
|
54
52
|
about_x_hours:
|
55
|
-
one:
|
56
|
-
other:
|
53
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n uur"
|
54
|
+
other: "ongeveer %{count} uur"
|
57
55
|
x_days:
|
58
|
-
one:
|
59
|
-
other:
|
56
|
+
one: "1 dag"
|
57
|
+
other: "%{count} dagen"
|
60
58
|
about_x_months:
|
61
|
-
one:
|
62
|
-
other:
|
59
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n maand"
|
60
|
+
other: "ongeveer %{count} maanden"
|
63
61
|
x_months:
|
64
|
-
one:
|
65
|
-
other:
|
62
|
+
one: "1 maand"
|
63
|
+
other: "%{count} maanden"
|
66
64
|
about_x_years:
|
67
|
-
one:
|
68
|
-
other:
|
65
|
+
one: "ongeveer \xC3\xA9\xC3\xA9n jaar"
|
66
|
+
other: "ongeveer %{count} jaar"
|
67
|
+
over_x_years:
|
68
|
+
one: "meer dan \xC3\xA9\xC3\xA9n jaar"
|
69
|
+
other: "meer dan %{count} jaar"
|
70
|
+
almost_x_years:
|
71
|
+
one: "bijna \xC3\xA9\xC3\xA9n jaar"
|
72
|
+
other: "bijna %{count} jaar"
|
69
73
|
over_x_years:
|
70
74
|
one: 'meer dan 1 jaar'
|
71
75
|
other: 'meer dan %{count} jaar'
|
@@ -75,4 +79,4 @@ nl:
|
|
75
79
|
header:
|
76
80
|
one: "1 fout verhindert het opslaan van dit %{model} object"
|
77
81
|
other: "%{count} fouten verhinderen het opslaan van dit %{model} object"
|
78
|
-
body: "Controleer alstublieft de volgende velden:"
|
82
|
+
body: "Controleer alstublieft de volgende velden:"
|
data/test/test_locale.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/helper')
|
2
|
+
|
3
|
+
class TestLocales < Test::Unit::TestCase
|
4
|
+
Dir[File.expand_path("../../lib/padrino-helpers/locale/*.yml", __FILE__)].each do |file|
|
5
|
+
base_original = YAML.load_file(file)
|
6
|
+
name = File.basename(file, '.yml')
|
7
|
+
should "should have correct locale for #{name}" do
|
8
|
+
base = base_original[name]['number']['format']
|
9
|
+
assert !base['separator'].nil?
|
10
|
+
assert !base['delimiter'].nil?
|
11
|
+
assert !base['precision'].nil?
|
12
|
+
base = base_original[name]['number']['currency']['format']
|
13
|
+
assert !base['format'].nil?
|
14
|
+
assert !base['unit'].nil?
|
15
|
+
assert !base['separator'].nil?
|
16
|
+
assert !base['delimiter'].nil?
|
17
|
+
assert !base['precision'].nil?
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: padrino-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.10.
|
5
|
+
version: 0.10.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Padrino Team
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2011-
|
16
|
+
date: 2011-08-01 00:00:00 -07:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - "="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.10.
|
27
|
+
version: 0.10.1
|
28
28
|
type: :runtime
|
29
29
|
version_requirements: *id001
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -58,7 +58,7 @@ files:
|
|
58
58
|
- lib/padrino-helpers/form_builder/standard_form_builder.rb
|
59
59
|
- lib/padrino-helpers/form_helpers.rb
|
60
60
|
- lib/padrino-helpers/format_helpers.rb
|
61
|
-
- lib/padrino-helpers/locale/
|
61
|
+
- lib/padrino-helpers/locale/cs.yml
|
62
62
|
- lib/padrino-helpers/locale/da.yml
|
63
63
|
- lib/padrino-helpers/locale/de.yml
|
64
64
|
- lib/padrino-helpers/locale/en.yml
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- test/test_form_builder.rb
|
140
140
|
- test/test_form_helpers.rb
|
141
141
|
- test/test_format_helpers.rb
|
142
|
+
- test/test_locale.rb
|
142
143
|
- test/test_number_helpers.rb
|
143
144
|
- test/test_output_helpers.rb
|
144
145
|
- test/test_render_helpers.rb
|
@@ -225,6 +226,7 @@ test_files:
|
|
225
226
|
- test/test_form_builder.rb
|
226
227
|
- test/test_form_helpers.rb
|
227
228
|
- test/test_format_helpers.rb
|
229
|
+
- test/test_locale.rb
|
228
230
|
- test/test_number_helpers.rb
|
229
231
|
- test/test_output_helpers.rb
|
230
232
|
- test/test_render_helpers.rb
|