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,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:"
|