padrino-helpers 0.9.21 → 0.9.22

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Padrino
1
+ Copyright (c) 2011 Padrino
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -235,4 +235,4 @@ For more information on using the render and partial helpers, check out the guid
235
235
 
236
236
  == Copyright
237
237
 
238
- Copyright (c) 2010 Padrino. See LICENSE for details.
238
+ Copyright (c) 2011 Padrino. See LICENSE for details.
@@ -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
+ 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
+ # 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: "元"
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: "半分钟"
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: "有1 个错误发生使得「%{model}」无法被储存。 "
102
+ other: "有%{count} 个错误发生使得「%{model}」无法被储存。 "
103
+ body: "以下栏位发生问题:
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 21
10
- version: 0.9.21
9
+ - 22
10
+ version: 0.9.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Padrino Team
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-02-28 00:00:00 -08:00
21
+ date: 2011-03-04 00:00:00 -08:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -29,12 +29,12 @@ dependencies:
29
29
  requirements:
30
30
  - - "="
31
31
  - !ruby/object:Gem::Version
32
- hash: 17
32
+ hash: 23
33
33
  segments:
34
34
  - 0
35
35
  - 9
36
- - 21
37
- version: 0.9.21
36
+ - 22
37
+ version: 0.9.22
38
38
  type: :runtime
39
39
  version_requirements: *id001
40
40
  - !ruby/object:Gem::Dependency
@@ -81,6 +81,7 @@ files:
81
81
  - lib/padrino-helpers/locale/es.yml
82
82
  - lib/padrino-helpers/locale/fr.yml
83
83
  - lib/padrino-helpers/locale/it.yml
84
+ - lib/padrino-helpers/locale/ja.yml
84
85
  - lib/padrino-helpers/locale/nl.yml
85
86
  - lib/padrino-helpers/locale/no.yml
86
87
  - lib/padrino-helpers/locale/pl.yml
@@ -88,6 +89,7 @@ files:
88
89
  - lib/padrino-helpers/locale/ru.yml
89
90
  - lib/padrino-helpers/locale/tr.yml
90
91
  - lib/padrino-helpers/locale/uk.yml
92
+ - lib/padrino-helpers/locale/zh_cn.yml
91
93
  - lib/padrino-helpers/locale/zh_tw.yml
92
94
  - lib/padrino-helpers/number_helpers.rb
93
95
  - lib/padrino-helpers/output_helpers/abstract_handler.rb
@@ -165,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
167
  requirements: []
166
168
 
167
169
  rubyforge_project: padrino-helpers
168
- rubygems_version: 1.5.2
170
+ rubygems_version: 1.6.0
169
171
  signing_key:
170
172
  specification_version: 3
171
173
  summary: Helpers for padrino