decidim-sortitions 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/decidim/sortitions/{sortition_widgets_controller.rb → widgets_controller.rb} +2 -2
- data/app/models/decidim/sortitions/sortition.rb +3 -0
- data/app/services/decidim/sortitions/sortition_search.rb +1 -18
- data/app/views/decidim/sortitions/sortitions/show.html.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/bg.yml +7 -0
- data/config/locales/ca.yml +1 -0
- data/config/locales/cs.yml +61 -60
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +1 -0
- data/config/locales/es-PY.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +1 -0
- data/config/locales/fi.yml +1 -0
- data/config/locales/fr-CA.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/is.yml +122 -0
- data/config/locales/it.yml +1 -0
- data/config/locales/ja-JP.yml +1 -0
- data/config/locales/ja.yml +147 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/{lv-LV.yml → lv.yml} +0 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +76 -75
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro-RO.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +147 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200827154036_add_commentable_counter_cache_to_sortitions.rb +9 -0
- data/lib/decidim/sortitions/component.rb +1 -0
- data/lib/decidim/sortitions/engine.rb +1 -1
- data/lib/decidim/sortitions/version.rb +1 -1
- metadata +36 -16
data/config/locales/sv.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
ti:
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1,147 @@
|
|
1
|
+
zh-CN:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
sortition:
|
5
|
+
additional_info: 排序信息
|
6
|
+
decidim_category_id: 您想要应用绘图的一组建议的类别
|
7
|
+
decidim_proposals_component_id: 提案集
|
8
|
+
dice: 死亡登记的结果。 旋转一个6边的死亡或寻找另一个随机的方法生成一个从1到6之间的数字。 然后在这里当着一些证人的面输入由此产生的号码。 这有助于提高结果的质量并保证结果的随机性
|
9
|
+
target_items: 要选择的建议数量 (表示您想要选择的建议的数量,您先前选择的建议群组)
|
10
|
+
title: 标题
|
11
|
+
witnesses: 证人
|
12
|
+
models:
|
13
|
+
decidim/sortitions/create_sortition_event: 排序方式
|
14
|
+
activerecord:
|
15
|
+
models:
|
16
|
+
decidim/sortitions/sortition:
|
17
|
+
other: 联谊会
|
18
|
+
decidim:
|
19
|
+
components:
|
20
|
+
sortitions:
|
21
|
+
name: 联谊会
|
22
|
+
settings:
|
23
|
+
global:
|
24
|
+
comments_enabled: 评论已启用
|
25
|
+
comments_max_length: 评论最大长度 (默认值留0)
|
26
|
+
events:
|
27
|
+
sortitions:
|
28
|
+
sortition_created:
|
29
|
+
email_intro: 对不起,%{resource_title}" 已添加到您关注的"%{participatory_space_title}"。
|
30
|
+
email_outro: 您收到此通知是因为您正在关注 "%{participatory_space_title}"。您可以从上一个链接取消关注它。
|
31
|
+
email_subject: 新的排序添加到 %{participatory_space_title}
|
32
|
+
notification_title: 吸附 <a href="%{resource_path}">%{resource_title}</a> 已被添加到 %{participatory_space_title}
|
33
|
+
pages:
|
34
|
+
home:
|
35
|
+
statistics:
|
36
|
+
sortitions_count: 联谊会
|
37
|
+
participatory_processes:
|
38
|
+
statistics:
|
39
|
+
sortitions_count: 联谊会
|
40
|
+
sortitions:
|
41
|
+
admin:
|
42
|
+
actions:
|
43
|
+
destroy: 取消排序方式
|
44
|
+
edit: 编辑
|
45
|
+
new: 新的排序方式
|
46
|
+
show: 排序详情
|
47
|
+
models:
|
48
|
+
sortition:
|
49
|
+
fields:
|
50
|
+
category: 类别
|
51
|
+
created_at: 创建日期
|
52
|
+
decidim_proposals_component: 二. 提议的构成部分
|
53
|
+
dice: 爱好
|
54
|
+
reference: 参考
|
55
|
+
request_timestamp: 绘制时间
|
56
|
+
seed: 种子
|
57
|
+
target_items: 要选择的项目
|
58
|
+
title: 标题
|
59
|
+
name:
|
60
|
+
other: 联谊会
|
61
|
+
sortitions:
|
62
|
+
confirm_destroy:
|
63
|
+
confirm_destroy: 您确定要取消这个分类吗?
|
64
|
+
destroy: 取消排序方式
|
65
|
+
title: 取消吸附性
|
66
|
+
create:
|
67
|
+
error: 出现了一个问题,造成了新的怨恨。
|
68
|
+
success: 排序成功创建
|
69
|
+
destroy:
|
70
|
+
error: 不能取消排序。
|
71
|
+
success: 排序成功取消
|
72
|
+
edit:
|
73
|
+
title: 更新有关分类的信息
|
74
|
+
update: 更新
|
75
|
+
form:
|
76
|
+
all_categories: 所有类别
|
77
|
+
select_proposal_component: 选择提案集
|
78
|
+
title: 对建议书的新排序方式
|
79
|
+
index:
|
80
|
+
title: 联谊会
|
81
|
+
new:
|
82
|
+
confirm: 按下下一个按钮后,Decidim将录制日期和时间(精确度为秒),并同时录制染色卷, 此信息将用于生成随机选择。 此动作将不可逆,一旦点击此按钮,绘图的结果将被发布, 请仔细检查内容,并在此表单中输入的数据,不能修改
|
83
|
+
create: 创建
|
84
|
+
title: 新的排序方式
|
85
|
+
show:
|
86
|
+
selected_proposals: 选择绘图提案
|
87
|
+
update:
|
88
|
+
error: 有一个问题是更新厌恶。
|
89
|
+
success: 排序成功更新
|
90
|
+
admin_log:
|
91
|
+
sortition:
|
92
|
+
create: "%{user_name} 在 %{resource_name} 中创建了 %{space_name} 个排序。"
|
93
|
+
delete: "%{user_name} 取消了 %{resource_name} 在 %{space_name} 中的排序。"
|
94
|
+
update: "%{user_name} 更新了 %{resource_name} 个排序在 %{space_name}"
|
95
|
+
sortitions:
|
96
|
+
count:
|
97
|
+
proposals_count:
|
98
|
+
other: "%{count} 个提议"
|
99
|
+
filters:
|
100
|
+
active: 已启用
|
101
|
+
all: 所有的
|
102
|
+
cancelled: 已取消
|
103
|
+
category: 类别
|
104
|
+
category_prompt: 选择一个类别
|
105
|
+
search: 搜索
|
106
|
+
state: 状态
|
107
|
+
filters_small_view:
|
108
|
+
close_modal: 关闭模式
|
109
|
+
filter: 筛选器
|
110
|
+
filter_by: 筛选方式
|
111
|
+
unfold: 展开...
|
112
|
+
linked_sortitions:
|
113
|
+
selected_proposals: 选定的建议
|
114
|
+
orders:
|
115
|
+
label: '排序方式:'
|
116
|
+
random: 随机播放
|
117
|
+
recent: 最近的
|
118
|
+
results_count:
|
119
|
+
count:
|
120
|
+
other: 选定的建议
|
121
|
+
show:
|
122
|
+
algorithm: 排序算法
|
123
|
+
any_category: 来自所有类别
|
124
|
+
back: 返回列表
|
125
|
+
cancelled: 取消排序方式
|
126
|
+
candidate_proposal_ids: 排序建议订单和 ID
|
127
|
+
candidate_proposals_info: '排序是在下列建议中进行的 (%{category_label}),具有以下ID(以选定建议的黑体字) '
|
128
|
+
category: 来自 %{category} 类别
|
129
|
+
dice_result: "(1) 致残结果"
|
130
|
+
introduction: '此页面包含排序 %{reference}的结果。 通过这种道歉, 已经随机选择了 %{target_items} 个结果,并且显示在下面的一组建议中同样的概率分布。 本页所显示的信息连同结果,提供了最大限度保证和复制结果所需的所有信息。 这种区分的质量的关键是由证人核实的法官滚动所提供的双倍随机性和为产生随机选择的算法提供输入的吸附确切时间。 难度的时间种子非常精确(秒),人类无法控制,因此提供了双个“无法控制的”输入以保证结果的公允。 '
|
131
|
+
mathematical_result: 结果(1) x (2)
|
132
|
+
proposals_selected_by_sortition: 按排序选择的提议
|
133
|
+
sortition_reproducibility_details: 排序详细信息
|
134
|
+
time_seed: "(2) 时间种子"
|
135
|
+
witnesses: 证人
|
136
|
+
sortition:
|
137
|
+
random_seed: 随机种子
|
138
|
+
selected_proposals:
|
139
|
+
other: 建议已选择
|
140
|
+
view: 查看
|
141
|
+
sortition_author:
|
142
|
+
deleted: 删除参与者
|
143
|
+
sortition_cancel_author:
|
144
|
+
deleted: 删除参与者
|
145
|
+
sortitions_count:
|
146
|
+
count:
|
147
|
+
other: "%{count} 排序方式"
|
@@ -0,0 +1 @@
|
|
1
|
+
zh-TW:
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddCommentableCounterCacheToSortitions < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
add_column :decidim_sortitions_sortitions, :comments_count, :integer, null: false, default: 0, index: true
|
6
|
+
Decidim::Sortitions::Sortition.reset_column_information
|
7
|
+
Decidim::Sortitions::Sortition.find_each(&:update_comments_count)
|
8
|
+
end
|
9
|
+
end
|
@@ -17,6 +17,7 @@ Decidim.register_component(:sortitions) do |component|
|
|
17
17
|
|
18
18
|
component.settings(:global) do |settings|
|
19
19
|
settings.attribute :comments_enabled, type: :boolean, default: true
|
20
|
+
settings.attribute :comments_max_length, type: :integer, required: false
|
20
21
|
end
|
21
22
|
|
22
23
|
# Register an optional resource that can be referenced from other resources.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-sortitions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.23.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.23.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-comments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.23.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.23.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.23.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.23.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-proposals
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.23.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.23.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: decidim-dev
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.23.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.23.0
|
83
83
|
description: This module makes possible to select amont a set of proposal by sortition
|
84
84
|
email:
|
85
85
|
- jsperezg@gmail.com
|
@@ -103,8 +103,8 @@ files:
|
|
103
103
|
- app/controllers/decidim/sortitions/admin/application_controller.rb
|
104
104
|
- app/controllers/decidim/sortitions/admin/sortitions_controller.rb
|
105
105
|
- app/controllers/decidim/sortitions/application_controller.rb
|
106
|
-
- app/controllers/decidim/sortitions/sortition_widgets_controller.rb
|
107
106
|
- app/controllers/decidim/sortitions/sortitions_controller.rb
|
107
|
+
- app/controllers/decidim/sortitions/widgets_controller.rb
|
108
108
|
- app/events/decidim/sortitions/create_sortition_event.rb
|
109
109
|
- app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
|
110
110
|
- app/forms/decidim/sortitions/admin/edit_sortition_form.rb
|
@@ -146,22 +146,27 @@ files:
|
|
146
146
|
- app/views/decidim/sortitions/sortitions/index.html.erb
|
147
147
|
- app/views/decidim/sortitions/sortitions/index.js.erb
|
148
148
|
- app/views/decidim/sortitions/sortitions/show.html.erb
|
149
|
+
- config/locales/am-ET.yml
|
149
150
|
- config/locales/ar-SA.yml
|
150
151
|
- config/locales/ar.yml
|
151
152
|
- config/locales/bg-BG.yml
|
153
|
+
- config/locales/bg.yml
|
152
154
|
- config/locales/ca.yml
|
153
155
|
- config/locales/cs-CZ.yml
|
154
156
|
- config/locales/cs.yml
|
155
157
|
- config/locales/da-DK.yml
|
158
|
+
- config/locales/da.yml
|
156
159
|
- config/locales/de.yml
|
157
160
|
- config/locales/el-GR.yml
|
158
161
|
- config/locales/el.yml
|
159
162
|
- config/locales/en.yml
|
160
163
|
- config/locales/eo-UY.yml
|
164
|
+
- config/locales/eo.yml
|
161
165
|
- config/locales/es-MX.yml
|
162
166
|
- config/locales/es-PY.yml
|
163
167
|
- config/locales/es.yml
|
164
168
|
- config/locales/et-EE.yml
|
169
|
+
- config/locales/et.yml
|
165
170
|
- config/locales/eu.yml
|
166
171
|
- config/locales/fi-pl.yml
|
167
172
|
- config/locales/fi-plain.yml
|
@@ -171,16 +176,24 @@ files:
|
|
171
176
|
- config/locales/ga-IE.yml
|
172
177
|
- config/locales/gl.yml
|
173
178
|
- config/locales/hr-HR.yml
|
179
|
+
- config/locales/hr.yml
|
174
180
|
- config/locales/hu.yml
|
175
181
|
- config/locales/id-ID.yml
|
176
182
|
- config/locales/is-IS.yml
|
183
|
+
- config/locales/is.yml
|
177
184
|
- config/locales/it.yml
|
178
185
|
- config/locales/ja-JP.yml
|
186
|
+
- config/locales/ja.yml
|
187
|
+
- config/locales/ko-KR.yml
|
188
|
+
- config/locales/ko.yml
|
179
189
|
- config/locales/lt-LT.yml
|
180
|
-
- config/locales/
|
190
|
+
- config/locales/lt.yml
|
191
|
+
- config/locales/lv.yml
|
181
192
|
- config/locales/mt-MT.yml
|
193
|
+
- config/locales/mt.yml
|
182
194
|
- config/locales/nl.yml
|
183
195
|
- config/locales/no.yml
|
196
|
+
- config/locales/om-ET.yml
|
184
197
|
- config/locales/pl.yml
|
185
198
|
- config/locales/pt-BR.yml
|
186
199
|
- config/locales/pt.yml
|
@@ -189,10 +202,16 @@ files:
|
|
189
202
|
- config/locales/sk-SK.yml
|
190
203
|
- config/locales/sk.yml
|
191
204
|
- config/locales/sl.yml
|
205
|
+
- config/locales/so-SO.yml
|
192
206
|
- config/locales/sr-CS.yml
|
193
207
|
- config/locales/sv.yml
|
208
|
+
- config/locales/ti-ER.yml
|
194
209
|
- config/locales/tr-TR.yml
|
195
210
|
- config/locales/uk.yml
|
211
|
+
- config/locales/vi-VN.yml
|
212
|
+
- config/locales/vi.yml
|
213
|
+
- config/locales/zh-CN.yml
|
214
|
+
- config/locales/zh-TW.yml
|
196
215
|
- db/migrate/20171215161358_create_decidim_module_sortitions_sortitions.rb
|
197
216
|
- db/migrate/20171220164658_add_witnesses_to_sortitions.rb
|
198
217
|
- db/migrate/20171220164744_add_additional_info_to_sortitions.rb
|
@@ -208,6 +227,7 @@ files:
|
|
208
227
|
- db/migrate/20180322085145_fix_sortitions_proposal_feature.rb
|
209
228
|
- db/migrate/20181017110803_make_sortitions_authors_polymorphic.rb
|
210
229
|
- db/migrate/20200320105926_index_foreign_keys_in_decidim_sortitions_sortitions.rb
|
230
|
+
- db/migrate/20200827154036_add_commentable_counter_cache_to_sortitions.rb
|
211
231
|
- lib/decidim/sortitions.rb
|
212
232
|
- lib/decidim/sortitions/admin.rb
|
213
233
|
- lib/decidim/sortitions/admin_engine.rb
|
@@ -227,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
247
|
requirements:
|
228
248
|
- - ">="
|
229
249
|
- !ruby/object:Gem::Version
|
230
|
-
version: '2.
|
250
|
+
version: '2.6'
|
231
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
252
|
requirements:
|
233
253
|
- - ">="
|
234
254
|
- !ruby/object:Gem::Version
|
235
255
|
version: '0'
|
236
256
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
257
|
+
rubygems_version: 3.0.3
|
238
258
|
signing_key:
|
239
259
|
specification_version: 4
|
240
260
|
summary: Decidim sortitions module
|