padrino-helpers 0.7.6 → 0.7.7
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.7
|
@@ -124,7 +124,7 @@ module Padrino
|
|
124
124
|
|
125
125
|
# Returns the human name of the field. Look that use builtin I18n.
|
126
126
|
def field_human_name(field)
|
127
|
-
I18n.translate("#{object_name}.#{field}", :count => 1, :default => field.to_s.humanize, :scope => [:
|
127
|
+
I18n.translate("#{object_name}.attributes.#{field}", :count => 1, :default => field.to_s.humanize, :scope => [:models])
|
128
128
|
end
|
129
129
|
|
130
130
|
# Returns the id for the given field
|
@@ -0,0 +1,78 @@
|
|
1
|
+
de:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
precision: 2
|
5
|
+
separator: ','
|
6
|
+
delimiter: '.'
|
7
|
+
currency:
|
8
|
+
format:
|
9
|
+
unit: '€'
|
10
|
+
format: '%n%u'
|
11
|
+
separator:
|
12
|
+
delimiter:
|
13
|
+
precision:
|
14
|
+
percentage:
|
15
|
+
format:
|
16
|
+
delimiter: ""
|
17
|
+
precision:
|
18
|
+
format:
|
19
|
+
delimiter: ""
|
20
|
+
human:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
precision: 1
|
24
|
+
storage_units:
|
25
|
+
# Storage units output formatting.
|
26
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
27
|
+
format: "%n %u"
|
28
|
+
units:
|
29
|
+
byte:
|
30
|
+
one: "Byte"
|
31
|
+
other: "Bytes"
|
32
|
+
kb: "KB"
|
33
|
+
mb: "MB"
|
34
|
+
gb: "GB"
|
35
|
+
tb: "TB"
|
36
|
+
|
37
|
+
datetime:
|
38
|
+
distance_in_words:
|
39
|
+
half_a_minute: 'eine halbe Minute'
|
40
|
+
less_than_x_seconds:
|
41
|
+
zero: 'weniger als 1 Sekunde'
|
42
|
+
one: 'weniger als 1 Sekunde'
|
43
|
+
other: 'weniger als {{count}} Sekunden'
|
44
|
+
x_seconds:
|
45
|
+
one: '1 Sekunde'
|
46
|
+
other: '{{count}} Sekunden'
|
47
|
+
less_than_x_minutes:
|
48
|
+
zero: 'weniger als 1 Minute'
|
49
|
+
one: 'weniger als eine Minute'
|
50
|
+
other: 'weniger als {{count}} Minuten'
|
51
|
+
x_minutes:
|
52
|
+
one: '1 Minute'
|
53
|
+
other: '{{count}} Minuten'
|
54
|
+
about_x_hours:
|
55
|
+
one: 'etwa 1 Stunde'
|
56
|
+
other: 'etwa {{count}} Stunden'
|
57
|
+
x_days:
|
58
|
+
one: '1 Tag'
|
59
|
+
other: '{{count}} Tage'
|
60
|
+
about_x_months:
|
61
|
+
one: 'etwa 1 Monat'
|
62
|
+
other: 'etwa {{count}} Monate'
|
63
|
+
x_months:
|
64
|
+
one: '1 Monat'
|
65
|
+
other: '{{count}} Monate'
|
66
|
+
about_x_years:
|
67
|
+
one: 'etwa 1 Jahr'
|
68
|
+
other: 'etwa {{count}} Jahre'
|
69
|
+
over_x_years:
|
70
|
+
one: 'mehr als 1 Jahr'
|
71
|
+
other: 'mehr als {{count}} Jahre'
|
72
|
+
models:
|
73
|
+
errors:
|
74
|
+
template:
|
75
|
+
header:
|
76
|
+
one: "1 Fehler verhindert, dass Objekt {{model}} gesichert werden kann"
|
77
|
+
other: "{{count}} Fehler verhindern, dass Objekt {{model}} gesichert werden kann"
|
78
|
+
body: "Es existieren Probleme mit den follgenden Feldern:"
|
@@ -94,24 +94,10 @@ en:
|
|
94
94
|
almost_x_years:
|
95
95
|
one: "almost 1 year"
|
96
96
|
other: "almost {{count}} years"
|
97
|
-
prompts:
|
98
|
-
year: "Year"
|
99
|
-
month: "Month"
|
100
|
-
day: "Day"
|
101
|
-
hour: "Hour"
|
102
|
-
minute: "Minute"
|
103
|
-
second: "Seconds"
|
104
|
-
|
105
97
|
models:
|
106
98
|
errors:
|
107
99
|
template:
|
108
100
|
header:
|
109
101
|
one: "1 error prohibited this {{model}} from being saved"
|
110
102
|
other: "{{count}} errors prohibited this {{model}} from being saved"
|
111
|
-
|
112
|
-
body: "There were problems with the following fields:"
|
113
|
-
|
114
|
-
support:
|
115
|
-
select:
|
116
|
-
# default value for :prompt => true in FormOptionsHelper
|
117
|
-
prompt: "Please select"
|
103
|
+
body: "There were problems with the following fields:"
|
@@ -0,0 +1,85 @@
|
|
1
|
+
it:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: "."
|
6
|
+
precision: 3
|
7
|
+
|
8
|
+
currency:
|
9
|
+
format:
|
10
|
+
format: "%n %u"
|
11
|
+
unit: "€"
|
12
|
+
separator: "."
|
13
|
+
delimiter: ","
|
14
|
+
precision: 2
|
15
|
+
|
16
|
+
percentage:
|
17
|
+
format:
|
18
|
+
delimiter: ""
|
19
|
+
# precision:
|
20
|
+
|
21
|
+
precision:
|
22
|
+
format:
|
23
|
+
# separator:
|
24
|
+
delimiter: ""
|
25
|
+
# precision:
|
26
|
+
|
27
|
+
human:
|
28
|
+
format:
|
29
|
+
# These three are to override number.format and are optional
|
30
|
+
# separator:
|
31
|
+
delimiter: ""
|
32
|
+
precision: 1
|
33
|
+
storage_units:
|
34
|
+
# Storage units output formatting.
|
35
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
36
|
+
format: "%n %u"
|
37
|
+
units:
|
38
|
+
byte:
|
39
|
+
one: "Byte"
|
40
|
+
other: "Bytes"
|
41
|
+
kb: "KB"
|
42
|
+
mb: "MB"
|
43
|
+
gb: "GB"
|
44
|
+
tb: "TB"
|
45
|
+
|
46
|
+
datetime:
|
47
|
+
distance_in_words:
|
48
|
+
half_a_minute: "mezzo minuto"
|
49
|
+
less_than_x_seconds:
|
50
|
+
one: "meno di un secondo"
|
51
|
+
other: "meno di {{count}} secondi"
|
52
|
+
x_seconds:
|
53
|
+
one: "1 secondo"
|
54
|
+
other: "{{count}} secondi"
|
55
|
+
less_than_x_minutes:
|
56
|
+
one: "meno di un minuto"
|
57
|
+
other: "meno di {{count}} minuti"
|
58
|
+
x_minutes:
|
59
|
+
one: "1 minuto"
|
60
|
+
other: "{{count}} minuti"
|
61
|
+
about_x_hours:
|
62
|
+
one: "circa un'ora"
|
63
|
+
other: "circa {{count}} ore"
|
64
|
+
x_days:
|
65
|
+
one: "1 giorno"
|
66
|
+
other: "{{count}} giorni"
|
67
|
+
about_x_months:
|
68
|
+
one: "circa un mese"
|
69
|
+
other: "circa {{count}} mesi"
|
70
|
+
x_months:
|
71
|
+
one: "1 mese"
|
72
|
+
other: "{{count}} mesi"
|
73
|
+
about_x_years:
|
74
|
+
one: "circa un anno"
|
75
|
+
other: "circa {{count}} anni"
|
76
|
+
over_x_years:
|
77
|
+
one: "oltre un anno"
|
78
|
+
other: "oltre {{count}} anni"
|
79
|
+
models:
|
80
|
+
errors:
|
81
|
+
template:
|
82
|
+
header:
|
83
|
+
one: "Non posso salvare questo {{model}}: 1 errore"
|
84
|
+
other: "Non posso salvare questo {{model}}: {{count}} errori."
|
85
|
+
body: "Per favore ricontrolla i seguenti campi:"
|
data/padrino-helpers.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{padrino-helpers}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-11}
|
13
13
|
s.description = %q{Tag helpers, asset helpers, form helpers, form builders and many more helpers for padrino}
|
14
14
|
s.email = %q{padrinorb@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,7 +28,9 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/padrino-helpers/form_builder/standard_form_builder.rb",
|
29
29
|
"lib/padrino-helpers/form_helpers.rb",
|
30
30
|
"lib/padrino-helpers/format_helpers.rb",
|
31
|
+
"lib/padrino-helpers/locale/de.yml",
|
31
32
|
"lib/padrino-helpers/locale/en.yml",
|
33
|
+
"lib/padrino-helpers/locale/it.yml",
|
32
34
|
"lib/padrino-helpers/number_helpers.rb",
|
33
35
|
"lib/padrino-helpers/output_helpers.rb",
|
34
36
|
"lib/padrino-helpers/render_helpers.rb",
|
@@ -83,7 +85,7 @@ Gem::Specification.new do |s|
|
|
83
85
|
|
84
86
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
85
87
|
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2"])
|
86
|
-
s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.
|
88
|
+
s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.7"])
|
87
89
|
s.add_development_dependency(%q<haml>, [">= 2.2.1"])
|
88
90
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
89
91
|
s.add_development_dependency(%q<mocha>, [">= 0.9.7"])
|
@@ -91,7 +93,7 @@ Gem::Specification.new do |s|
|
|
91
93
|
s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
|
92
94
|
else
|
93
95
|
s.add_dependency(%q<sinatra>, [">= 0.9.2"])
|
94
|
-
s.add_dependency(%q<padrino-core>, ["= 0.7.
|
96
|
+
s.add_dependency(%q<padrino-core>, ["= 0.7.7"])
|
95
97
|
s.add_dependency(%q<haml>, [">= 2.2.1"])
|
96
98
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
97
99
|
s.add_dependency(%q<mocha>, [">= 0.9.7"])
|
@@ -100,7 +102,7 @@ Gem::Specification.new do |s|
|
|
100
102
|
end
|
101
103
|
else
|
102
104
|
s.add_dependency(%q<sinatra>, [">= 0.9.2"])
|
103
|
-
s.add_dependency(%q<padrino-core>, ["= 0.7.
|
105
|
+
s.add_dependency(%q<padrino-core>, ["= 0.7.7"])
|
104
106
|
s.add_dependency(%q<haml>, [">= 2.2.1"])
|
105
107
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
106
108
|
s.add_dependency(%q<mocha>, [">= 0.9.7"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2010-02-
|
15
|
+
date: 2010-02-11 00:00:00 +01:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - "="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.7.
|
36
|
+
version: 0.7.7
|
37
37
|
version:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: haml
|
@@ -106,7 +106,9 @@ files:
|
|
106
106
|
- lib/padrino-helpers/form_builder/standard_form_builder.rb
|
107
107
|
- lib/padrino-helpers/form_helpers.rb
|
108
108
|
- lib/padrino-helpers/format_helpers.rb
|
109
|
+
- lib/padrino-helpers/locale/de.yml
|
109
110
|
- lib/padrino-helpers/locale/en.yml
|
111
|
+
- lib/padrino-helpers/locale/it.yml
|
110
112
|
- lib/padrino-helpers/number_helpers.rb
|
111
113
|
- lib/padrino-helpers/output_helpers.rb
|
112
114
|
- lib/padrino-helpers/render_helpers.rb
|