tennpipes-helper 3.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +20 -0
  3. data/README.rdoc +239 -0
  4. data/Rakefile +1 -0
  5. data/lib/tennpipes-helper.rb +62 -0
  6. data/lib/tennpipes-helper/asset_tag_helpers.rb +394 -0
  7. data/lib/tennpipes-helper/form_builder/abstract_form_builder.rb +279 -0
  8. data/lib/tennpipes-helper/form_builder/standard_form_builder.rb +40 -0
  9. data/lib/tennpipes-helper/form_helpers.rb +639 -0
  10. data/lib/tennpipes-helper/form_helpers/errors.rb +138 -0
  11. data/lib/tennpipes-helper/form_helpers/options.rb +98 -0
  12. data/lib/tennpipes-helper/form_helpers/security.rb +70 -0
  13. data/lib/tennpipes-helper/format_helpers.rb +372 -0
  14. data/lib/tennpipes-helper/locale/cs.yml +103 -0
  15. data/lib/tennpipes-helper/locale/da.yml +91 -0
  16. data/lib/tennpipes-helper/locale/de.yml +81 -0
  17. data/lib/tennpipes-helper/locale/en.yml +103 -0
  18. data/lib/tennpipes-helper/locale/es.yml +103 -0
  19. data/lib/tennpipes-helper/locale/fr.yml +79 -0
  20. data/lib/tennpipes-helper/locale/hu.yml +103 -0
  21. data/lib/tennpipes-helper/locale/it.yml +89 -0
  22. data/lib/tennpipes-helper/locale/ja.yml +103 -0
  23. data/lib/tennpipes-helper/locale/lv.yml +103 -0
  24. data/lib/tennpipes-helper/locale/nl.yml +82 -0
  25. data/lib/tennpipes-helper/locale/no.yml +91 -0
  26. data/lib/tennpipes-helper/locale/pl.yml +95 -0
  27. data/lib/tennpipes-helper/locale/pt_br.yml +103 -0
  28. data/lib/tennpipes-helper/locale/ro.yml +103 -0
  29. data/lib/tennpipes-helper/locale/ru.yml +103 -0
  30. data/lib/tennpipes-helper/locale/sv.yml +103 -0
  31. data/lib/tennpipes-helper/locale/tr.yml +103 -0
  32. data/lib/tennpipes-helper/locale/uk.yml +103 -0
  33. data/lib/tennpipes-helper/locale/zh_cn.yml +103 -0
  34. data/lib/tennpipes-helper/locale/zh_tw.yml +103 -0
  35. data/lib/tennpipes-helper/number_helpers.rb +283 -0
  36. data/lib/tennpipes-helper/output_helpers.rb +226 -0
  37. data/lib/tennpipes-helper/output_helpers/abstract_handler.rb +61 -0
  38. data/lib/tennpipes-helper/output_helpers/erb_handler.rb +27 -0
  39. data/lib/tennpipes-helper/output_helpers/haml_handler.rb +25 -0
  40. data/lib/tennpipes-helper/output_helpers/slim_handler.rb +18 -0
  41. data/lib/tennpipes-helper/render_helpers.rb +63 -0
  42. data/lib/tennpipes-helper/tag_helpers.rb +294 -0
  43. data/lib/tennpipes-helper/translation_helpers.rb +36 -0
  44. data/lib/tennpipes/rendering.rb +369 -0
  45. data/lib/tennpipes/rendering/erb_template.rb +40 -0
  46. data/lib/tennpipes/rendering/erubis_template.rb +66 -0
  47. data/lib/tennpipes/rendering/haml_template.rb +26 -0
  48. data/lib/tennpipes/rendering/slim_template.rb +20 -0
  49. data/test/fixtures/apps/render.rb +25 -0
  50. data/test/fixtures/apps/views/article/comment/show.slim +1 -0
  51. data/test/fixtures/apps/views/blog/post.erb +1 -0
  52. data/test/fixtures/apps/views/layouts/specific.erb +1 -0
  53. data/test/fixtures/apps/views/test/post.erb +1 -0
  54. data/test/fixtures/layouts/layout.erb +1 -0
  55. data/test/fixtures/markup_app/app.rb +87 -0
  56. data/test/fixtures/markup_app/views/button_to.erb +8 -0
  57. data/test/fixtures/markup_app/views/button_to.haml +5 -0
  58. data/test/fixtures/markup_app/views/button_to.slim +6 -0
  59. data/test/fixtures/markup_app/views/capture_concat.erb +14 -0
  60. data/test/fixtures/markup_app/views/capture_concat.haml +12 -0
  61. data/test/fixtures/markup_app/views/capture_concat.slim +12 -0
  62. data/test/fixtures/markup_app/views/content_for.erb +23 -0
  63. data/test/fixtures/markup_app/views/content_for.haml +19 -0
  64. data/test/fixtures/markup_app/views/content_for.slim +19 -0
  65. data/test/fixtures/markup_app/views/content_tag.erb +13 -0
  66. data/test/fixtures/markup_app/views/content_tag.haml +11 -0
  67. data/test/fixtures/markup_app/views/content_tag.slim +11 -0
  68. data/test/fixtures/markup_app/views/current_engine.erb +5 -0
  69. data/test/fixtures/markup_app/views/current_engine.haml +5 -0
  70. data/test/fixtures/markup_app/views/current_engine.slim +5 -0
  71. data/test/fixtures/markup_app/views/fields_for.erb +20 -0
  72. data/test/fixtures/markup_app/views/fields_for.haml +15 -0
  73. data/test/fixtures/markup_app/views/fields_for.slim +15 -0
  74. data/test/fixtures/markup_app/views/form_for.erb +72 -0
  75. data/test/fixtures/markup_app/views/form_for.haml +59 -0
  76. data/test/fixtures/markup_app/views/form_for.slim +59 -0
  77. data/test/fixtures/markup_app/views/form_tag.erb +95 -0
  78. data/test/fixtures/markup_app/views/form_tag.haml +78 -0
  79. data/test/fixtures/markup_app/views/form_tag.slim +79 -0
  80. data/test/fixtures/markup_app/views/link_to.erb +5 -0
  81. data/test/fixtures/markup_app/views/link_to.haml +4 -0
  82. data/test/fixtures/markup_app/views/link_to.slim +4 -0
  83. data/test/fixtures/markup_app/views/mail_to.erb +3 -0
  84. data/test/fixtures/markup_app/views/mail_to.haml +3 -0
  85. data/test/fixtures/markup_app/views/mail_to.slim +3 -0
  86. data/test/fixtures/markup_app/views/meta_tag.erb +3 -0
  87. data/test/fixtures/markup_app/views/meta_tag.haml +3 -0
  88. data/test/fixtures/markup_app/views/meta_tag.slim +3 -0
  89. data/test/fixtures/markup_app/views/partials/_erb.erb +1 -0
  90. data/test/fixtures/markup_app/views/partials/_haml.haml +1 -0
  91. data/test/fixtures/markup_app/views/partials/_slim.slim +1 -0
  92. data/test/fixtures/markup_app/views/simple_partial.erb +1 -0
  93. data/test/fixtures/markup_app/views/simple_partial.haml +1 -0
  94. data/test/fixtures/markup_app/views/simple_partial.slim +1 -0
  95. data/test/fixtures/render_app/app.rb +110 -0
  96. data/test/fixtures/render_app/views/_deep.erb +3 -0
  97. data/test/fixtures/render_app/views/_deep.haml +2 -0
  98. data/test/fixtures/render_app/views/_deep.slim +2 -0
  99. data/test/fixtures/render_app/views/_partial_block_erb.erb +10 -0
  100. data/test/fixtures/render_app/views/_partial_block_haml.haml +7 -0
  101. data/test/fixtures/render_app/views/_partial_block_slim.slim +7 -0
  102. data/test/fixtures/render_app/views/_unsafe.html.builder +2 -0
  103. data/test/fixtures/render_app/views/_unsafe_object.html.builder +2 -0
  104. data/test/fixtures/render_app/views/current_engine.haml +5 -0
  105. data/test/fixtures/render_app/views/current_engines/_erb.erb +1 -0
  106. data/test/fixtures/render_app/views/current_engines/_haml.haml +1 -0
  107. data/test/fixtures/render_app/views/current_engines/_slim.slim +1 -0
  108. data/test/fixtures/render_app/views/dive_inner_erb.erb +3 -0
  109. data/test/fixtures/render_app/views/dive_inner_haml.haml +2 -0
  110. data/test/fixtures/render_app/views/dive_inner_slim.slim +2 -0
  111. data/test/fixtures/render_app/views/dive_outer_erb.erb +3 -0
  112. data/test/fixtures/render_app/views/dive_outer_haml.haml +2 -0
  113. data/test/fixtures/render_app/views/dive_outer_slim.slim +2 -0
  114. data/test/fixtures/render_app/views/double_capture_erb.erb +3 -0
  115. data/test/fixtures/render_app/views/double_capture_haml.haml +2 -0
  116. data/test/fixtures/render_app/views/double_capture_slim.slim +2 -0
  117. data/test/fixtures/render_app/views/erb/test.erb +1 -0
  118. data/test/fixtures/render_app/views/explicit_engine.haml +5 -0
  119. data/test/fixtures/render_app/views/haml/test.haml +1 -0
  120. data/test/fixtures/render_app/views/render_block_erb.erb +5 -0
  121. data/test/fixtures/render_app/views/render_block_haml.haml +4 -0
  122. data/test/fixtures/render_app/views/render_block_slim.slim +4 -0
  123. data/test/fixtures/render_app/views/ruby_block_capture_erb.erb +1 -0
  124. data/test/fixtures/render_app/views/ruby_block_capture_haml.haml +1 -0
  125. data/test/fixtures/render_app/views/ruby_block_capture_slim.slim +1 -0
  126. data/test/fixtures/render_app/views/template/_user.haml +7 -0
  127. data/test/fixtures/render_app/views/template/haml_template.haml +1 -0
  128. data/test/fixtures/render_app/views/template/some_template.haml +2 -0
  129. data/test/fixtures/render_app/views/wrong_capture_erb.erb +3 -0
  130. data/test/fixtures/render_app/views/wrong_capture_haml.haml +2 -0
  131. data/test/fixtures/render_app/views/wrong_capture_slim.slim +2 -0
  132. data/test/helper.rb +88 -0
  133. data/test/test_asset_tag_helpers.rb +401 -0
  134. data/test/test_form_builder.rb +1216 -0
  135. data/test/test_form_helpers.rb +1056 -0
  136. data/test/test_format_helpers.rb +251 -0
  137. data/test/test_helpers.rb +10 -0
  138. data/test/test_locale.rb +20 -0
  139. data/test/test_number_helpers.rb +142 -0
  140. data/test/test_output_helpers.rb +157 -0
  141. data/test/test_render_helpers.rb +225 -0
  142. data/test/test_rendering.rb +706 -0
  143. data/test/test_rendering_extensions.rb +14 -0
  144. data/test/test_tag_helpers.rb +131 -0
  145. metadata +299 -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:"