tennpipes-helper 3.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +239 -0
- data/Rakefile +1 -0
- data/lib/tennpipes-helper.rb +62 -0
- data/lib/tennpipes-helper/asset_tag_helpers.rb +394 -0
- data/lib/tennpipes-helper/form_builder/abstract_form_builder.rb +279 -0
- data/lib/tennpipes-helper/form_builder/standard_form_builder.rb +40 -0
- data/lib/tennpipes-helper/form_helpers.rb +639 -0
- data/lib/tennpipes-helper/form_helpers/errors.rb +138 -0
- data/lib/tennpipes-helper/form_helpers/options.rb +98 -0
- data/lib/tennpipes-helper/form_helpers/security.rb +70 -0
- data/lib/tennpipes-helper/format_helpers.rb +372 -0
- data/lib/tennpipes-helper/locale/cs.yml +103 -0
- data/lib/tennpipes-helper/locale/da.yml +91 -0
- data/lib/tennpipes-helper/locale/de.yml +81 -0
- data/lib/tennpipes-helper/locale/en.yml +103 -0
- data/lib/tennpipes-helper/locale/es.yml +103 -0
- data/lib/tennpipes-helper/locale/fr.yml +79 -0
- data/lib/tennpipes-helper/locale/hu.yml +103 -0
- data/lib/tennpipes-helper/locale/it.yml +89 -0
- data/lib/tennpipes-helper/locale/ja.yml +103 -0
- data/lib/tennpipes-helper/locale/lv.yml +103 -0
- data/lib/tennpipes-helper/locale/nl.yml +82 -0
- data/lib/tennpipes-helper/locale/no.yml +91 -0
- data/lib/tennpipes-helper/locale/pl.yml +95 -0
- data/lib/tennpipes-helper/locale/pt_br.yml +103 -0
- data/lib/tennpipes-helper/locale/ro.yml +103 -0
- data/lib/tennpipes-helper/locale/ru.yml +103 -0
- data/lib/tennpipes-helper/locale/sv.yml +103 -0
- data/lib/tennpipes-helper/locale/tr.yml +103 -0
- data/lib/tennpipes-helper/locale/uk.yml +103 -0
- data/lib/tennpipes-helper/locale/zh_cn.yml +103 -0
- data/lib/tennpipes-helper/locale/zh_tw.yml +103 -0
- data/lib/tennpipes-helper/number_helpers.rb +283 -0
- data/lib/tennpipes-helper/output_helpers.rb +226 -0
- data/lib/tennpipes-helper/output_helpers/abstract_handler.rb +61 -0
- data/lib/tennpipes-helper/output_helpers/erb_handler.rb +27 -0
- data/lib/tennpipes-helper/output_helpers/haml_handler.rb +25 -0
- data/lib/tennpipes-helper/output_helpers/slim_handler.rb +18 -0
- data/lib/tennpipes-helper/render_helpers.rb +63 -0
- data/lib/tennpipes-helper/tag_helpers.rb +294 -0
- data/lib/tennpipes-helper/translation_helpers.rb +36 -0
- data/lib/tennpipes/rendering.rb +369 -0
- data/lib/tennpipes/rendering/erb_template.rb +40 -0
- data/lib/tennpipes/rendering/erubis_template.rb +66 -0
- data/lib/tennpipes/rendering/haml_template.rb +26 -0
- data/lib/tennpipes/rendering/slim_template.rb +20 -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 +110 -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/dive_inner_erb.erb +3 -0
- data/test/fixtures/render_app/views/dive_inner_haml.haml +2 -0
- data/test/fixtures/render_app/views/dive_inner_slim.slim +2 -0
- data/test/fixtures/render_app/views/dive_outer_erb.erb +3 -0
- data/test/fixtures/render_app/views/dive_outer_haml.haml +2 -0
- data/test/fixtures/render_app/views/dive_outer_slim.slim +2 -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 +88 -0
- data/test/test_asset_tag_helpers.rb +401 -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 +225 -0
- data/test/test_rendering.rb +706 -0
- data/test/test_rendering_extensions.rb +14 -0
- data/test/test_tag_helpers.rb +131 -0
- metadata +299 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
ru:
|
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: "%n %u"
|
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: "Байт"
|
54
|
+
other: "Байт"
|
55
|
+
kb: "Кб"
|
56
|
+
mb: "Мб"
|
57
|
+
gb: "Гб"
|
58
|
+
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: "пол минуты"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "менее секунды"
|
66
|
+
other: "менее %{count} секунд"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 секунда"
|
69
|
+
other: "%{count} секунд"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "менее минуты"
|
72
|
+
other: "менее %{count} минут"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 минута"
|
75
|
+
other: "%{count} минут"
|
76
|
+
about_x_hours:
|
77
|
+
one: "около часа"
|
78
|
+
other: "около %{count} часов"
|
79
|
+
x_days:
|
80
|
+
one: "1 день"
|
81
|
+
other: "%{count} дней"
|
82
|
+
about_x_months:
|
83
|
+
one: "около месяца"
|
84
|
+
other: "около %{count} месяцев"
|
85
|
+
x_months:
|
86
|
+
one: "1 месяц"
|
87
|
+
other: "%{count} месяцев"
|
88
|
+
about_x_years:
|
89
|
+
one: "около года"
|
90
|
+
other: "около %{count} лет"
|
91
|
+
over_x_years:
|
92
|
+
one: "более года"
|
93
|
+
other: "более %{count} лет"
|
94
|
+
almost_x_years:
|
95
|
+
one: "почти год"
|
96
|
+
other: "почти %{count} года"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "Данные «%{model}» не могут быть сохранены из-за 1 ошибки"
|
102
|
+
other: "Данные «%{model}» не могут быть сохранены из-за %{count} ошибок"
|
103
|
+
body: "Допущены ошибки в следующих полях:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
sv:
|
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: "kr"
|
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: "en halv minut"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "mindre än 1 sekund"
|
66
|
+
other: "mindre än %{count} sekunder"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 sekund"
|
69
|
+
other: "%{count} sekunder"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "mindre än en minut"
|
72
|
+
other: "mindre än %{count} minuter"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 minut"
|
75
|
+
other: "%{count} minuter"
|
76
|
+
about_x_hours:
|
77
|
+
one: "cirka 1 timme"
|
78
|
+
other: "cirka %{count} timmar"
|
79
|
+
x_days:
|
80
|
+
one: "1 dag"
|
81
|
+
other: "%{count} dagar"
|
82
|
+
about_x_months:
|
83
|
+
one: "cirka 1 månad"
|
84
|
+
other: "cirka %{count} månader"
|
85
|
+
x_months:
|
86
|
+
one: "1 månad"
|
87
|
+
other: "%{count} månader"
|
88
|
+
about_x_years:
|
89
|
+
one: "cirka 1 år"
|
90
|
+
other: "cirka %{count} år"
|
91
|
+
over_x_years:
|
92
|
+
one: "över 1 år"
|
93
|
+
other: "över %{count} år"
|
94
|
+
almost_x_years:
|
95
|
+
one: "nästan 1 år"
|
96
|
+
other: "nästan %{count} år"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "1 fel hindrade denna %{model} från att sparas"
|
102
|
+
other: "%{count} fel hindrade denna %{model} från att sparas"
|
103
|
+
body: "Följande fält innehåller fel:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
tr:
|
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: "TL"
|
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 saniye"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "1 saniyeden az"
|
66
|
+
other: "%{count} saniyeden az"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 saniye"
|
69
|
+
other: "%{count} saniye"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "bir dakikadan az"
|
72
|
+
other: "%{count} dakikadan az"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 dakika"
|
75
|
+
other: "%{count} dakika"
|
76
|
+
about_x_hours:
|
77
|
+
one: "yaklaşık 1 saat"
|
78
|
+
other: "yaklaşık %{count} saat"
|
79
|
+
x_days:
|
80
|
+
one: "1 gün"
|
81
|
+
other: "%{count} gün"
|
82
|
+
about_x_months:
|
83
|
+
one: "yaklaşık 1 ay"
|
84
|
+
other: "yaklaşık %{count} ay"
|
85
|
+
x_months:
|
86
|
+
one: "1 ay"
|
87
|
+
other: "%{count} ay"
|
88
|
+
about_x_years:
|
89
|
+
one: "yaklaşık 1 yıl"
|
90
|
+
other: "yaklaşık %{count} yıl"
|
91
|
+
over_x_years:
|
92
|
+
one: "1 yıldan fazla"
|
93
|
+
other: "%{count} yıldan fazla"
|
94
|
+
almost_x_years:
|
95
|
+
one: "neredeyse 1 yıl"
|
96
|
+
other: "neredeyse %{count} yıl"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "1 hata oluştu; %{model} kaydedilemedi"
|
102
|
+
other: "%{count} hata oluştu; %{model} kaydedilemedi"
|
103
|
+
body: "Hata oluşan alanlar:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
uk:
|
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: "грн"
|
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: "Байт"
|
54
|
+
other: "Байт"
|
55
|
+
kb: "Кб"
|
56
|
+
mb: "Мб"
|
57
|
+
gb: "Гб"
|
58
|
+
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: "півхвилини"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "менше секунди"
|
66
|
+
other: "менше %{count} секунд"
|
67
|
+
x_seconds:
|
68
|
+
one: "1 секунда"
|
69
|
+
other: "%{count} секунд"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "менше хвилини"
|
72
|
+
other: "менше %{count} хвилин"
|
73
|
+
x_minutes:
|
74
|
+
one: "1 хвилина"
|
75
|
+
other: "%{count} хвилин"
|
76
|
+
about_x_hours:
|
77
|
+
one: "близько години"
|
78
|
+
other: "близько %{count} годин"
|
79
|
+
x_days:
|
80
|
+
one: "1 день"
|
81
|
+
other: "%{count} днів"
|
82
|
+
about_x_months:
|
83
|
+
one: "близько місяця"
|
84
|
+
other: "близько %{count} місяців"
|
85
|
+
x_months:
|
86
|
+
one: "1 місяць"
|
87
|
+
other: "%{count} месяців"
|
88
|
+
about_x_years:
|
89
|
+
one: "близько року"
|
90
|
+
other: "близько %{count} років"
|
91
|
+
over_x_years:
|
92
|
+
one: "більше року"
|
93
|
+
other: "більше %{count} років"
|
94
|
+
almost_x_years:
|
95
|
+
one: "майже рік"
|
96
|
+
other: "майжу %{count} роки"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "Дані «%{model}» не можуть бути збережені через 1 помилки"
|
102
|
+
other: "Дані «%{model}» не можуть бути збережені через %{count} помилок"
|
103
|
+
body: "Допущені помилки в наступних полях:"
|
@@ -0,0 +1,103 @@
|
|
1
|
+
zh_cn:
|
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: "RMB"
|
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: "字节"
|
54
|
+
other: "字节"
|
55
|
+
kb: "K"
|
56
|
+
mb: "兆"
|
57
|
+
gb: "G"
|
58
|
+
tb: "T"
|
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: "半分钟"
|
64
|
+
less_than_x_seconds:
|
65
|
+
one: "不到一秒"
|
66
|
+
other: "不到 %{count} 秒"
|
67
|
+
x_seconds:
|
68
|
+
one: "一秒"
|
69
|
+
other: "%{count} 秒"
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: "不到一分钟"
|
72
|
+
other: "不到 %{count} 分钟"
|
73
|
+
x_minutes:
|
74
|
+
one: "一分钟"
|
75
|
+
other: "%{count} 分钟"
|
76
|
+
about_x_hours:
|
77
|
+
one: "大约一小时"
|
78
|
+
other: "大约 %{count} 小时"
|
79
|
+
x_days:
|
80
|
+
one: "一天"
|
81
|
+
other: "%{count} 天"
|
82
|
+
about_x_months:
|
83
|
+
one: "大约一个月"
|
84
|
+
other: "大约 %{count} 个月"
|
85
|
+
x_months:
|
86
|
+
one: "一个月"
|
87
|
+
other: "%{count} 个月"
|
88
|
+
about_x_years:
|
89
|
+
one: "大约一年"
|
90
|
+
other: "大约 %{count} 年"
|
91
|
+
over_x_years:
|
92
|
+
one: "一年多"
|
93
|
+
other: "%{count} 年多"
|
94
|
+
almost_x_years:
|
95
|
+
one: "已经一年"
|
96
|
+
other: "已经 %{count} 年"
|
97
|
+
models:
|
98
|
+
errors:
|
99
|
+
template:
|
100
|
+
header:
|
101
|
+
one: "%{model} 保存时产生错误"
|
102
|
+
other: "%{model} 保存时产生了 %{count} 个错误"
|
103
|
+
body: "下列字段产生错误:"
|