decidim-debates 0.9.3 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/debates/admin/create_debate.rb +3 -1
- data/app/commands/decidim/debates/admin/update_debate.rb +3 -1
- data/app/events/decidim/debates/create_debate_event.rb +5 -5
- data/app/events/decidim/debates/creation_disabled_event.rb +8 -0
- data/app/events/decidim/debates/creation_enabled_event.rb +8 -0
- data/app/forms/decidim/debates/admin/debate_form.rb +2 -2
- data/app/forms/decidim/debates/debate_form.rb +1 -2
- data/app/jobs/decidim/debates/settings_change_job.rb +44 -0
- data/app/models/decidim/debates/debate.rb +7 -1
- data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +44 -0
- data/app/views/decidim/debates/debates/index.html.erb +2 -0
- data/app/views/decidim/debates/debates/show.html.erb +4 -4
- data/config/locales/ca.yml +18 -1
- data/config/locales/en.yml +17 -0
- data/config/locales/es.yml +17 -0
- data/config/locales/eu.yml +17 -0
- data/config/locales/fi.yml +17 -0
- data/config/locales/fr.yml +17 -0
- data/config/locales/gl.yml +17 -0
- data/config/locales/it.yml +17 -0
- data/config/locales/nl.yml +17 -0
- data/config/locales/pl.yml +17 -9
- data/config/locales/pt-BR.yml +17 -0
- data/config/locales/pt.yml +17 -0
- data/config/locales/sv.yml +17 -0
- data/config/locales/uk.yml +103 -1
- data/db/migrate/20180119150434_add_reference_to_debates.rb +1 -1
- data/db/migrate/20180305092347_drop_category_id_column.rb +7 -0
- data/lib/decidim/debates/engine.rb +10 -0
- data/lib/decidim/debates/feature.rb +2 -0
- data/lib/decidim/debates/version.rb +1 -1
- metadata +24 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65caa72a8caac9fc366c11e14c25299f63166dce212b475c0617600bc34b4e2c
|
4
|
+
data.tar.gz: 4ef1a5ad6de5b7e8ffbfe63e49b96749445739d549d982e395a5f76b900715cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5dc6ae4668296c990073076926f042503d58de57fccc0002430762dc731980e47cb0b042262c1fd481fee0530fa4006ca958b912d80a24ef377a54b1e3f18bd
|
7
|
+
data.tar.gz: d38cad5b066dd078c1105d6dc06af59230f52ee1915ef287d771e8652719a6558d0e994b4c285e4677c5da42655663fd24dd12e8add0c6cb1fe1ed8aa1928407
|
@@ -28,7 +28,9 @@ module Decidim
|
|
28
28
|
attr_reader :debate, :form
|
29
29
|
|
30
30
|
def create_debate
|
31
|
-
@debate =
|
31
|
+
@debate = Decidim.traceability.create!(
|
32
|
+
Debate,
|
33
|
+
form.current_user,
|
32
34
|
category: form.category,
|
33
35
|
title: form.title,
|
34
36
|
description: form.description,
|
@@ -31,11 +31,11 @@ module Decidim
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def i18n_scope
|
34
|
-
@
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
@i18n_scope ||= if extra[:type].to_s == "user"
|
35
|
+
"decidim.events.debates.create_debate_event.user_followers"
|
36
|
+
else
|
37
|
+
"decidim.events.debates.create_debate_event.space_followers"
|
38
|
+
end
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -11,8 +11,8 @@ module Decidim
|
|
11
11
|
translatable_attribute :description, String
|
12
12
|
translatable_attribute :instructions, String
|
13
13
|
translatable_attribute :information_updates, String
|
14
|
-
attribute :start_time,
|
15
|
-
attribute :end_time,
|
14
|
+
attribute :start_time, Decidim::Attributes::TimeWithZone
|
15
|
+
attribute :end_time, Decidim::Attributes::TimeWithZone
|
16
16
|
attribute :decidim_category_id, Integer
|
17
17
|
|
18
18
|
validates :title, translatable_presence: true
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Debates
|
5
|
-
# This class holds a Form to create/update debates from Decidim's
|
5
|
+
# This class holds a Form to create/update debates from Decidim's public views.
|
6
6
|
class DebateForm < Decidim::Form
|
7
7
|
include TranslatableAttributes
|
8
8
|
|
@@ -17,7 +17,6 @@ module Decidim
|
|
17
17
|
validates :category, presence: true, if: ->(form) { form.category_id.present? }
|
18
18
|
|
19
19
|
def category
|
20
|
-
return unless current_feature
|
21
20
|
@category ||= current_feature.categories.where(id: category_id).first
|
22
21
|
end
|
23
22
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
class SettingsChangeJob < ApplicationJob
|
6
|
+
def perform(feature_id, previous_settings, current_settings)
|
7
|
+
return if unchanged?(previous_settings, current_settings)
|
8
|
+
|
9
|
+
feature = Decidim::Feature.find(feature_id)
|
10
|
+
|
11
|
+
if debate_creation_enabled?(previous_settings, current_settings)
|
12
|
+
event = "decidim.events.debates.creation_enabled"
|
13
|
+
event_class = Decidim::Debates::CreationEnabledEvent
|
14
|
+
elsif debate_creation_disabled?(previous_settings, current_settings)
|
15
|
+
event = "decidim.events.debates.creation_disabled"
|
16
|
+
event_class = Decidim::Debates::CreationDisabledEvent
|
17
|
+
end
|
18
|
+
|
19
|
+
Decidim::EventsManager.publish(
|
20
|
+
event: event,
|
21
|
+
event_class: event_class,
|
22
|
+
resource: feature,
|
23
|
+
recipient_ids: feature.participatory_space.followers.pluck(:id)
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def unchanged?(previous_settings, current_settings)
|
30
|
+
current_settings[:creation_enabled] == previous_settings[:creation_enabled]
|
31
|
+
end
|
32
|
+
|
33
|
+
def debate_creation_enabled?(previous_settings, current_settings)
|
34
|
+
current_settings[:creation_enabled] == true &&
|
35
|
+
previous_settings[:creation_enabled] == false
|
36
|
+
end
|
37
|
+
|
38
|
+
def debate_creation_disabled?(previous_settings, current_settings)
|
39
|
+
current_settings[:creation_enabled] == false &&
|
40
|
+
previous_settings[:creation_enabled] == true
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -11,15 +11,21 @@ module Decidim
|
|
11
11
|
include Decidim::Resourceable
|
12
12
|
include Decidim::Followable
|
13
13
|
include Decidim::Comments::Commentable
|
14
|
-
include Decidim::
|
14
|
+
include Decidim::ScopableFeature
|
15
15
|
include Decidim::Authorable
|
16
16
|
include Decidim::Reportable
|
17
17
|
include Decidim::HasReference
|
18
|
+
include Decidim::Traceable
|
19
|
+
include Decidim::Loggable
|
18
20
|
|
19
21
|
feature_manifest_name "debates"
|
20
22
|
|
21
23
|
validates :title, presence: true
|
22
24
|
|
25
|
+
def self.log_presenter_class_for(_log)
|
26
|
+
Decidim::Debates::AdminLog::DebatePresenter
|
27
|
+
end
|
28
|
+
|
23
29
|
# Public: Checks whether the debate is official or not.
|
24
30
|
#
|
25
31
|
# Returns a boolean.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
module AdminLog
|
6
|
+
# This class holds the logic to present a `Decidim::Debate`
|
7
|
+
# for the `AdminLog` log.
|
8
|
+
#
|
9
|
+
# Usage should be automatic and you shouldn't need to call this class
|
10
|
+
# directly, but here's an example:
|
11
|
+
#
|
12
|
+
# action_log = Decidim::ActionLog.last
|
13
|
+
# view_helpers # => this comes from the views
|
14
|
+
# DebatePresenter.new(action_log, view_helpers).present
|
15
|
+
class DebatePresenter < Decidim::Log::BasePresenter
|
16
|
+
private
|
17
|
+
|
18
|
+
def diff_fields_mapping
|
19
|
+
{
|
20
|
+
description: :i18n,
|
21
|
+
end_date: :date,
|
22
|
+
information_updates: :i18n,
|
23
|
+
instructions: :i18n,
|
24
|
+
start_date: :date,
|
25
|
+
title: :i18n
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
def i18n_labels_scope
|
30
|
+
"activemodel.attributes.debate"
|
31
|
+
end
|
32
|
+
|
33
|
+
def action_string
|
34
|
+
case action
|
35
|
+
when "create", "update"
|
36
|
+
"decidim.debates.admin_log.debate.#{action}"
|
37
|
+
else
|
38
|
+
super
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -41,20 +41,20 @@
|
|
41
41
|
<%= render partial: "decidim/shared/follow_button", locals: { followable: debate } %>
|
42
42
|
</div>
|
43
43
|
</div>
|
44
|
-
<%=
|
44
|
+
<%= resource_reference(debate) %>
|
45
45
|
<%= render partial: "share", locals: { debate: debate } %>
|
46
46
|
</div>
|
47
47
|
<div class="columns mediumlarge-8 mediumlarge-pull-4">
|
48
48
|
<div class="section">
|
49
|
-
<p
|
49
|
+
<p><%= simple_format(translated_attribute(debate.description)) %></p>
|
50
50
|
<% if translated_attribute(debate.instructions).present? %>
|
51
51
|
<div class="callout secondary">
|
52
|
-
|
52
|
+
<%= simple_format(translated_attribute(debate.instructions)) %>
|
53
53
|
</div>
|
54
54
|
<% end %>
|
55
55
|
<% if translated_attribute(debate.information_updates).present? %>
|
56
56
|
<div class="callout success">
|
57
|
-
|
57
|
+
<%= simple_format(translated_attribute(debate.information_updates)) %>
|
58
58
|
</div>
|
59
59
|
<% end %>
|
60
60
|
<% if debate.category %>
|
data/config/locales/ca.yml
CHANGED
@@ -3,6 +3,7 @@ ca:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoria
|
6
|
+
decidim_category_id: Categoria
|
6
7
|
description: Descripció
|
7
8
|
end_time: Data de finalització
|
8
9
|
information_updates: Actualitzacions d'informació
|
@@ -39,6 +40,10 @@ ca:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debat
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "L'usuari %{user_name} ha creat el debat %{resource_name} a l'espai %{space_name}"
|
46
|
+
update: "L'usuari %{user_name} ha actualitzat el debat %{resource_name} a l'espai %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -94,13 +99,23 @@ ca:
|
|
94
99
|
S'ha creat un nou debat a l'espai participatiu %{space_title}, fes-hi un cop d'ull i contribueix:
|
95
100
|
email_outro: Has rebut aquesta notificació perquè estàs seguint %{space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
96
101
|
email_subject: Nou debat a %{space_title}
|
97
|
-
notification_title: El <a href="%{resource_path}">%{resource_title}</a>
|
102
|
+
notification_title: El debat <a href="%{resource_path}">%{resource_title}</a> s'ha creat a <a href="%{space_path}">%{space_title}</a>.
|
98
103
|
user_followers:
|
99
104
|
email_intro: |-
|
100
105
|
%{author_name} %{author_nickname}, a qui segueixes, ha creat un nou debat. Revisa'l i contribueix:
|
101
106
|
email_outro: Has rebut aquesta notificació perquè estàs seguint %{author_nickname}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
102
107
|
email_subject: Nou debat d'en/na %{author_nickname}
|
103
108
|
notification_title: El <a href="%{resource_path}">%{resource_title}</a> debat ha estat creat per en/na <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'La creació de debats ja no està activa a %{participatory_space_title}. Encara pots participar en debats oberts d''aquesta pàgina:'
|
111
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
112
|
+
email_subject: S'ha desactivat la creació de debats a %{participatory_space_title}
|
113
|
+
notification_title: La creació de debats està desactivada a l'espai <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Ja pots començar nous debats a %{participatory_space_title}. Comença a participar en aquesta pàgina:'
|
116
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
117
|
+
email_subject: Els debats ja estan disponibles a %{participatory_space_title}
|
118
|
+
notification_title: Ja pots començar <a href="%{resource_path}">nous debats</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ ca:
|
|
108
123
|
name: Debats
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Avís
|
111
127
|
comments_enabled: Comentaris habilitats
|
112
128
|
step:
|
129
|
+
announcement: Avís
|
113
130
|
comments_blocked: Comentaris bloquejats
|
114
131
|
creation_enabled: Habilitar la creació de debats pels usuaris
|
data/config/locales/en.yml
CHANGED
@@ -4,6 +4,7 @@ en:
|
|
4
4
|
attributes:
|
5
5
|
debate:
|
6
6
|
category_id: Category
|
7
|
+
decidim_category_id: Category
|
7
8
|
description: Description
|
8
9
|
end_time: Ends at
|
9
10
|
information_updates: Information updates
|
@@ -40,6 +41,10 @@ en:
|
|
40
41
|
models:
|
41
42
|
debate:
|
42
43
|
name: Debate
|
44
|
+
admin_log:
|
45
|
+
debate:
|
46
|
+
create: "%{user_name} created the %{resource_name} debate on the %{space_name} space"
|
47
|
+
update: "%{user_name} updated the %{resource_name} debate on the %{space_name} space"
|
43
48
|
debates:
|
44
49
|
count:
|
45
50
|
debates_count:
|
@@ -104,6 +109,16 @@ en:
|
|
104
109
|
email_outro: You have received this notification because you are following %{author_nickname}. You can stop receiving notifications following the previous link.
|
105
110
|
email_subject: New debate by %{author_nickname}
|
106
111
|
notification_title: The <a href="%{resource_path}">%{resource_title}</a> debate was created by <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
112
|
+
creation_disabled:
|
113
|
+
email_intro: 'Debate creation is no longer active in %{participatory_space_title}. You can still participate in opened debates from this page:'
|
114
|
+
email_outro: You have received this notification because you are following %{participatory_space_title}. You can stop receiving notifications following the previous link.
|
115
|
+
email_subject: Debate creation disabled in %{participatory_space_title}
|
116
|
+
notification_title: Debate creation is now disabled in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
117
|
+
creation_enabled:
|
118
|
+
email_intro: 'You can now start new debates in %{participatory_space_title}! Start participating in this page:'
|
119
|
+
email_outro: You have received this notification because you are following %{participatory_space_title}. You can stop receiving notifications following the previous link.
|
120
|
+
email_subject: Debates now available in %{participatory_space_title}
|
121
|
+
notification_title: You can now start <a href="%{resource_path}">new debates</a> in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
107
122
|
features:
|
108
123
|
debates:
|
109
124
|
actions:
|
@@ -111,7 +126,9 @@ en:
|
|
111
126
|
name: Debates
|
112
127
|
settings:
|
113
128
|
global:
|
129
|
+
announcement: Announcement
|
114
130
|
comments_enabled: Comments enabled
|
115
131
|
step:
|
132
|
+
announcement: Announcement
|
116
133
|
comments_blocked: Comments blocked
|
117
134
|
creation_enabled: Debate creation by users enabled
|
data/config/locales/es.yml
CHANGED
@@ -3,6 +3,7 @@ es:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoría
|
6
|
+
decidim_category_id: Categoría
|
6
7
|
description: Descripción
|
7
8
|
end_time: Fecha de fin
|
8
9
|
information_updates: Actualizaciones de información
|
@@ -39,6 +40,10 @@ es:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debate
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} creó el debate %{resource_name} en el espacio %{space_name}"
|
46
|
+
update: "%{user_name} actualizó el debate %{resource_name} en el espacio %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ es:
|
|
101
106
|
email_outro: Has recibido esta notificación porque estás siguiendo a %{author_nickname}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
102
107
|
email_subject: Nuevo debate de %{author_nickname}
|
103
108
|
notification_title: El debate <a href="%{resource_path}">%{resource_title}</a> fue creado por <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'La creación de debate ya no está activa en %{participatory_space_title}. Aún puede participar en debates abiertos desde esta página:'
|
111
|
+
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
112
|
+
email_subject: Ya no se pueden crear debates en %{participatory_space_title}
|
113
|
+
notification_title: La creación de debates ahora está deshabilitada en <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: '¡Ahora puedes crear nuevos debates en %{participatory_space_title}! Comienza a participar en esta página:'
|
116
|
+
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
117
|
+
email_subject: Debates ahora disponibles en %{participatory_space_title}
|
118
|
+
notification_title: Ahora puedes crear <a href="%{resource_path}">nuevos debates</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ es:
|
|
108
123
|
name: Debates
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Anuncio
|
111
127
|
comments_enabled: Comentarios habilitados
|
112
128
|
step:
|
129
|
+
announcement: Anuncio
|
113
130
|
comments_blocked: Comentarios bloqueados
|
114
131
|
creation_enabled: Habilitar la creación de debates por los usuarios
|
data/config/locales/eu.yml
CHANGED
@@ -3,6 +3,7 @@ eu:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Kategoria
|
6
|
+
decidim_category_id: Kategoria
|
6
7
|
description: deskribapena
|
7
8
|
end_time: Amaitzen du
|
8
9
|
information_updates: Informazioaren eguneratzeak
|
@@ -39,6 +40,10 @@ eu:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debate
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} %{resource_name} eztabaida sortu zen %{space_name} espazioan"
|
46
|
+
update: "%{user_name} %{resource_name} eztabaida eguneratu zen %{space_name} espazioan"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ eu:
|
|
101
106
|
email_outro: Jakinarazpena jaso duzu %{author_nickname} jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
102
107
|
email_subject: Eztabaida berria %{author_nickname}-ri
|
103
108
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> eztabaida sortu zen <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'Debate sortzea ez dago aktibo %{participatory_space_title}. Oraindik eztabaidak ireki ditzakezu orri honetatik:'
|
111
|
+
email_outro: Jakinarazpena jaso duzu %{participatory_space_title}jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
112
|
+
email_subject: Debate sortzea desgaituta %{participatory_space_title}
|
113
|
+
notification_title: Debateen sorrera desaktibatuta dago orain <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Orain %{participatory_space_title}hizketaldi berriak hasi ditzakezu! Hasi orri honetan parte hartzea:'
|
116
|
+
email_outro: Jakinarazpena jaso duzu %{participatory_space_title}jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
117
|
+
email_subject: Debates orain eskuragarri %{participatory_space_title}
|
118
|
+
notification_title: Orain <a href="%{resource_path}">eztabaida berriak hasi ditzakezu</a> <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ eu:
|
|
108
123
|
name: eztabaidak
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Anuntzio
|
111
127
|
comments_enabled: Iruzkinak gaituta
|
112
128
|
step:
|
129
|
+
announcement: Anuntzio
|
113
130
|
comments_blocked: Iruzkinak blokeatuta
|
114
131
|
creation_enabled: Erabiltzaileek gaitutako eztabaida sortzea
|
data/config/locales/fi.yml
CHANGED
@@ -3,6 +3,7 @@ fi:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Kategoria
|
6
|
+
decidim_category_id: Kategoria
|
6
7
|
description: Kuvaus
|
7
8
|
end_time: Päättymisaika
|
8
9
|
information_updates: Tietojen päivitykset
|
@@ -39,6 +40,10 @@ fi:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Keskustelu
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} loi %{resource_name} keskustelun %{space_name} -tilasta"
|
46
|
+
update: "%{user_name} päivitti %{resource_name} keskustelun %{space_name} -tilasta"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ fi:
|
|
101
106
|
email_outro: Olet saanut tämän ilmoituksen, koska seuraat %{author_nickname}. Voit lopettaa ilmoitusten vastaanottamisen edellisen linkin jälkeen.
|
102
107
|
email_subject: Uusi keskustelu %{author_nickname}
|
103
108
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> keskustelu luotiin <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'Keskustelujen luominen ei ole enää käytössä %{participatory_space_title}. Voit silti osallistua avattuihin keskusteluihin tällä sivulla:'
|
111
|
+
email_outro: Olet saanut tämän ilmoituksen, koska seuraat %{participatory_space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellisen linkin jälkeen.
|
112
|
+
email_subject: Keskustelujen luominen on poistettu käytöstä %{participatory_space_title}
|
113
|
+
notification_title: Keskustelujen luominen on nyt poistettu käytöstä <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Nyt voit aloittaa uusia keskusteluja %{participatory_space_title}! Aloita osallistuminen tälle sivulle:'
|
116
|
+
email_outro: Olet saanut tämän ilmoituksen, koska seuraat %{participatory_space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellisen linkin jälkeen.
|
117
|
+
email_subject: Keskustelut ovat nyt saatavilla %{participatory_space_title}
|
118
|
+
notification_title: Voit nyt aloittaa <a href="%{resource_path}">uutta keskustelua</a> <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ fi:
|
|
108
123
|
name: Keskustelut
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Ilmoitus
|
111
127
|
comments_enabled: Kommentointi käytössä
|
112
128
|
step:
|
129
|
+
announcement: Ilmoitus
|
113
130
|
comments_blocked: Kommentointi estetty
|
114
131
|
creation_enabled: Keskustelujen luominen käyttäjien toimesta sallittu
|
data/config/locales/fr.yml
CHANGED
@@ -3,6 +3,7 @@ fr:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Catégorie
|
6
|
+
decidim_category_id: Catégorie
|
6
7
|
description: Description
|
7
8
|
end_time: Prend fin à
|
8
9
|
information_updates: Informations mises à jour
|
@@ -39,6 +40,10 @@ fr:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Débat
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} a créé le débat %{resource_name} sur l'espace %{space_name}"
|
46
|
+
update: "%{user_name} a mis à jour le débat %{resource_name} sur l'espace %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ fr:
|
|
101
106
|
email_outro: Vous avez reçu cette notification, car vous suivez %{author_nickname}. Vous pouvez cesser de recevoir des notifications à partir du lien précédent.
|
102
107
|
email_subject: Nouveau débat par %{author_nickname}
|
103
108
|
notification_title: Le débat <a href="%{resource_path}">%{resource_title}</a> a été créé par <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'La création du débat n''est plus active dans %{participatory_space_title}. Vous pouvez toujours participer aux débats ouverts depuis cette page:'
|
111
|
+
email_outro: Vous avez reçu cette notification, car vous suivez %{participatory_space_title}. Vous pouvez arrêter de recevoir des notifications en suivant le lien précédent.
|
112
|
+
email_subject: La création du débat est désactivée dans %{participatory_space_title}
|
113
|
+
notification_title: La création du débat est maintenant désactivée dans <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Vous pouvez maintenant commencer de nouveaux débats dans %{participatory_space_title}! Commencez à participer à cette page:'
|
116
|
+
email_outro: Vous avez reçu cette notification, car vous suivez %{participatory_space_title}. Vous pouvez arrêter de recevoir des notifications en suivant le lien précédent.
|
117
|
+
email_subject: Débats maintenant disponibles en %{participatory_space_title}
|
118
|
+
notification_title: Vous pouvez maintenant démarrer <a href="%{resource_path}">nouveaux débats</a> dans <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ fr:
|
|
108
123
|
name: Débats
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Annonce
|
111
127
|
comments_enabled: Commentaires activés
|
112
128
|
step:
|
129
|
+
announcement: Annonce
|
113
130
|
comments_blocked: Commentaires bloqués
|
114
131
|
creation_enabled: Création de débats par les utilisateurs activés
|
data/config/locales/gl.yml
CHANGED
@@ -3,6 +3,7 @@ gl:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoría
|
6
|
+
decidim_category_id: Categoría
|
6
7
|
description: Descrición
|
7
8
|
end_time: Remata a
|
8
9
|
information_updates: Actualizacións de información
|
@@ -39,6 +40,10 @@ gl:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debate
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} creou o %{resource_name} debate sobre o espazo %{space_name}"
|
46
|
+
update: "%{user_name} actualizou o %{resource_name} debate sobre o espazo %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ gl:
|
|
101
106
|
email_outro: Recibiches esta notificación porque estás seguindo %{author_nickname}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
102
107
|
email_subject: Novo debate por %{author_nickname}
|
103
108
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi creado por <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'A creación de debates xa non está activa en %{participatory_space_title}. Aínda podes participar nos debates abertos desta páxina:'
|
111
|
+
email_outro: Recibiches esta notificación porque estás seguindo %{participatory_space_title}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
112
|
+
email_subject: Creación de debates desactivada en %{participatory_space_title}
|
113
|
+
notification_title: A creación de debates agora está desactivada en <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Agora podes comezar novos debates en %{participatory_space_title}. Comezar a participar nesta páxina:'
|
116
|
+
email_outro: Recibiches esta notificación porque estás seguindo %{participatory_space_title}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
117
|
+
email_subject: Os debates agora están dispoñibles en %{participatory_space_title}
|
118
|
+
notification_title: Agora podes comezar <a href="%{resource_path}">novos debates</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ gl:
|
|
108
123
|
name: Debates
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Anuncio
|
111
127
|
comments_enabled: Comentarios habilitados
|
112
128
|
step:
|
129
|
+
announcement: Anuncio
|
113
130
|
comments_blocked: Comentarios bloqueados
|
114
131
|
creation_enabled: Debate creado polos usuarios activado
|
data/config/locales/it.yml
CHANGED
@@ -3,6 +3,7 @@ it:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoria
|
6
|
+
decidim_category_id: Categoria
|
6
7
|
description: Descrizione
|
7
8
|
end_time: Finisce a
|
8
9
|
information_updates: Aggiornamenti delle informazioni
|
@@ -39,6 +40,10 @@ it:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Discussione
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} ha creato il dibattito %{resource_name} sullo spazio %{space_name}"
|
46
|
+
update: "%{user_name} ha aggiornato il dibattito %{resource_name} sullo spazio %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ it:
|
|
101
106
|
email_outro: Hai ricevuto questa notifica perché stai seguendo %{author_nickname}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
102
107
|
email_subject: Nuovo dibattito di %{author_nickname}
|
103
108
|
notification_title: Il dibattito <a href="%{resource_path}">%{resource_title}</a> è stato creato da <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'La creazione del dibattito non è più attiva in %{participatory_space_title}. Puoi ancora partecipare ai dibattiti aperti da questa pagina:'
|
111
|
+
email_outro: Hai ricevuto questa notifica perché stai seguendo %{participatory_space_title}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
112
|
+
email_subject: Creazione del dibattito disabilitata in %{participatory_space_title}
|
113
|
+
notification_title: La creazione del dibattito è ora disabilitata in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Ora puoi iniziare nuovi dibattiti su %{participatory_space_title}! Inizia a partecipare a questa pagina:'
|
116
|
+
email_outro: Hai ricevuto questa notifica perché stai seguendo %{participatory_space_title}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
117
|
+
email_subject: Discussioni ora disponibili in %{participatory_space_title}
|
118
|
+
notification_title: Ora puoi iniziare <a href="%{resource_path}">nuovi dibattiti</a> in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ it:
|
|
108
123
|
name: dibattiti
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Annuncio
|
111
127
|
comments_enabled: Commenti abilitati
|
112
128
|
step:
|
129
|
+
announcement: Annuncio
|
113
130
|
comments_blocked: Commenti bloccati
|
114
131
|
creation_enabled: Creazione di dibattiti da parte degli utenti abilitati
|
data/config/locales/nl.yml
CHANGED
@@ -3,6 +3,7 @@ nl:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categorie
|
6
|
+
decidim_category_id: Categorie
|
6
7
|
description: Beschrijving
|
7
8
|
end_time: Eindigt bij
|
8
9
|
information_updates: Informatie-updates
|
@@ -39,6 +40,10 @@ nl:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debat
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} heeft het %{resource_name} -debat gemaakt over de ruimte %{space_name}"
|
46
|
+
update: "%{user_name} heeft het %{resource_name} -debat bijgewerkt op de %{space_name} spatie"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ nl:
|
|
101
106
|
email_outro: Je hebt deze melding ontvangen omdat je %{author_nickname} volgt. Je kunt stoppen met het ontvangen van meldingen na de vorige link.
|
102
107
|
email_subject: Nieuw debat door %{author_nickname}
|
103
108
|
notification_title: Het <a href="%{resource_path}">%{resource_title}</a> debat is gemaakt door <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'Debatcreatie is niet langer actief in %{participatory_space_title}. Je kunt nog steeds deelnemen aan geopende debatten vanaf deze pagina:'
|
111
|
+
email_outro: Je hebt deze melding ontvangen omdat je %{participatory_space_title}volgt. Je kunt stoppen met het ontvangen van meldingen na de vorige link.
|
112
|
+
email_subject: Debatcreatie uitgeschakeld in %{participatory_space_title}
|
113
|
+
notification_title: Debatten maken is nu uitgeschakeld in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Je kunt nu nieuwe debatten starten in %{participatory_space_title}! Begin met deelname aan deze pagina:'
|
116
|
+
email_outro: Je hebt deze melding ontvangen omdat je %{participatory_space_title}volgt. Je kunt stoppen met het ontvangen van meldingen na de vorige link.
|
117
|
+
email_subject: Debatten nu beschikbaar in %{participatory_space_title}
|
118
|
+
notification_title: Je kunt nu beginnen met <a href="%{resource_path}">nieuwe debatten</a> in <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ nl:
|
|
108
123
|
name: debatten
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Aankondiging
|
111
127
|
comments_enabled: Reacties ingeschakeld
|
112
128
|
step:
|
129
|
+
announcement: Aankondiging
|
113
130
|
comments_blocked: Reacties geblokkeerd
|
114
131
|
creation_enabled: Debatcreatie door gebruikers ingeschakeld
|
data/config/locales/pl.yml
CHANGED
@@ -3,6 +3,7 @@ pl:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Kategoria
|
6
|
+
decidim_category_id: Kategoria
|
6
7
|
description: Opis
|
7
8
|
end_time: Kończy się na
|
8
9
|
information_updates: Aktualizacje informacji
|
@@ -39,20 +40,15 @@ pl:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debata
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} stworzył %{resource_name} debatę na przestrzeni %{space_name}"
|
46
|
+
update: "%{user_name} zaktualizował %{resource_name} debatę na temat przestrzeni %{space_name}"
|
42
47
|
debates:
|
43
|
-
count:
|
44
|
-
debates_count:
|
45
|
-
one: "%{count} debata"
|
46
|
-
few: "%{count} debat"
|
47
|
-
other: "%{count} debat"
|
48
48
|
create:
|
49
49
|
invalid: Podczas tworzenia debaty wystąpił problem.
|
50
50
|
success: Debatę utworzono pomyślnie.
|
51
51
|
debate:
|
52
|
-
comments:
|
53
|
-
one: Komentarz
|
54
|
-
few: Komentarze
|
55
|
-
other: Komentarze
|
56
52
|
participate: Uczestniczyć
|
57
53
|
filters:
|
58
54
|
all: Wszystko
|
@@ -103,6 +99,16 @@ pl:
|
|
103
99
|
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{author_nickname}. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
104
100
|
email_subject: Nowa debata %{author_nickname}
|
105
101
|
notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> została utworzona przez <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
102
|
+
creation_disabled:
|
103
|
+
email_intro: 'Tworzenie debaty nie jest już aktywne w %{participatory_space_title}. Nadal możesz uczestniczyć w otwartych debatach na tej stronie:'
|
104
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{participatory_space_title}. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
105
|
+
email_subject: Tworzenie debaty zostało wyłączone w %{participatory_space_title}
|
106
|
+
notification_title: Tworzenie debat jest teraz wyłączone w <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
107
|
+
creation_enabled:
|
108
|
+
email_intro: 'Możesz teraz rozpocząć nowe debaty w %{participatory_space_title}! Zacznij uczestniczyć w tej stronie:'
|
109
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{participatory_space_title}. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
110
|
+
email_subject: Debaty są teraz dostępne w %{participatory_space_title}
|
111
|
+
notification_title: Możesz teraz uruchomić <a href="%{resource_path}">nowych debat</a> w <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
106
112
|
features:
|
107
113
|
debates:
|
108
114
|
actions:
|
@@ -110,7 +116,9 @@ pl:
|
|
110
116
|
name: Debaty
|
111
117
|
settings:
|
112
118
|
global:
|
119
|
+
announcement: Ogłoszenie
|
113
120
|
comments_enabled: Komentarze włączone
|
114
121
|
step:
|
122
|
+
announcement: Ogłoszenie
|
115
123
|
comments_blocked: Komentarze zablokowane
|
116
124
|
creation_enabled: Utworzenie debaty przez użytkowników
|
data/config/locales/pt-BR.yml
CHANGED
@@ -3,6 +3,7 @@ pt-BR:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoria
|
6
|
+
decidim_category_id: Categoria
|
6
7
|
description: Descrição
|
7
8
|
end_time: Termina em
|
8
9
|
information_updates: Atualizações de informações
|
@@ -39,6 +40,10 @@ pt-BR:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debate
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} criou o debate %{resource_name} no espaço %{space_name}"
|
46
|
+
update: "%{user_name} atualizou o debate %{resource_name} no espaço %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ pt-BR:
|
|
101
106
|
email_outro: Você recebeu esta notificação porque está seguindo %{author_nickname}. Você pode parar de receber notificações após o link anterior.
|
102
107
|
email_subject: Novo debate por %{author_nickname}
|
103
108
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi criado por <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'A criação do debate não está mais ativa em %{participatory_space_title}. Você ainda pode participar de debates abertos nesta página:'
|
111
|
+
email_outro: Você recebeu esta notificação porque está seguindo %{participatory_space_title}. Você pode parar de receber notificações após o link anterior.
|
112
|
+
email_subject: Criação de debate desativada em %{participatory_space_title}
|
113
|
+
notification_title: A criação do debate agora está desativada em <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Agora você pode iniciar novos debates em %{participatory_space_title}! Comece a participar nesta página:'
|
116
|
+
email_outro: Você recebeu esta notificação porque está seguindo %{participatory_space_title}. Você pode parar de receber notificações após o link anterior.
|
117
|
+
email_subject: Debates agora disponíveis em %{participatory_space_title}
|
118
|
+
notification_title: Agora você pode começar <a href="%{resource_path}">novos debates</a> em <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ pt-BR:
|
|
108
123
|
name: Debates
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Anúncio
|
111
127
|
comments_enabled: Comentários ativados
|
112
128
|
step:
|
129
|
+
announcement: Anúncio
|
113
130
|
comments_blocked: Comentários bloqueados
|
114
131
|
creation_enabled: Criação de debate por usuários habilitado
|
data/config/locales/pt.yml
CHANGED
@@ -3,6 +3,7 @@ pt:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Categoria
|
6
|
+
decidim_category_id: Categoria
|
6
7
|
description: Descrição
|
7
8
|
end_time: Termina em
|
8
9
|
information_updates: Atualizações de informações
|
@@ -39,6 +40,10 @@ pt:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debate
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} criou o debate %{resource_name} no espaço %{space_name}"
|
46
|
+
update: "%{user_name} atualizou o debate %{resource_name} no espaço %{space_name}"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ pt:
|
|
101
106
|
email_outro: Você recebeu esta notificação porque está seguindo %{author_nickname}. Você pode parar de receber notificações após o link anterior.
|
102
107
|
email_subject: Novo debate por %{author_nickname}
|
103
108
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi criado por <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'A criação do debate não está mais ativa em %{participatory_space_title}. Você ainda pode participar de debates abertos nesta página:'
|
111
|
+
email_outro: Você recebeu esta notificação porque está seguindo %{participatory_space_title}. Você pode parar de receber notificações após o link anterior.
|
112
|
+
email_subject: Criação de debate desativada em %{participatory_space_title}
|
113
|
+
notification_title: A criação do debate agora está desativada em <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Agora você pode iniciar novos debates em %{participatory_space_title}! Comece a participar nesta página:'
|
116
|
+
email_outro: Você recebeu esta notificação porque está seguindo %{participatory_space_title}. Você pode parar de receber notificações após o link anterior.
|
117
|
+
email_subject: Debates agora disponíveis em %{participatory_space_title}
|
118
|
+
notification_title: Agora você pode começar <a href="%{resource_path}">novos debates</a> em <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ pt:
|
|
108
123
|
name: Debates
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Anúncio
|
111
127
|
comments_enabled: Comentários ativados
|
112
128
|
step:
|
129
|
+
announcement: Anúncio
|
113
130
|
comments_blocked: Comentários bloqueados
|
114
131
|
creation_enabled: Criação de debate por usuários habilitado
|
data/config/locales/sv.yml
CHANGED
@@ -3,6 +3,7 @@ sv:
|
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
5
|
category_id: Kategori
|
6
|
+
decidim_category_id: Kategori
|
6
7
|
description: Beskrivning
|
7
8
|
end_time: Slutar vid
|
8
9
|
information_updates: Informationsuppdateringar
|
@@ -39,6 +40,10 @@ sv:
|
|
39
40
|
models:
|
40
41
|
debate:
|
41
42
|
name: Debatt
|
43
|
+
admin_log:
|
44
|
+
debate:
|
45
|
+
create: "%{user_name} skapade debatten %{resource_name} på %{space_name} -platsen"
|
46
|
+
update: "%{user_name} uppdaterade debatten %{resource_name} på %{space_name} -platsen"
|
42
47
|
debates:
|
43
48
|
count:
|
44
49
|
debates_count:
|
@@ -101,6 +106,16 @@ sv:
|
|
101
106
|
email_outro: Du har fått den här meddelandet eftersom du följer %{author_nickname}. Du kan sluta ta emot meddelanden efter föregående länk.
|
102
107
|
email_subject: Ny debatt av %{author_nickname}
|
103
108
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> debatten skapades av <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
109
|
+
creation_disabled:
|
110
|
+
email_intro: 'Debatt skapande är inte längre aktiv i %{participatory_space_title}. Du kan fortfarande delta i öppna debatter från den här sidan:'
|
111
|
+
email_outro: Du har fått den här meddelandet eftersom du följer %{participatory_space_title}. Du kan sluta ta emot meddelanden efter föregående länk.
|
112
|
+
email_subject: Debatt skapades inaktiverat i %{participatory_space_title}
|
113
|
+
notification_title: Debatt skapande är nu inaktiverad i <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
114
|
+
creation_enabled:
|
115
|
+
email_intro: 'Nu kan du starta nya debatter i %{participatory_space_title}! Börja delta på den här sidan:'
|
116
|
+
email_outro: Du har fått den här meddelandet eftersom du följer %{participatory_space_title}. Du kan sluta ta emot meddelanden efter föregående länk.
|
117
|
+
email_subject: Debatter finns nu i %{participatory_space_title}
|
118
|
+
notification_title: Du kan nu starta <a href="%{resource_path}">nya debatter</a> i <a href="%{participatory_space_url}">%{participatory_space_title}</a>
|
104
119
|
features:
|
105
120
|
debates:
|
106
121
|
actions:
|
@@ -108,7 +123,9 @@ sv:
|
|
108
123
|
name: debatter
|
109
124
|
settings:
|
110
125
|
global:
|
126
|
+
announcement: Meddelande
|
111
127
|
comments_enabled: Kommentarer aktiverade
|
112
128
|
step:
|
129
|
+
announcement: Meddelande
|
113
130
|
comments_blocked: Kommentarer blockerad
|
114
131
|
creation_enabled: Debatt skapande av användare aktiverat
|
data/config/locales/uk.yml
CHANGED
@@ -2,4 +2,106 @@ uk:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
debate:
|
5
|
-
|
5
|
+
category_id: Розділ
|
6
|
+
description: Опис
|
7
|
+
end_time: 'Завершується:'
|
8
|
+
information_updates: Оновлення відомостей
|
9
|
+
instructions: Вказівки до участі
|
10
|
+
start_time: 'Розпочато: '
|
11
|
+
title: Заголовок
|
12
|
+
user_group_id: Створити обговорення як
|
13
|
+
decidim:
|
14
|
+
debates:
|
15
|
+
actions:
|
16
|
+
confirm_destroy: Ви впевнені?
|
17
|
+
destroy: Видалити
|
18
|
+
edit: Редагувати
|
19
|
+
new: Додати %{name}
|
20
|
+
title: Дії
|
21
|
+
admin:
|
22
|
+
debates:
|
23
|
+
create:
|
24
|
+
success: Обговорення успішно створено.
|
25
|
+
destroy:
|
26
|
+
success: Обговорення успішно видалено.
|
27
|
+
edit:
|
28
|
+
title: Редагувати обговорення
|
29
|
+
update: Оновити обговорення
|
30
|
+
index:
|
31
|
+
title: Обговорення
|
32
|
+
new:
|
33
|
+
create: Створити обговорення
|
34
|
+
title: Нове обговорення
|
35
|
+
update:
|
36
|
+
success: Обговорення успішно оновлено.
|
37
|
+
models:
|
38
|
+
debate:
|
39
|
+
name: Обговорення
|
40
|
+
debates:
|
41
|
+
count:
|
42
|
+
debates_count:
|
43
|
+
one: "%{count} обговорення"
|
44
|
+
few: "%{count} обговорення"
|
45
|
+
many: "%{count} обговорень"
|
46
|
+
other: "%{count} обговорень"
|
47
|
+
create:
|
48
|
+
success: Обговорення успішно створено.
|
49
|
+
debate:
|
50
|
+
comments:
|
51
|
+
one: Коментар
|
52
|
+
few: Коментарі
|
53
|
+
many: Коментарів
|
54
|
+
other: Коментарів
|
55
|
+
participate: Взяти участь
|
56
|
+
filters:
|
57
|
+
all: Усі
|
58
|
+
category: Розділ
|
59
|
+
category_prompt: Оберіть розділ
|
60
|
+
citizens: Громадяни
|
61
|
+
official: Офіційне
|
62
|
+
origin: Походження
|
63
|
+
search: Шукати
|
64
|
+
filters_small_view:
|
65
|
+
close_modal: Закрити віконце
|
66
|
+
filter: Відібрати
|
67
|
+
filter_by: 'Відібрати за ознакою:'
|
68
|
+
unfold: Розгорнути
|
69
|
+
index:
|
70
|
+
new_debate: Нове обговорення
|
71
|
+
new:
|
72
|
+
back: Назад
|
73
|
+
create: Створити
|
74
|
+
select_a_category: Будь ласка, оберіть розділ
|
75
|
+
title: Нове обговорення
|
76
|
+
share:
|
77
|
+
close_window: Закрити вікно
|
78
|
+
share: Поділитися
|
79
|
+
share_link: Поділитись посиланням
|
80
|
+
show:
|
81
|
+
comments: Коментарі
|
82
|
+
report: Поскаржитись
|
83
|
+
models:
|
84
|
+
debate:
|
85
|
+
fields:
|
86
|
+
end_time: Дата закінчення
|
87
|
+
official_debate: Офіційне обговорення
|
88
|
+
start_time: Дата початку
|
89
|
+
title: Заголовок
|
90
|
+
events:
|
91
|
+
debates:
|
92
|
+
create_debate_event:
|
93
|
+
space_followers:
|
94
|
+
email_subject: Нове обговорення у %{space_title}
|
95
|
+
user_followers:
|
96
|
+
email_subject: Нове обговорення, створене %{author_nickname}
|
97
|
+
features:
|
98
|
+
debates:
|
99
|
+
actions:
|
100
|
+
create: Створити
|
101
|
+
name: Обговорення
|
102
|
+
settings:
|
103
|
+
global:
|
104
|
+
comments_enabled: Коментарі ввімкнено
|
105
|
+
step:
|
106
|
+
comments_blocked: Коментарі заблоковано
|
107
|
+
creation_enabled: Увімкнено створення обговорень учасниками
|
@@ -21,6 +21,16 @@ module Decidim
|
|
21
21
|
config.abilities += ["Decidim::Debates::Abilities::CurrentUserAbility"]
|
22
22
|
end
|
23
23
|
end
|
24
|
+
|
25
|
+
initializer "decidim_changes" do
|
26
|
+
Decidim::SettingsChange.subscribe "debates" do |changes|
|
27
|
+
Decidim::Debates::SettingsChangeJob.perform_later(
|
28
|
+
changes[:feature_id],
|
29
|
+
changes[:previous_settings],
|
30
|
+
changes[:current_settings]
|
31
|
+
)
|
32
|
+
end
|
33
|
+
end
|
24
34
|
end
|
25
35
|
end
|
26
36
|
end
|
@@ -13,11 +13,13 @@ Decidim.register_feature(:debates) do |feature|
|
|
13
13
|
|
14
14
|
feature.settings(:global) do |settings|
|
15
15
|
settings.attribute :comments_enabled, type: :boolean, default: true
|
16
|
+
settings.attribute :announcement, type: :text, translated: true, editor: true
|
16
17
|
end
|
17
18
|
|
18
19
|
feature.settings(:step) do |settings|
|
19
20
|
settings.attribute :creation_enabled, type: :boolean, default: false
|
20
21
|
settings.attribute :comments_blocked, type: :boolean, default: false
|
22
|
+
settings.attribute :announcement, type: :text, translated: true, editor: true
|
21
23
|
end
|
22
24
|
|
23
25
|
feature.register_resource do |resource|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-debates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -11,36 +11,36 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-comments
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 0.10.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.10.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: decidim-core
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - '='
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 0.10.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - '='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 0.10.0
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: kaminari
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,28 +75,28 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - '='
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 0.
|
78
|
+
version: 0.10.0
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - '='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.10.0
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: decidim-dev
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - '='
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.
|
92
|
+
version: 0.10.0
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - '='
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
99
|
+
version: 0.10.0
|
100
100
|
description: A debates component for decidim's participatory spaces.
|
101
101
|
email:
|
102
102
|
- josepjaume@gmail.com
|
@@ -118,15 +118,19 @@ files:
|
|
118
118
|
- app/controllers/decidim/debates/application_controller.rb
|
119
119
|
- app/controllers/decidim/debates/debates_controller.rb
|
120
120
|
- app/events/decidim/debates/create_debate_event.rb
|
121
|
+
- app/events/decidim/debates/creation_disabled_event.rb
|
122
|
+
- app/events/decidim/debates/creation_enabled_event.rb
|
121
123
|
- app/forms/decidim/debates/admin/debate_form.rb
|
122
124
|
- app/forms/decidim/debates/debate_form.rb
|
123
125
|
- app/helpers/decidim/debates/application_helper.rb
|
126
|
+
- app/jobs/decidim/debates/settings_change_job.rb
|
124
127
|
- app/models/decidim/debates/abilities/admin/admin_ability.rb
|
125
128
|
- app/models/decidim/debates/abilities/admin/participatory_process_admin_ability.rb
|
126
129
|
- app/models/decidim/debates/abilities/admin/participatory_process_moderator_ability.rb
|
127
130
|
- app/models/decidim/debates/abilities/current_user_ability.rb
|
128
131
|
- app/models/decidim/debates/application_record.rb
|
129
132
|
- app/models/decidim/debates/debate.rb
|
133
|
+
- app/presenters/decidim/debates/admin_log/debate_presenter.rb
|
130
134
|
- app/presenters/decidim/debates/debate_presenter.rb
|
131
135
|
- app/presenters/decidim/debates/official_author_presenter.rb
|
132
136
|
- app/services/decidim/debates/debate_search.rb
|
@@ -164,6 +168,7 @@ files:
|
|
164
168
|
- db/migrate/20180118132243_add_author_to_debates.rb
|
165
169
|
- db/migrate/20180119150434_add_reference_to_debates.rb
|
166
170
|
- db/migrate/20180122090505_add_user_group_author_to_debates.rb
|
171
|
+
- db/migrate/20180305092347_drop_category_id_column.rb
|
167
172
|
- lib/decidim/debates.rb
|
168
173
|
- lib/decidim/debates/admin.rb
|
169
174
|
- lib/decidim/debates/admin_engine.rb
|
@@ -171,8 +176,9 @@ files:
|
|
171
176
|
- lib/decidim/debates/feature.rb
|
172
177
|
- lib/decidim/debates/test/factories.rb
|
173
178
|
- lib/decidim/debates/version.rb
|
174
|
-
homepage:
|
175
|
-
licenses:
|
179
|
+
homepage: https://github.com/decidim/decidim
|
180
|
+
licenses:
|
181
|
+
- AGPL-3.0
|
176
182
|
metadata: {}
|
177
183
|
post_install_message:
|
178
184
|
rdoc_options: []
|
@@ -182,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
188
|
requirements:
|
183
189
|
- - ">="
|
184
190
|
- !ruby/object:Gem::Version
|
185
|
-
version: '
|
191
|
+
version: '2.3'
|
186
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
193
|
requirements:
|
188
194
|
- - ">="
|
@@ -190,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
196
|
version: '0'
|
191
197
|
requirements: []
|
192
198
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.7.
|
199
|
+
rubygems_version: 2.7.6
|
194
200
|
signing_key:
|
195
201
|
specification_version: 4
|
196
202
|
summary: Decidim debates module
|