padrino-helpers-cj 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +21 -0
- data/.yardopts +1 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +239 -0
- data/Rakefile +5 -0
- data/lib/padrino-helpers.rb +62 -0
- data/lib/padrino-helpers/asset_tag_helpers.rb +390 -0
- data/lib/padrino-helpers/form_builder/abstract_form_builder.rb +283 -0
- data/lib/padrino-helpers/form_builder/deprecated_builder_methods.rb +92 -0
- data/lib/padrino-helpers/form_builder/standard_form_builder.rb +40 -0
- data/lib/padrino-helpers/form_helpers.rb +633 -0
- data/lib/padrino-helpers/form_helpers/errors.rb +138 -0
- data/lib/padrino-helpers/form_helpers/options.rb +97 -0
- data/lib/padrino-helpers/form_helpers/security.rb +70 -0
- data/lib/padrino-helpers/format_helpers.rb +372 -0
- data/lib/padrino-helpers/locale/cs.yml +103 -0
- data/lib/padrino-helpers/locale/da.yml +91 -0
- data/lib/padrino-helpers/locale/de.yml +81 -0
- data/lib/padrino-helpers/locale/en.yml +103 -0
- data/lib/padrino-helpers/locale/es.yml +103 -0
- data/lib/padrino-helpers/locale/fr.yml +79 -0
- data/lib/padrino-helpers/locale/hu.yml +103 -0
- data/lib/padrino-helpers/locale/it.yml +89 -0
- data/lib/padrino-helpers/locale/ja.yml +103 -0
- data/lib/padrino-helpers/locale/lv.yml +103 -0
- data/lib/padrino-helpers/locale/nl.yml +82 -0
- data/lib/padrino-helpers/locale/no.yml +91 -0
- data/lib/padrino-helpers/locale/pl.yml +95 -0
- data/lib/padrino-helpers/locale/pt_br.yml +103 -0
- data/lib/padrino-helpers/locale/ro.yml +103 -0
- data/lib/padrino-helpers/locale/ru.yml +103 -0
- data/lib/padrino-helpers/locale/sv.yml +103 -0
- data/lib/padrino-helpers/locale/tr.yml +103 -0
- data/lib/padrino-helpers/locale/uk.yml +103 -0
- data/lib/padrino-helpers/locale/zh_cn.yml +103 -0
- data/lib/padrino-helpers/locale/zh_tw.yml +103 -0
- data/lib/padrino-helpers/number_helpers.rb +283 -0
- data/lib/padrino-helpers/output_helpers.rb +226 -0
- data/lib/padrino-helpers/output_helpers/abstract_handler.rb +61 -0
- data/lib/padrino-helpers/output_helpers/erb_handler.rb +27 -0
- data/lib/padrino-helpers/output_helpers/haml_handler.rb +25 -0
- data/lib/padrino-helpers/output_helpers/slim_handler.rb +18 -0
- data/lib/padrino-helpers/render_helpers.rb +63 -0
- data/lib/padrino-helpers/tag_helpers.rb +294 -0
- data/lib/padrino-helpers/translation_helpers.rb +36 -0
- data/lib/padrino/rendering.rb +397 -0
- data/lib/padrino/rendering/erubis_template.rb +66 -0
- data/lib/padrino/rendering/haml_template.rb +26 -0
- data/lib/padrino/rendering/slim_template.rb +20 -0
- data/padrino-helpers.gemspec +29 -0
- data/test/fixtures/apps/.components +6 -0
- data/test/fixtures/apps/.gitignore +7 -0
- data/test/fixtures/apps/render.rb +25 -0
- data/test/fixtures/apps/views/article/comment/show.slim +1 -0
- data/test/fixtures/apps/views/blog/post.erb +1 -0
- data/test/fixtures/apps/views/layouts/specific.erb +1 -0
- data/test/fixtures/apps/views/test/post.erb +1 -0
- data/test/fixtures/layouts/layout.erb +1 -0
- data/test/fixtures/markup_app/app.rb +87 -0
- data/test/fixtures/markup_app/views/button_to.erb +8 -0
- data/test/fixtures/markup_app/views/button_to.haml +5 -0
- data/test/fixtures/markup_app/views/button_to.slim +6 -0
- data/test/fixtures/markup_app/views/capture_concat.erb +14 -0
- data/test/fixtures/markup_app/views/capture_concat.haml +12 -0
- data/test/fixtures/markup_app/views/capture_concat.slim +12 -0
- data/test/fixtures/markup_app/views/content_for.erb +23 -0
- data/test/fixtures/markup_app/views/content_for.haml +19 -0
- data/test/fixtures/markup_app/views/content_for.slim +19 -0
- data/test/fixtures/markup_app/views/content_tag.erb +13 -0
- data/test/fixtures/markup_app/views/content_tag.haml +11 -0
- data/test/fixtures/markup_app/views/content_tag.slim +11 -0
- data/test/fixtures/markup_app/views/current_engine.erb +5 -0
- data/test/fixtures/markup_app/views/current_engine.haml +5 -0
- data/test/fixtures/markup_app/views/current_engine.slim +5 -0
- data/test/fixtures/markup_app/views/fields_for.erb +20 -0
- data/test/fixtures/markup_app/views/fields_for.haml +15 -0
- data/test/fixtures/markup_app/views/fields_for.slim +15 -0
- data/test/fixtures/markup_app/views/form_for.erb +72 -0
- data/test/fixtures/markup_app/views/form_for.haml +59 -0
- data/test/fixtures/markup_app/views/form_for.slim +59 -0
- data/test/fixtures/markup_app/views/form_tag.erb +95 -0
- data/test/fixtures/markup_app/views/form_tag.haml +78 -0
- data/test/fixtures/markup_app/views/form_tag.slim +79 -0
- data/test/fixtures/markup_app/views/link_to.erb +5 -0
- data/test/fixtures/markup_app/views/link_to.haml +4 -0
- data/test/fixtures/markup_app/views/link_to.slim +4 -0
- data/test/fixtures/markup_app/views/mail_to.erb +3 -0
- data/test/fixtures/markup_app/views/mail_to.haml +3 -0
- data/test/fixtures/markup_app/views/mail_to.slim +3 -0
- data/test/fixtures/markup_app/views/meta_tag.erb +3 -0
- data/test/fixtures/markup_app/views/meta_tag.haml +3 -0
- data/test/fixtures/markup_app/views/meta_tag.slim +3 -0
- data/test/fixtures/markup_app/views/partials/_erb.erb +1 -0
- data/test/fixtures/markup_app/views/partials/_haml.haml +1 -0
- data/test/fixtures/markup_app/views/partials/_slim.slim +1 -0
- data/test/fixtures/markup_app/views/simple_partial.erb +1 -0
- data/test/fixtures/markup_app/views/simple_partial.haml +1 -0
- data/test/fixtures/markup_app/views/simple_partial.slim +1 -0
- data/test/fixtures/render_app/app.rb +94 -0
- data/test/fixtures/render_app/views/_deep.erb +3 -0
- data/test/fixtures/render_app/views/_deep.haml +2 -0
- data/test/fixtures/render_app/views/_deep.slim +2 -0
- data/test/fixtures/render_app/views/_partial_block_erb.erb +10 -0
- data/test/fixtures/render_app/views/_partial_block_haml.haml +7 -0
- data/test/fixtures/render_app/views/_partial_block_slim.slim +7 -0
- data/test/fixtures/render_app/views/_unsafe.html.builder +2 -0
- data/test/fixtures/render_app/views/_unsafe_object.html.builder +2 -0
- data/test/fixtures/render_app/views/current_engine.haml +5 -0
- data/test/fixtures/render_app/views/current_engines/_erb.erb +1 -0
- data/test/fixtures/render_app/views/current_engines/_haml.haml +1 -0
- data/test/fixtures/render_app/views/current_engines/_slim.slim +1 -0
- data/test/fixtures/render_app/views/double_capture_erb.erb +3 -0
- data/test/fixtures/render_app/views/double_capture_haml.haml +2 -0
- data/test/fixtures/render_app/views/double_capture_slim.slim +2 -0
- data/test/fixtures/render_app/views/erb/test.erb +1 -0
- data/test/fixtures/render_app/views/explicit_engine.haml +5 -0
- data/test/fixtures/render_app/views/haml/test.haml +1 -0
- data/test/fixtures/render_app/views/render_block_erb.erb +5 -0
- data/test/fixtures/render_app/views/render_block_haml.haml +4 -0
- data/test/fixtures/render_app/views/render_block_slim.slim +4 -0
- data/test/fixtures/render_app/views/ruby_block_capture_erb.erb +1 -0
- data/test/fixtures/render_app/views/ruby_block_capture_haml.haml +1 -0
- data/test/fixtures/render_app/views/ruby_block_capture_slim.slim +1 -0
- data/test/fixtures/render_app/views/template/_user.haml +7 -0
- data/test/fixtures/render_app/views/template/haml_template.haml +1 -0
- data/test/fixtures/render_app/views/template/some_template.haml +2 -0
- data/test/fixtures/render_app/views/wrong_capture_erb.erb +3 -0
- data/test/fixtures/render_app/views/wrong_capture_haml.haml +2 -0
- data/test/fixtures/render_app/views/wrong_capture_slim.slim +2 -0
- data/test/helper.rb +131 -0
- data/test/test_asset_tag_helpers.rb +406 -0
- data/test/test_form_builder.rb +1216 -0
- data/test/test_form_helpers.rb +1056 -0
- data/test/test_format_helpers.rb +251 -0
- data/test/test_helpers.rb +10 -0
- data/test/test_locale.rb +20 -0
- data/test/test_number_helpers.rb +142 -0
- data/test/test_output_helpers.rb +157 -0
- data/test/test_render_helpers.rb +215 -0
- data/test/test_rendering.rb +694 -0
- data/test/test_rendering_extensions.rb +14 -0
- data/test/test_tag_helpers.rb +131 -0
- metadata +241 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
cs:
|
2
|
+
number:
|
3
|
+
# Used in number_with_delimiter().
|
4
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'.
|
5
|
+
format:
|
6
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5).
|
7
|
+
separator: ","
|
8
|
+
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three).
|
9
|
+
delimiter: " "
|
10
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00).
|
11
|
+
precision: 3
|
12
|
+
|
13
|
+
# Used in number_to_currency().
|
14
|
+
currency:
|
15
|
+
format:
|
16
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00).
|
17
|
+
format: "%n %u"
|
18
|
+
unit: "Kč"
|
19
|
+
# These three are to override number.format and are optional.
|
20
|
+
separator: ","
|
21
|
+
delimiter: " "
|
22
|
+
precision: 2
|
23
|
+
|
24
|
+
# Used in number_to_percentage().
|
25
|
+
percentage:
|
26
|
+
format:
|
27
|
+
# These three are to override number.format and are optional.
|
28
|
+
# separator:
|
29
|
+
delimiter: ""
|
30
|
+
# precision:
|
31
|
+
|
32
|
+
# Used in number_to_precision()
|
33
|
+
precision:
|
34
|
+
format:
|
35
|
+
# These three are to override number.format and are optional.
|
36
|
+
# separator:
|
37
|
+
delimiter: ""
|
38
|
+
# precision:
|
39
|
+
|
40
|
+
# Used in number_to_human_size().
|
41
|
+
human:
|
42
|
+
format:
|
43
|
+
# These three are to override number.format and are optional.
|
44
|
+
# separator:
|
45
|
+
delimiter: ""
|
46
|
+
precision: 1
|
47
|
+
storage_units:
|
48
|
+
# Storage units output formatting.
|
49
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
50
|
+
format: "%n %u"
|
51
|
+
units:
|
52
|
+
byte:
|
53
|
+
one: "Byte"
|
54
|
+
other: "Bytes"
|
55
|
+
kb: "KB"
|
56
|
+
mb: "MB"
|
57
|
+
gb: "GB"
|
58
|
+
tb: "TB"
|
59
|
+
|
60
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words().
|
61
|
+
datetime:
|
62
|
+
distance_in_words:
|
63
|
+
half_a_minute: "půl minutou"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "asi před sekundou"
|
66
|
+
other: "asi před %{count} sekundami"
|
67
|
+
x_seconds:
|
68
|
+
one: "sekundou"
|
69
|
+
other: "%{count} sekundami"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "před necelou minutou"
|
72
|
+
other: "před ani ne %{count} minutami"
|
73
|
+
x_minutes:
|
74
|
+
one: "minutou"
|
75
|
+
other: "%{count} minutami"
|
76
|
+
about_x_hours:
|
77
|
+
one: "asi hodinou"
|
78
|
+
other: "asi %{count} hodinami"
|
79
|
+
x_days:
|
80
|
+
one: "24 hodinami"
|
81
|
+
other: "%{count} dny"
|
82
|
+
about_x_months:
|
83
|
+
one: "asi měsícem"
|
84
|
+
other: "asi %{count} měsíci"
|
85
|
+
x_months:
|
86
|
+
one: "měsícem"
|
87
|
+
other: "%{count} měsíci"
|
88
|
+
about_x_years:
|
89
|
+
one: "asi rokem"
|
90
|
+
other: "asi %{count} roky"
|
91
|
+
over_x_years:
|
92
|
+
one: "více než před rokem"
|
93
|
+
other: "více než %{count} roky"
|
94
|
+
almost_x_years:
|
95
|
+
one: "skoro rokem"
|
96
|
+
other: "almost %{count} roků"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "Při ukládání %{model} došlo k chybě a nebylo jej možné uložit"
|
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:"
|
@@ -0,0 +1,91 @@
|
|
1
|
+
da:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: "."
|
6
|
+
precision: 3
|
7
|
+
currency:
|
8
|
+
format:
|
9
|
+
format: "%u %n"
|
10
|
+
unit: "DKK"
|
11
|
+
separator: ","
|
12
|
+
delimiter: "."
|
13
|
+
precision: 2
|
14
|
+
precision:
|
15
|
+
format:
|
16
|
+
# separator:
|
17
|
+
delimiter: ""
|
18
|
+
# precision:
|
19
|
+
human:
|
20
|
+
format:
|
21
|
+
# separator:
|
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
|
+
percentage:
|
37
|
+
format:
|
38
|
+
# separator:
|
39
|
+
delimiter: ""
|
40
|
+
# precision:
|
41
|
+
|
42
|
+
datetime:
|
43
|
+
distance_in_words:
|
44
|
+
half_a_minute: "et halvt minut"
|
45
|
+
less_than_x_seconds:
|
46
|
+
one: "mindre end et sekund"
|
47
|
+
other: "mindre end %{count} sekunder"
|
48
|
+
x_seconds:
|
49
|
+
one: "et sekund"
|
50
|
+
other: "%{count} sekunder"
|
51
|
+
less_than_x_minutes:
|
52
|
+
one: "mindre end et minut"
|
53
|
+
other: "mindre end %{count} minutter"
|
54
|
+
x_minutes:
|
55
|
+
one: "et minut"
|
56
|
+
other: "%{count} minutter"
|
57
|
+
about_x_hours:
|
58
|
+
one: "cirka en time"
|
59
|
+
other: "cirka %{count} timer"
|
60
|
+
x_days:
|
61
|
+
one: "en dag"
|
62
|
+
other: "%{count} dage"
|
63
|
+
about_x_months:
|
64
|
+
one: "cirka en måned"
|
65
|
+
other: "cirka %{count} måneder"
|
66
|
+
x_months:
|
67
|
+
one: "en måned"
|
68
|
+
other: "%{count} måneder"
|
69
|
+
about_x_years:
|
70
|
+
one: "cirka et år"
|
71
|
+
other: "cirka %{count} år"
|
72
|
+
over_x_years:
|
73
|
+
one: "mere end et år"
|
74
|
+
other: "mere end %{count} år"
|
75
|
+
almost_x_years:
|
76
|
+
one: "næsten et år"
|
77
|
+
other: "næsten %{count} years"
|
78
|
+
prompts:
|
79
|
+
second: "Sekund"
|
80
|
+
minute: "Minut"
|
81
|
+
hour: "Time"
|
82
|
+
day: "Dag"
|
83
|
+
month: "Måned"
|
84
|
+
year: "År"
|
85
|
+
models:
|
86
|
+
errors:
|
87
|
+
template:
|
88
|
+
header:
|
89
|
+
one: "En fejl forhindrede %{model} i at blive gemt"
|
90
|
+
other: "%{count} fejl forhindrede denne %{model} i at blive gemt"
|
91
|
+
body: "Der var problemer med følgende felter:"
|
@@ -0,0 +1,81 @@
|
|
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: 2
|
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 1 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
|
+
almost_x_years:
|
73
|
+
one: 'fast ein Jahr'
|
74
|
+
other: 'fast %{count} Jahre'
|
75
|
+
models:
|
76
|
+
errors:
|
77
|
+
template:
|
78
|
+
header:
|
79
|
+
one: "1 Fehler verhindert, dass Objekt %{model} gesichert werden kann"
|
80
|
+
other: "%{count} Fehler verhindern, dass Objekt %{model} gesichert werden kann"
|
81
|
+
body: "Es existieren Probleme mit den folgenden Feldern:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
en:
|
2
|
+
number:
|
3
|
+
# Used in number_with_delimiter().
|
4
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'.
|
5
|
+
format:
|
6
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5).
|
7
|
+
separator: "."
|
8
|
+
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three).
|
9
|
+
delimiter: ","
|
10
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00).
|
11
|
+
precision: 3
|
12
|
+
|
13
|
+
# Used in number_to_currency().
|
14
|
+
currency:
|
15
|
+
format:
|
16
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00).
|
17
|
+
format: "%u%n"
|
18
|
+
unit: "$"
|
19
|
+
# These three are to override number.format and are optional.
|
20
|
+
separator: "."
|
21
|
+
delimiter: ","
|
22
|
+
precision: 2
|
23
|
+
|
24
|
+
# Used in number_to_percentage().
|
25
|
+
percentage:
|
26
|
+
format:
|
27
|
+
# These three are to override number.format and are optional.
|
28
|
+
# separator:
|
29
|
+
delimiter: ""
|
30
|
+
# precision:
|
31
|
+
|
32
|
+
# Used in number_to_precision().
|
33
|
+
precision:
|
34
|
+
format:
|
35
|
+
# These three are to override number.format and are optional.
|
36
|
+
# separator:
|
37
|
+
delimiter: ""
|
38
|
+
# precision:
|
39
|
+
|
40
|
+
# Used in number_to_human_size().
|
41
|
+
human:
|
42
|
+
format:
|
43
|
+
# These three are to override number.format and are optional.
|
44
|
+
# separator:
|
45
|
+
delimiter: ""
|
46
|
+
precision: 1
|
47
|
+
storage_units:
|
48
|
+
# Storage units output formatting.
|
49
|
+
# %u is the storage unit, %n is the number (default: 2 MB).
|
50
|
+
format: "%n %u"
|
51
|
+
units:
|
52
|
+
byte:
|
53
|
+
one: "Byte"
|
54
|
+
other: "Bytes"
|
55
|
+
kb: "KB"
|
56
|
+
mb: "MB"
|
57
|
+
gb: "GB"
|
58
|
+
tb: "TB"
|
59
|
+
|
60
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words().
|
61
|
+
datetime:
|
62
|
+
distance_in_words:
|
63
|
+
half_a_minute: "half a minute"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "less than 1 second"
|
66
|
+
other: "less than %{count} seconds"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 second"
|
69
|
+
other: "%{count} seconds"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "less than a minute"
|
72
|
+
other: "less than %{count} minutes"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 minute"
|
75
|
+
other: "%{count} minutes"
|
76
|
+
about_x_hours:
|
77
|
+
one: "about 1 hour"
|
78
|
+
other: "about %{count} hours"
|
79
|
+
x_days:
|
80
|
+
one: "1 day"
|
81
|
+
other: "%{count} days"
|
82
|
+
about_x_months:
|
83
|
+
one: "about 1 month"
|
84
|
+
other: "about %{count} months"
|
85
|
+
x_months:
|
86
|
+
one: "1 month"
|
87
|
+
other: "%{count} months"
|
88
|
+
about_x_years:
|
89
|
+
one: "about 1 year"
|
90
|
+
other: "about %{count} years"
|
91
|
+
over_x_years:
|
92
|
+
one: "over 1 year"
|
93
|
+
other: "over %{count} years"
|
94
|
+
almost_x_years:
|
95
|
+
one: "almost 1 year"
|
96
|
+
other: "almost %{count} years"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "1 error prohibited this %{model} from being saved"
|
102
|
+
other: "%{count} errors prohibited this %{model} from being saved"
|
103
|
+
body: "There were problems with the following fields:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
es:
|
2
|
+
number:
|
3
|
+
# Used in number_with_delimiter().
|
4
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'.
|
5
|
+
format:
|
6
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5).
|
7
|
+
separator: "."
|
8
|
+
# Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three).
|
9
|
+
delimiter: ","
|
10
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00).
|
11
|
+
precision: 2
|
12
|
+
|
13
|
+
# Used in number_to_currency().
|
14
|
+
currency:
|
15
|
+
format:
|
16
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00).
|
17
|
+
format: "%u%n"
|
18
|
+
unit: "$"
|
19
|
+
# These three are to override number.format and are optional.
|
20
|
+
separator: "."
|
21
|
+
delimiter: ","
|
22
|
+
precision: 2
|
23
|
+
|
24
|
+
# Used in number_to_percentage().
|
25
|
+
percentage:
|
26
|
+
format:
|
27
|
+
# These three are to override number.format and are optional.
|
28
|
+
# separator:
|
29
|
+
delimiter: ""
|
30
|
+
# precision:
|
31
|
+
|
32
|
+
# Used in number_to_precision().
|
33
|
+
precision:
|
34
|
+
format:
|
35
|
+
# These three are to override number.format and are optional.
|
36
|
+
# separator:
|
37
|
+
delimiter: ""
|
38
|
+
# precision:
|
39
|
+
|
40
|
+
# Used in number_to_human_size().
|
41
|
+
human:
|
42
|
+
format:
|
43
|
+
# These three are to override number.format and are optional.
|
44
|
+
# separator:
|
45
|
+
delimiter: ""
|
46
|
+
precision: 1
|
47
|
+
storage_units:
|
48
|
+
# Storage units output formatting.
|
49
|
+
# %u is the storage unit, %n is the number (default: 2 MB).
|
50
|
+
format: "%n %u"
|
51
|
+
units:
|
52
|
+
byte:
|
53
|
+
one: "Byte"
|
54
|
+
other: "Bytes"
|
55
|
+
kb: "KB"
|
56
|
+
mb: "MB"
|
57
|
+
gb: "GB"
|
58
|
+
tb: "TB"
|
59
|
+
|
60
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words().
|
61
|
+
datetime:
|
62
|
+
distance_in_words:
|
63
|
+
half_a_minute: "medio minuto"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "menos de un segundo"
|
66
|
+
other: "menos de %{count} segundos"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 segundo"
|
69
|
+
other: "%{count} segundos"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "menos de un minuto"
|
72
|
+
other: "menos de %{count} minutos"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 minuto"
|
75
|
+
other: "%{count} minutos"
|
76
|
+
about_x_hours:
|
77
|
+
one: "hace 1 hora"
|
78
|
+
other: "hace %{count} horas"
|
79
|
+
x_days:
|
80
|
+
one: "1 día"
|
81
|
+
other: "%{count} días"
|
82
|
+
about_x_months:
|
83
|
+
one: "hace 1 mes"
|
84
|
+
other: "hace %{count} meses"
|
85
|
+
x_months:
|
86
|
+
one: "1 mes"
|
87
|
+
other: "%{count} meses"
|
88
|
+
about_x_years:
|
89
|
+
one: "hace 1 año"
|
90
|
+
other: "hace %{count} años"
|
91
|
+
over_x_years:
|
92
|
+
one: "hace más de 1 año"
|
93
|
+
other: "hace más de %{count} años"
|
94
|
+
almost_x_years:
|
95
|
+
one: "casi 1 año"
|
96
|
+
other: "casi %{count} años"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "1 error impidió que %{model} se guardara"
|
102
|
+
other: "%{count} erroress impidieron que %{model} se guardara"
|
103
|
+
body: "Hay problemas con los siguientes campos:"
|