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,79 @@
1
+ fr:
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: "Octet"
31
+ other: "Octets"
32
+ kb: "Ko"
33
+ mb: "Mo"
34
+ gb: "Go"
35
+ tb: "To"
36
+
37
+ datetime:
38
+ distance_in_words:
39
+ half_a_minute: "une demi minute"
40
+ less_than_x_seconds:
41
+ one: "inférieur à une seconde"
42
+ other: "inférieur à %{count} secondes"
43
+ x_seconds:
44
+ one: "1 seconde"
45
+ other: "%{count} secondes"
46
+ less_than_x_minutes:
47
+ one: "inférieur à 1 minute"
48
+ other: "inférieur à %{count} minutes"
49
+ x_minutes:
50
+ one: "1 minute"
51
+ other: "%{count} minutes"
52
+ about_x_hours:
53
+ one: "environ 1 heure"
54
+ other: "environ %{count} heures"
55
+ x_days:
56
+ one: "1 jour"
57
+ other: "%{count} jours"
58
+ about_x_months:
59
+ one: "environ 1 mois"
60
+ other: "environ %{count} mois"
61
+ x_months:
62
+ one: "1 mois"
63
+ other: "%{count} mois"
64
+ about_x_years:
65
+ one: "environ 1 ans"
66
+ other: "environ %{count} ans"
67
+ over_x_years:
68
+ one: "plus d'un an"
69
+ other: "plus de %{count} ans"
70
+ almost_x_years:
71
+ one: "près d'un an"
72
+ other: "près de %{count} ans"
73
+ models:
74
+ errors:
75
+ template:
76
+ header:
77
+ one: "1 erreur a empêché ce %{model} d'être sauvé"
78
+ other: "%{count} erreurs ont empêché ce %{model} d'être sauvé"
79
+ body: "Il y avait des problèmes avec les champs suivants:"
@@ -0,0 +1,103 @@
1
+ hu:
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: "Ft"
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: "byte"
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: "fél perc"
64
+ less_than_x_seconds:
65
+ one: "kevesebb, mint egy másodperc"
66
+ other: "kevesebb, mint %{count} másodperc"
67
+ x_seconds:
68
+ one: "1 másodperc"
69
+ other: "%{count} másodperc"
70
+ less_than_x_minutes:
71
+ one: "kevesebb, mint egy perc"
72
+ other: "kevesebb, mint %{count} perc"
73
+ x_minutes:
74
+ one: "1 perc"
75
+ other: "%{count} perc"
76
+ about_x_hours:
77
+ one: "nagyjából 1 óra"
78
+ other: "nagyjából %{count} óra"
79
+ x_days:
80
+ one: "1 nap"
81
+ other: "%{count} nap"
82
+ about_x_months:
83
+ one: "nagyjából 1 hónap"
84
+ other: "nagyjából %{count} hónap"
85
+ x_months:
86
+ one: "1 hónap"
87
+ other: "%{count} hónap"
88
+ about_x_years:
89
+ one: "nagyjából 1 év"
90
+ other: "nagyjából %{count} év"
91
+ over_x_years:
92
+ one: "több, mint 1 év"
93
+ other: "több, mint %{count} év"
94
+ almost_x_years:
95
+ one: "majdnem 1 év"
96
+ other: "majdnem %{count} év"
97
+ models:
98
+ errors:
99
+ template:
100
+ header:
101
+ one: "1 hiba akadályozza a(z) %{model} mentését"
102
+ other: "%{count} hiba akadályozza a(z) %{model} mentését"
103
+ body: "A következő mezőkkel van baj:"
@@ -0,0 +1,89 @@
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
+ almost_x_years:
80
+ one: "circa 1 anno"
81
+ other: "circa %{count} anni"
82
+
83
+ models:
84
+ errors:
85
+ template:
86
+ header:
87
+ one: "Non posso salvare questo %{model}: 1 errore"
88
+ other: "Non posso salvare questo %{model}: %{count} errori."
89
+ body: "Per favore ricontrolla i seguenti campi:"
@@ -0,0 +1,103 @@
1
+ ja:
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: "30秒"
64
+ less_than_x_seconds:
65
+ one: "1 秒以内"
66
+ other: "%{count} 秒以内"
67
+ x_seconds:
68
+ one: "1 秒"
69
+ other: "%{count} 秒"
70
+ less_than_x_minutes:
71
+ one: "1 分以内"
72
+ other: "%{count} 分以内"
73
+ x_minutes:
74
+ one: "1 分"
75
+ other: "%{count} 分"
76
+ about_x_hours:
77
+ one: "およそ 1 時間"
78
+ other: "およそ %{count} 時間"
79
+ x_days:
80
+ one: "1 日"
81
+ other: "%{count} 日"
82
+ about_x_months:
83
+ one: "およそ 1 ヶ月"
84
+ other: "およそ %{count} ヶ月"
85
+ x_months:
86
+ one: "1 ヶ月"
87
+ other: "%{count} ヶ月"
88
+ about_x_years:
89
+ one: "およそ 1 年"
90
+ other: "およそ %{count} 年"
91
+ over_x_years:
92
+ one: "1 年以上"
93
+ other: "%{count} 年以上"
94
+ almost_x_years:
95
+ one: "ほぼ 1 年"
96
+ other: "ほぼ %{count} 年"
97
+ models:
98
+ errors:
99
+ template:
100
+ header:
101
+ one: "1 つのエラーにより、 %{model} をセーブできませんでした"
102
+ other: "%{count} つのエラーにより、 %{model} をセーブできませんでした"
103
+ body: "以下のフィールドにエラーが存在します:"
@@ -0,0 +1,103 @@
1
+ lv:
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: "Baits"
54
+ other: "Baiti"
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: "pusminūte"
64
+ less_than_x_seconds:
65
+ one: "mazāk par vienu sekundi"
66
+ other: "mazāk par %{count} sekundēm"
67
+ x_seconds:
68
+ one: "1 sekunde"
69
+ other: "%{count} sekundes"
70
+ less_than_x_minutes:
71
+ one: "mazāk par vienu minūti"
72
+ other: "mazāk par %{count} minūtēm"
73
+ x_minutes:
74
+ one: "1 minūte"
75
+ other: "%{count} minūtes"
76
+ about_x_hours:
77
+ one: "apmēram 1 stunda"
78
+ other: "apmēram %{count} stundas"
79
+ x_days:
80
+ one: "1 diena"
81
+ other: "%{count} dienas"
82
+ about_x_months:
83
+ one: "apmēram 1 mēnesis"
84
+ other: "apmēram %{count} mēneši"
85
+ x_months:
86
+ one: "1 mēnesis"
87
+ other: "%{count} mēneši"
88
+ about_x_years:
89
+ one: "apmēram 1 gads"
90
+ other: "apmēram %{count} gadi"
91
+ over_x_years:
92
+ one: "vairāk kā gads"
93
+ other: "vairāk kā %{count} gadi"
94
+ almost_x_years:
95
+ one: "gandrīz 1 gads"
96
+ other: "gandrīz %{count} gadi"
97
+ models:
98
+ errors:
99
+ template:
100
+ header:
101
+ one: "Dēļ 1 kļūdas šis %{model} netika saglabāts"
102
+ other: "Dēļ %{count} kļūdām šis %{model} netika saglabāts"
103
+ body: "Problēmas ir šajos ievades laukos:"