padrino-helpers-cj 0.12.2

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/.document +5 -0
  3. data/.gitignore +21 -0
  4. data/.yardopts +1 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +239 -0
  7. data/Rakefile +5 -0
  8. data/lib/padrino-helpers.rb +62 -0
  9. data/lib/padrino-helpers/asset_tag_helpers.rb +390 -0
  10. data/lib/padrino-helpers/form_builder/abstract_form_builder.rb +283 -0
  11. data/lib/padrino-helpers/form_builder/deprecated_builder_methods.rb +92 -0
  12. data/lib/padrino-helpers/form_builder/standard_form_builder.rb +40 -0
  13. data/lib/padrino-helpers/form_helpers.rb +633 -0
  14. data/lib/padrino-helpers/form_helpers/errors.rb +138 -0
  15. data/lib/padrino-helpers/form_helpers/options.rb +97 -0
  16. data/lib/padrino-helpers/form_helpers/security.rb +70 -0
  17. data/lib/padrino-helpers/format_helpers.rb +372 -0
  18. data/lib/padrino-helpers/locale/cs.yml +103 -0
  19. data/lib/padrino-helpers/locale/da.yml +91 -0
  20. data/lib/padrino-helpers/locale/de.yml +81 -0
  21. data/lib/padrino-helpers/locale/en.yml +103 -0
  22. data/lib/padrino-helpers/locale/es.yml +103 -0
  23. data/lib/padrino-helpers/locale/fr.yml +79 -0
  24. data/lib/padrino-helpers/locale/hu.yml +103 -0
  25. data/lib/padrino-helpers/locale/it.yml +89 -0
  26. data/lib/padrino-helpers/locale/ja.yml +103 -0
  27. data/lib/padrino-helpers/locale/lv.yml +103 -0
  28. data/lib/padrino-helpers/locale/nl.yml +82 -0
  29. data/lib/padrino-helpers/locale/no.yml +91 -0
  30. data/lib/padrino-helpers/locale/pl.yml +95 -0
  31. data/lib/padrino-helpers/locale/pt_br.yml +103 -0
  32. data/lib/padrino-helpers/locale/ro.yml +103 -0
  33. data/lib/padrino-helpers/locale/ru.yml +103 -0
  34. data/lib/padrino-helpers/locale/sv.yml +103 -0
  35. data/lib/padrino-helpers/locale/tr.yml +103 -0
  36. data/lib/padrino-helpers/locale/uk.yml +103 -0
  37. data/lib/padrino-helpers/locale/zh_cn.yml +103 -0
  38. data/lib/padrino-helpers/locale/zh_tw.yml +103 -0
  39. data/lib/padrino-helpers/number_helpers.rb +283 -0
  40. data/lib/padrino-helpers/output_helpers.rb +226 -0
  41. data/lib/padrino-helpers/output_helpers/abstract_handler.rb +61 -0
  42. data/lib/padrino-helpers/output_helpers/erb_handler.rb +27 -0
  43. data/lib/padrino-helpers/output_helpers/haml_handler.rb +25 -0
  44. data/lib/padrino-helpers/output_helpers/slim_handler.rb +18 -0
  45. data/lib/padrino-helpers/render_helpers.rb +63 -0
  46. data/lib/padrino-helpers/tag_helpers.rb +294 -0
  47. data/lib/padrino-helpers/translation_helpers.rb +36 -0
  48. data/lib/padrino/rendering.rb +397 -0
  49. data/lib/padrino/rendering/erubis_template.rb +66 -0
  50. data/lib/padrino/rendering/haml_template.rb +26 -0
  51. data/lib/padrino/rendering/slim_template.rb +20 -0
  52. data/padrino-helpers.gemspec +29 -0
  53. data/test/fixtures/apps/.components +6 -0
  54. data/test/fixtures/apps/.gitignore +7 -0
  55. data/test/fixtures/apps/render.rb +25 -0
  56. data/test/fixtures/apps/views/article/comment/show.slim +1 -0
  57. data/test/fixtures/apps/views/blog/post.erb +1 -0
  58. data/test/fixtures/apps/views/layouts/specific.erb +1 -0
  59. data/test/fixtures/apps/views/test/post.erb +1 -0
  60. data/test/fixtures/layouts/layout.erb +1 -0
  61. data/test/fixtures/markup_app/app.rb +87 -0
  62. data/test/fixtures/markup_app/views/button_to.erb +8 -0
  63. data/test/fixtures/markup_app/views/button_to.haml +5 -0
  64. data/test/fixtures/markup_app/views/button_to.slim +6 -0
  65. data/test/fixtures/markup_app/views/capture_concat.erb +14 -0
  66. data/test/fixtures/markup_app/views/capture_concat.haml +12 -0
  67. data/test/fixtures/markup_app/views/capture_concat.slim +12 -0
  68. data/test/fixtures/markup_app/views/content_for.erb +23 -0
  69. data/test/fixtures/markup_app/views/content_for.haml +19 -0
  70. data/test/fixtures/markup_app/views/content_for.slim +19 -0
  71. data/test/fixtures/markup_app/views/content_tag.erb +13 -0
  72. data/test/fixtures/markup_app/views/content_tag.haml +11 -0
  73. data/test/fixtures/markup_app/views/content_tag.slim +11 -0
  74. data/test/fixtures/markup_app/views/current_engine.erb +5 -0
  75. data/test/fixtures/markup_app/views/current_engine.haml +5 -0
  76. data/test/fixtures/markup_app/views/current_engine.slim +5 -0
  77. data/test/fixtures/markup_app/views/fields_for.erb +20 -0
  78. data/test/fixtures/markup_app/views/fields_for.haml +15 -0
  79. data/test/fixtures/markup_app/views/fields_for.slim +15 -0
  80. data/test/fixtures/markup_app/views/form_for.erb +72 -0
  81. data/test/fixtures/markup_app/views/form_for.haml +59 -0
  82. data/test/fixtures/markup_app/views/form_for.slim +59 -0
  83. data/test/fixtures/markup_app/views/form_tag.erb +95 -0
  84. data/test/fixtures/markup_app/views/form_tag.haml +78 -0
  85. data/test/fixtures/markup_app/views/form_tag.slim +79 -0
  86. data/test/fixtures/markup_app/views/link_to.erb +5 -0
  87. data/test/fixtures/markup_app/views/link_to.haml +4 -0
  88. data/test/fixtures/markup_app/views/link_to.slim +4 -0
  89. data/test/fixtures/markup_app/views/mail_to.erb +3 -0
  90. data/test/fixtures/markup_app/views/mail_to.haml +3 -0
  91. data/test/fixtures/markup_app/views/mail_to.slim +3 -0
  92. data/test/fixtures/markup_app/views/meta_tag.erb +3 -0
  93. data/test/fixtures/markup_app/views/meta_tag.haml +3 -0
  94. data/test/fixtures/markup_app/views/meta_tag.slim +3 -0
  95. data/test/fixtures/markup_app/views/partials/_erb.erb +1 -0
  96. data/test/fixtures/markup_app/views/partials/_haml.haml +1 -0
  97. data/test/fixtures/markup_app/views/partials/_slim.slim +1 -0
  98. data/test/fixtures/markup_app/views/simple_partial.erb +1 -0
  99. data/test/fixtures/markup_app/views/simple_partial.haml +1 -0
  100. data/test/fixtures/markup_app/views/simple_partial.slim +1 -0
  101. data/test/fixtures/render_app/app.rb +94 -0
  102. data/test/fixtures/render_app/views/_deep.erb +3 -0
  103. data/test/fixtures/render_app/views/_deep.haml +2 -0
  104. data/test/fixtures/render_app/views/_deep.slim +2 -0
  105. data/test/fixtures/render_app/views/_partial_block_erb.erb +10 -0
  106. data/test/fixtures/render_app/views/_partial_block_haml.haml +7 -0
  107. data/test/fixtures/render_app/views/_partial_block_slim.slim +7 -0
  108. data/test/fixtures/render_app/views/_unsafe.html.builder +2 -0
  109. data/test/fixtures/render_app/views/_unsafe_object.html.builder +2 -0
  110. data/test/fixtures/render_app/views/current_engine.haml +5 -0
  111. data/test/fixtures/render_app/views/current_engines/_erb.erb +1 -0
  112. data/test/fixtures/render_app/views/current_engines/_haml.haml +1 -0
  113. data/test/fixtures/render_app/views/current_engines/_slim.slim +1 -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 +131 -0
  133. data/test/test_asset_tag_helpers.rb +406 -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 +215 -0
  142. data/test/test_rendering.rb +694 -0
  143. data/test/test_rendering_extensions.rb +14 -0
  144. data/test/test_tag_helpers.rb +131 -0
  145. metadata +241 -0
@@ -0,0 +1,82 @@
1
+ nl:
2
+ number:
3
+ format:
4
+ precision: 2
5
+ separator: ','
6
+ delimiter: '.'
7
+ currency:
8
+ format:
9
+ unit: '€'
10
+ format: '%u %n'
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: "een halve minuut"
40
+ less_than_x_seconds:
41
+ one: "minder dan \xC3\xA9\xC3\xA9n seconde"
42
+ other: "minder dan %{count} seconden"
43
+ x_seconds:
44
+ one: "1 seconde"
45
+ other: "%{count} seconden"
46
+ less_than_x_minutes:
47
+ one: "minder dan \xC3\xA9\xC3\xA9n minuut"
48
+ other: "minder dan %{count} minuten"
49
+ x_minutes:
50
+ one: "1 minuut"
51
+ other: "%{count} minuten"
52
+ about_x_hours:
53
+ one: "ongeveer \xC3\xA9\xC3\xA9n uur"
54
+ other: "ongeveer %{count} uur"
55
+ x_days:
56
+ one: "1 dag"
57
+ other: "%{count} dagen"
58
+ about_x_months:
59
+ one: "ongeveer \xC3\xA9\xC3\xA9n maand"
60
+ other: "ongeveer %{count} maanden"
61
+ x_months:
62
+ one: "1 maand"
63
+ other: "%{count} maanden"
64
+ about_x_years:
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"
73
+ over_x_years:
74
+ one: 'meer dan 1 jaar'
75
+ other: 'meer dan %{count} jaar'
76
+ models:
77
+ errors:
78
+ template:
79
+ header:
80
+ one: "1 fout verhindert het opslaan van dit %{model} object"
81
+ other: "%{count} fouten verhinderen het opslaan van dit %{model} object"
82
+ body: "Controleer alstublieft de volgende velden:"
@@ -0,0 +1,91 @@
1
+ "no":
2
+ number:
3
+ format:
4
+ separator: ","
5
+ delimiter: "."
6
+ precision: 3
7
+ currency:
8
+ format:
9
+ format: "%u %n"
10
+ unit: "NOK"
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 minutt"
45
+ less_than_x_seconds:
46
+ one: "mindre enn et sekund"
47
+ other: "mindre enn %{count} sekunder"
48
+ x_seconds:
49
+ one: "ett sekund"
50
+ other: "%{count} sekunder"
51
+ less_than_x_minutes:
52
+ one: "mindre enn et minutt"
53
+ other: "mindre enn %{count} minutter"
54
+ x_minutes:
55
+ one: "ett minutt"
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} dager"
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: "mer enn ett år"
74
+ other: "mer enn %{count} år"
75
+ almost_x_years:
76
+ one: "nesten et år"
77
+ other: "nesten %{count} år"
78
+ prompts:
79
+ second: "Sekund"
80
+ minute: "Minutt"
81
+ hour: "Time"
82
+ day: "Dag"
83
+ month: "Måned"
84
+ year: "År"
85
+ models:
86
+ errors:
87
+ template:
88
+ header:
89
+ one: "En feil forhindrer %{model} å bli lagret"
90
+ other: "%{count} feil forhindrer denne %{model} i å bli lagret"
91
+ body: "Det er problemer med følgende felter:"
@@ -0,0 +1,95 @@
1
+ pl:
2
+ number:
3
+ # Used in number_with_delimiter().
4
+ # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'.
5
+ format:
6
+ separator: ","
7
+ delimiter: " "
8
+ precision: 2
9
+
10
+ # Used in number_to_currency().
11
+ currency:
12
+ format:
13
+ format: "%n %u"
14
+ unit: "PLN"
15
+ separator: ","
16
+ delimiter: " "
17
+ precision: 2
18
+
19
+ # Used in number_to_percentage().
20
+ percentage:
21
+ format:
22
+ delimiter: ""
23
+
24
+ # Used in number_to_precision().
25
+ precision:
26
+ format:
27
+ delimiter: ""
28
+
29
+ # Used in number_to_human_size().
30
+ human:
31
+ format:
32
+ delimiter: ""
33
+ precision: 1
34
+ storage_units:
35
+ format: "%n %u"
36
+ units:
37
+ byte:
38
+ one: "bajt"
39
+ other: "bajty"
40
+ kb: "KB"
41
+ mb: "MB"
42
+ gb: "GB"
43
+ tb: "TB"
44
+
45
+ # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words().
46
+ datetime:
47
+ distance_in_words:
48
+ half_a_minute: "pół minuty"
49
+ less_than_x_seconds:
50
+ one: "mniej niż sekundę"
51
+ few: "mniej niż %{count} sekundy"
52
+ other: "mniej niż %{count} sekund"
53
+ x_seconds:
54
+ one: "sekundę"
55
+ few: "%{count} sekundy"
56
+ other: "%{count} sekund"
57
+ less_than_x_minutes:
58
+ one: "mniej niż minutę"
59
+ few: "mniej niż %{count} minuty"
60
+ other: "mniej niż %{count} minut"
61
+ x_minutes:
62
+ one: "minutę"
63
+ few: "%{count} minuty"
64
+ other: "%{count} minut"
65
+ about_x_hours:
66
+ one: "około godziny"
67
+ other: "około %{count} godzin"
68
+ x_days:
69
+ one: "1 dzień"
70
+ other: "%{count} dni"
71
+ about_x_months:
72
+ one: "około miesiąca"
73
+ other: "około %{count} miesięcy"
74
+ x_months:
75
+ one: "1 miesiąc"
76
+ few: "%{count} miesiące"
77
+ other: "%{count} miesięcy"
78
+ about_x_years:
79
+ one: "około roku"
80
+ other: "około %{count} lat"
81
+ almost_x_years:
82
+ one: "prawie rok"
83
+ few: "prawie %{count} lata"
84
+ other: "prawie %{count} lat"
85
+ over_x_years:
86
+ one: "ponad rok"
87
+ few: "ponad %{count} lata"
88
+ other: "ponad %{count} lat"
89
+ models:
90
+ errors:
91
+ template:
92
+ header:
93
+ one: "%{model} nie został zachowany z powodu jednego błędu"
94
+ other: "%{model} nie został zachowany z powodu %{count} błędów"
95
+ body: "Błędy dotyczą następujących pól:"
@@ -0,0 +1,103 @@
1
+ pt_br:
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: 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: "R$"
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: "meio minuto"
64
+ less_than_x_seconds:
65
+ one: "menos de 1 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 1 minuto"
72
+ other: "menos de %{count} minutos"
73
+ x_minutes:
74
+ one: "1 minuto"
75
+ other: "%{count} minutos"
76
+ about_x_hours:
77
+ one: "cerca de 1 hora"
78
+ other: "cerca de %{count} horas"
79
+ x_days:
80
+ one: "1 dia"
81
+ other: "%{count} dias"
82
+ about_x_months:
83
+ one: "cerca de 1 mês"
84
+ other: "cerca de %{count} meses"
85
+ x_months:
86
+ one: "1 mês"
87
+ other: "%{count} meses"
88
+ about_x_years:
89
+ one: "cerca de 1 ano"
90
+ other: "cerca de %{count} anos"
91
+ over_x_years:
92
+ one: "mais de 1 ano"
93
+ other: "mais de %{count} anos"
94
+ almost_x_years:
95
+ one: "quase 1 ano"
96
+ other: "quase %{count} anos"
97
+ models:
98
+ errors:
99
+ template:
100
+ header:
101
+ one: "Não posso salvar %{model}: 1 erro"
102
+ other: "Não posso salvar %{model}: %{count} erros."
103
+ body: "Por favor, verifique novamente os seguintes campos:"
@@ -0,0 +1,103 @@
1
+ ro:
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: 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: "%n %u"
18
+ unit: "lei"
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: "jumătate de minut"
64
+ less_than_x_seconds:
65
+ one: "mai puțin de o secundă"
66
+ other: "mai puțin de %{count} secunde"
67
+ x_seconds:
68
+ one: "o secundă"
69
+ other: "%{count} secunde"
70
+ less_than_x_minutes:
71
+ one: "mai puțin de un minut"
72
+ other: "mai puțin de %{count} minute"
73
+ x_minutes:
74
+ one: "un minut"
75
+ other: "%{count} minute"
76
+ about_x_hours:
77
+ one: "aproximativ o oră"
78
+ other: "aproximativ %{count} ore"
79
+ x_days:
80
+ one: "o zi"
81
+ other: "%{count} zile"
82
+ about_x_months:
83
+ one: "aproximativ o lună"
84
+ other: "aproximativ %{count} luni"
85
+ x_months:
86
+ one: "o lună"
87
+ other: "%{count} luni"
88
+ about_x_years:
89
+ one: "aproximativ un an"
90
+ other: "aproximativ %{count} ani"
91
+ over_x_years:
92
+ one: "peste un an"
93
+ other: "peste %{count} ani"
94
+ almost_x_years:
95
+ one: "aproape un an"
96
+ other: "aproape %{count} ani"
97
+ models:
98
+ errors:
99
+ template:
100
+ header:
101
+ one: "Nu s-a putut salva %{model}, a avut loc o eroare."
102
+ other: "Nu s-a putut salva %{model}, au avut loc %{count} erori."
103
+ body: "Există probleme cu următoarele câmpuri:"