decidim-debates 0.15.2 → 0.16.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/commands/decidim/debates/admin/create_debate.rb +1 -1
- data/app/commands/decidim/debates/create_debate.rb +15 -7
- data/app/events/decidim/debates/create_debate_event.rb +4 -0
- data/app/jobs/decidim/debates/settings_change_job.rb +7 -3
- data/app/presenters/decidim/debates/official_author_presenter.rb +4 -0
- data/app/queries/decidim/debates/metrics/debate_followers_metric_measure.rb +31 -0
- data/app/queries/decidim/debates/metrics/debate_participants_metric_measure.rb +27 -0
- data/app/queries/decidim/debates/metrics/debates_metric_manage.rb +50 -0
- data/app/views/decidim/debates/debates/_share.html.erb +1 -1
- data/app/views/decidim/debates/debates/show.html.erb +1 -1
- data/config/locales/ca.yml +12 -5
- data/config/locales/de.yml +12 -7
- data/config/locales/en.yml +10 -5
- data/config/locales/es-PY.yml +12 -5
- data/config/locales/es.yml +12 -5
- data/config/locales/eu.yml +12 -5
- data/config/locales/fi-pl.yml +11 -5
- data/config/locales/fi.yml +11 -5
- data/config/locales/fr.yml +12 -5
- data/config/locales/gl.yml +12 -5
- data/config/locales/hu.yml +11 -5
- data/config/locales/id-ID.yml +0 -15
- data/config/locales/it.yml +12 -5
- data/config/locales/nl.yml +11 -5
- data/config/locales/pl.yml +12 -5
- data/config/locales/pt-BR.yml +12 -5
- data/config/locales/pt.yml +12 -5
- data/config/locales/ru.yml +0 -8
- data/config/locales/sv.yml +12 -5
- data/config/locales/tr-TR.yml +0 -15
- data/config/locales/uk.yml +0 -9
- data/lib/decidim/debates/engine.rb +21 -0
- data/lib/decidim/debates/version.rb +1 -1
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52fde887956417e27738c9e0afda413a8a8df60d9acd814465c2cb82dd0c8810
|
4
|
+
data.tar.gz: d91f822c8d82a32d14ba2fe19b4f3508f6e43e9e5b6fc0619dc52deaa9b0e929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0598a3885d95c044b24882f58026dc4b014a9c06755828875d169cc9b14af4f2e36c8281c1a9a2c859202418646215c8e96c9413d912af40b14bc39e9f240b60'
|
7
|
+
data.tar.gz: 4d6f533ed81eeb91457af04b419f98a76e690b51cd5fe072ea03788006de31ae1f9452f67005103147be4692baca6a7846d784dd45168b7fe785bd7bd08ea470
|
@@ -53,7 +53,7 @@ module Decidim
|
|
53
53
|
event: "decidim.events.debates.debate_created",
|
54
54
|
event_class: Decidim::Debates::CreateDebateEvent,
|
55
55
|
resource: debate,
|
56
|
-
|
56
|
+
followers: form.current_component.participatory_space.followers,
|
57
57
|
extra: {
|
58
58
|
type: "participatory_space"
|
59
59
|
}
|
@@ -17,7 +17,8 @@ module Decidim
|
|
17
17
|
|
18
18
|
transaction do
|
19
19
|
create_debate
|
20
|
-
|
20
|
+
send_notification_to_author_followers
|
21
|
+
send_notification_to_space_followers
|
21
22
|
end
|
22
23
|
broadcast(:ok, debate)
|
23
24
|
end
|
@@ -54,19 +55,26 @@ module Decidim
|
|
54
55
|
)
|
55
56
|
end
|
56
57
|
|
57
|
-
def
|
58
|
-
|
59
|
-
|
58
|
+
def send_notification_to_author_followers
|
59
|
+
Decidim::EventsManager.publish(
|
60
|
+
event: "decidim.events.debates.debate_created",
|
61
|
+
event_class: Decidim::Debates::CreateDebateEvent,
|
62
|
+
resource: debate,
|
63
|
+
followers: debate.author.followers,
|
64
|
+
extra: {
|
65
|
+
type: "user"
|
66
|
+
}
|
67
|
+
)
|
60
68
|
end
|
61
69
|
|
62
|
-
def
|
70
|
+
def send_notification_to_space_followers
|
63
71
|
Decidim::EventsManager.publish(
|
64
72
|
event: "decidim.events.debates.debate_created",
|
65
73
|
event_class: Decidim::Debates::CreateDebateEvent,
|
66
74
|
resource: debate,
|
67
|
-
|
75
|
+
followers: debate.participatory_space.followers,
|
68
76
|
extra: {
|
69
|
-
type:
|
77
|
+
type: "participatory_space"
|
70
78
|
}
|
71
79
|
)
|
72
80
|
end
|
@@ -16,11 +16,13 @@ module Decidim
|
|
16
16
|
event_class = Decidim::Debates::CreationDisabledEvent
|
17
17
|
end
|
18
18
|
|
19
|
+
return unless event && event_class
|
20
|
+
|
19
21
|
Decidim::EventsManager.publish(
|
20
22
|
event: event,
|
21
23
|
event_class: event_class,
|
22
24
|
resource: component,
|
23
|
-
|
25
|
+
followers: component.participatory_space.followers
|
24
26
|
)
|
25
27
|
end
|
26
28
|
|
@@ -30,15 +32,17 @@ module Decidim
|
|
30
32
|
current_settings[:creation_enabled] == previous_settings[:creation_enabled]
|
31
33
|
end
|
32
34
|
|
35
|
+
# rubocop:disable Style/DoubleNegation
|
33
36
|
def debate_creation_enabled?(previous_settings, current_settings)
|
34
37
|
current_settings[:creation_enabled] == true &&
|
35
|
-
previous_settings[:creation_enabled] == false
|
38
|
+
!!previous_settings[:creation_enabled] == false
|
36
39
|
end
|
37
40
|
|
38
41
|
def debate_creation_disabled?(previous_settings, current_settings)
|
39
|
-
current_settings[:creation_enabled] == false &&
|
42
|
+
!!current_settings[:creation_enabled] == false &&
|
40
43
|
previous_settings[:creation_enabled] == true
|
41
44
|
end
|
45
|
+
# rubocop:enable Style/DoubleNegation
|
42
46
|
end
|
43
47
|
end
|
44
48
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
module Metrics
|
6
|
+
# Searches for unique Users following the next objects
|
7
|
+
# - Debates
|
8
|
+
class DebateFollowersMetricMeasure < Decidim::MetricMeasure
|
9
|
+
def valid?
|
10
|
+
super && @resource.is_a?(Decidim::Component)
|
11
|
+
end
|
12
|
+
|
13
|
+
def calculate
|
14
|
+
debates = Decidim::Debates::Debate.where(component: @resource).joins(:component)
|
15
|
+
|
16
|
+
debates_followers = Decidim::Follow.where(followable: debates).joins(:user)
|
17
|
+
.where("decidim_follows.created_at <= ?", end_time)
|
18
|
+
cumulative_users = debates_followers.pluck(:decidim_user_id)
|
19
|
+
|
20
|
+
debates_followers = debates_followers.where("decidim_follows.created_at >= ?", start_time)
|
21
|
+
quantity_users = debates_followers.pluck(:decidim_user_id)
|
22
|
+
|
23
|
+
{
|
24
|
+
cumulative_users: cumulative_users.uniq,
|
25
|
+
quantity_users: quantity_users.uniq
|
26
|
+
}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
module Metrics
|
6
|
+
# Searches for Participants in the following actions
|
7
|
+
# - Create a debate (Debates)
|
8
|
+
class DebateParticipantsMetricMeasure < Decidim::MetricMeasure
|
9
|
+
def valid?
|
10
|
+
super && @resource.is_a?(Decidim::Component)
|
11
|
+
end
|
12
|
+
|
13
|
+
def calculate
|
14
|
+
debates = Decidim::Debates::Debate.where(component: @resource).joins(:component)
|
15
|
+
.where("decidim_debates_debates.created_at <= ?", end_time)
|
16
|
+
.where(decidim_author_type: Decidim::UserBaseEntity.name)
|
17
|
+
.where.not(author: nil)
|
18
|
+
|
19
|
+
{
|
20
|
+
cumulative_users: debates.pluck(:decidim_author_id),
|
21
|
+
quantity_users: debates.where("decidim_debates_debates.created_at >= ?", start_time).pluck(:decidim_author_id)
|
22
|
+
}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Debates
|
5
|
+
module Metrics
|
6
|
+
class DebatesMetricManage < Decidim::MetricManage
|
7
|
+
def metric_name
|
8
|
+
"debates"
|
9
|
+
end
|
10
|
+
|
11
|
+
def save
|
12
|
+
return @registry if @registry
|
13
|
+
|
14
|
+
@registry = []
|
15
|
+
cumulative.each do |key, cumulative_value|
|
16
|
+
next if cumulative_value.zero?
|
17
|
+
quantity_value = quantity[key] || 0
|
18
|
+
category_id, space_type, space_id = key
|
19
|
+
record = Decidim::Metric.find_or_initialize_by(day: @day.to_s, metric_type: @metric_name,
|
20
|
+
organization: @organization, decidim_category_id: category_id,
|
21
|
+
participatory_space_type: space_type, participatory_space_id: space_id)
|
22
|
+
record.assign_attributes(cumulative: cumulative_value, quantity: quantity_value)
|
23
|
+
@registry << record
|
24
|
+
end
|
25
|
+
@registry.each(&:save!)
|
26
|
+
@registry
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def query
|
32
|
+
return @query if @query
|
33
|
+
|
34
|
+
components = Decidim::Component.where(participatory_space: retrieve_participatory_spaces).published
|
35
|
+
@query = Decidim::Debates::Debate.where(component: components).joins(:component)
|
36
|
+
.left_outer_joins(:category)
|
37
|
+
@query = @query.where("decidim_debates_debates.start_time <= ?", end_time)
|
38
|
+
@query = @query.group("decidim_categorizations.decidim_category_id",
|
39
|
+
:participatory_space_type,
|
40
|
+
:participatory_space_id)
|
41
|
+
@query
|
42
|
+
end
|
43
|
+
|
44
|
+
def quantity
|
45
|
+
@quantity ||= query.where("decidim_debates_debates.start_time >= ?", start_time).count
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -34,7 +34,7 @@ edit_link(
|
|
34
34
|
<%= l debate.start_time, format: "%H:%M" %> - <%= l debate.end_time, format: "%H:%M" %>
|
35
35
|
</div>
|
36
36
|
<% end %>
|
37
|
-
<%= render partial: "decidim/shared/follow_button", locals: { followable: debate } %>
|
37
|
+
<%= render partial: "decidim/shared/follow_button", locals: { followable: debate, large: false } %>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
<%= resource_reference(debate) %>
|
data/config/locales/ca.yml
CHANGED
@@ -114,16 +114,18 @@ ca:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
117
|
+
Hola,
|
118
|
+
S'ha creat un nou debat "%{resource_title}" a l'espai participatiu %{space_title}, fes-hi un cop d'ull i contribueix:
|
118
119
|
email_outro: Has rebut aquesta notificació perquè estàs seguint %{space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
119
|
-
email_subject: Nou debat
|
120
|
+
email_subject: Nou debat "%{resource_title}" el dia %{space_title}
|
120
121
|
notification_title: El debat <a href="%{resource_path}">%{resource_title}</a> s'ha creat a <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
|
124
|
+
Hola,
|
125
|
+
%{author_name} %{author_nickname}, a qui segueixes, ha creat un nou debat "%{resource_title}". Consulta i contribueix:
|
124
126
|
email_outro: Has rebut aquesta notificació perquè estàs seguint %{author_nickname}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
125
|
-
email_subject: Nou debat
|
126
|
-
notification_title:
|
127
|
+
email_subject: Nou debat "%{resource_title}" de %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha creat el debat <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
email_intro: 'La creació de debats ja no està activa a %{participatory_space_title}. Encara pots participar en debats oberts d''aquesta pàgina:'
|
129
131
|
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
@@ -146,3 +148,8 @@ ca:
|
|
146
148
|
next_level_in: Participa en %{score} debats més per arribar al següent nivell!
|
147
149
|
unearned_another: Aquest usuari encara no ha participat en cap debat.
|
148
150
|
unearned_own: No has participat a cap debat encara.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Nombre de debats creats
|
154
|
+
object: debats
|
155
|
+
title: Debats
|
data/config/locales/de.yml
CHANGED
@@ -114,18 +114,18 @@ de:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
118
|
-
|
117
|
+
Hallo,
|
118
|
+
Eine neue Debatte "%{resource_title}" wurde auf den %{space_title} Partizipationsräumen erstellt, check it out und trage mit:
|
119
119
|
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie dem %{space_title} Teilnahmebereich folgen. Sie können nach dem vorherigen Link keine Benachrichtigungen mehr erhalten.
|
120
|
-
email_subject: Neue Debatte
|
120
|
+
email_subject: Neue Debatte "%{resource_title}" am %{space_title}
|
121
121
|
notification_title: Die <a href="%{resource_path}">%{resource_title}</a> Debatte wurde am <a href="%{space_path}">%{space_title}</a>.
|
122
122
|
user_followers:
|
123
123
|
email_intro: |-
|
124
|
-
|
125
|
-
%{author_name} %{author_nickname},
|
124
|
+
Hallo,
|
125
|
+
%{author_name} %{author_nickname}, dem Sie folgen, hat eine neue Debatte "%{resource_title}" erstellt. Überprüfen Sie es und tragen Sie bei:
|
126
126
|
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{author_nickname}. Sie können nach dem vorherigen Link keine Benachrichtigungen mehr erhalten.
|
127
|
-
email_subject: Neue Debatte
|
128
|
-
notification_title:
|
127
|
+
email_subject: Neue Debatte "%{resource_title}" von %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> hat die <a href="%{resource_path}">%{resource_title}</a> Debatte geschaffen.
|
129
129
|
creation_disabled:
|
130
130
|
email_intro: 'Die Erstellung von Debatten ist in %{participatory_space_title}nicht mehr aktiv. Sie können weiterhin an offenen Debatten von dieser Seite teilnehmen:'
|
131
131
|
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{participatory_space_title}. Sie können nach dem vorherigen Link keine Benachrichtigungen mehr erhalten.
|
@@ -148,3 +148,8 @@ de:
|
|
148
148
|
next_level_in: Nimm an %{score} weiteren Debatten teil, um das nächste Level zu erreichen!
|
149
149
|
unearned_another: Dieser Benutzer hat noch keine Diskussionen geführt.
|
150
150
|
unearned_own: Sie haben bereits an Debatten teilgenommen.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Anzahl der erstellten Debatten
|
154
|
+
object: Debatten
|
155
|
+
title: Debatten
|
data/config/locales/en.yml
CHANGED
@@ -115,17 +115,17 @@ en:
|
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
117
|
Hi,
|
118
|
-
A new debate has been created on the %{space_title} participatory space, check it out and contribute:
|
118
|
+
A new debate "%{resource_title}" has been created on the %{space_title} participatory space, check it out and contribute:
|
119
119
|
email_outro: You have received this notification because you are following the %{space_title} participatory space. You can stop receiving notifications following the previous link.
|
120
|
-
email_subject: New debate on %{space_title}
|
120
|
+
email_subject: New debate "%{resource_title}" on %{space_title}
|
121
121
|
notification_title: The <a href="%{resource_path}">%{resource_title}</a> debate was created on <a href="%{space_path}">%{space_title}</a>.
|
122
122
|
user_followers:
|
123
123
|
email_intro: |-
|
124
124
|
Hi,
|
125
|
-
%{author_name} %{author_nickname}, who you are following, has created a new debate
|
125
|
+
%{author_name} %{author_nickname}, who you are following, has created a new debate "%{resource_title}". Check it out and contribute:
|
126
126
|
email_outro: You have received this notification because you are following %{author_nickname}. You can stop receiving notifications following the previous link.
|
127
|
-
email_subject: New debate by %{author_nickname}
|
128
|
-
notification_title:
|
127
|
+
email_subject: New debate "%{resource_title}" by %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> created the <a href="%{resource_path}">%{resource_title}</a> debate.
|
129
129
|
creation_disabled:
|
130
130
|
email_intro: 'Debate creation is no longer active in %{participatory_space_title}. You can still participate in opened debates from this page:'
|
131
131
|
email_outro: You have received this notification because you are following %{participatory_space_title}. You can stop receiving notifications following the previous link.
|
@@ -148,3 +148,8 @@ en:
|
|
148
148
|
next_level_in: Participate in %{score} more debates to reach the next level!
|
149
149
|
unearned_another: This user hasn't participated in any debate yet.
|
150
150
|
unearned_own: You haven't participated in any debates yet.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Number of debates created
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/es-PY.yml
CHANGED
@@ -114,16 +114,18 @@ es-PY:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
117
|
+
Hola,
|
118
|
+
Se ha creado un nuevo debate "%{resource_title}" en el espacio participativo %{space_title} , échale un vistazo y contribuye:
|
118
119
|
email_outro: Has recibido esta notificación porque estás siguiendo a %{space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
119
|
-
email_subject: Nuevo debate en %{space_title}
|
120
|
+
email_subject: Nuevo debate "%{resource_title}" en %{space_title}
|
120
121
|
notification_title: El debate <a href="%{resource_path}">%{resource_title}</a> fue creado el <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
|
124
|
+
Hola,
|
125
|
+
%{author_name} %{author_nickname}, a quien está siguiendo, ha creado un nuevo debate "%{resource_title}". Échale un vistazo y contribuye:
|
124
126
|
email_outro: Has recibido esta notificación porque estás siguiendo a %{author_nickname}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
125
|
-
email_subject: Nuevo debate
|
126
|
-
notification_title:
|
127
|
+
email_subject: Nuevo debate "%{resource_title}" por %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> creó el debate <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
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:'
|
129
131
|
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
@@ -146,3 +148,8 @@ es-PY:
|
|
146
148
|
next_level_in: '¡Participe en %{score} debates más para alcanzar el siguiente nivel!'
|
147
149
|
unearned_another: Este usuario aún no ha participado en ningún debate.
|
148
150
|
unearned_own: Has participado en cualquier debate aún.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Número de debates creados.
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/es.yml
CHANGED
@@ -114,16 +114,18 @@ es:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
117
|
+
Hola,
|
118
|
+
Se ha creado un nuevo debate "%{resource_title}" en el espacio participativo %{space_title} , échale un vistazo y contribuye:
|
118
119
|
email_outro: Has recibido esta notificación porque estás siguiendo a %{space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
119
|
-
email_subject: Nuevo debate en %{space_title}
|
120
|
+
email_subject: Nuevo debate "%{resource_title}" en %{space_title}
|
120
121
|
notification_title: El debate <a href="%{resource_path}">%{resource_title}</a> fue creado el <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
|
124
|
+
Hola,
|
125
|
+
%{author_name} %{author_nickname}, a quien estás siguiendo, ha creado un nuevo debate "%{resource_title}". Échale un vistazo y contribuye:
|
124
126
|
email_outro: Has recibido esta notificación porque estás siguiendo a %{author_nickname}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
125
|
-
email_subject: Nuevo debate de %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Nuevo debate "%{resource_title}" de %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> creó el debate <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
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:'
|
129
131
|
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
@@ -146,3 +148,8 @@ es:
|
|
146
148
|
next_level_in: '¡Participa en %{score} debates más para alcanzar el siguiente nivel!'
|
147
149
|
unearned_another: Este usuario aún no ha participado en ningún debate.
|
148
150
|
unearned_own: Aún no has participado en ningún debate.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Número de debates creados
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/eu.yml
CHANGED
@@ -114,16 +114,18 @@ eu:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Kaixo,
|
117
|
+
Kaixo,
|
118
|
+
"%{resource_title}" eztabaida berri bat sortu da %{space_title} partehartze espazioan, begiratu eta lagundu:
|
118
119
|
email_outro: Jakinarazpen hori jaso duzu %{space_title} partaidetzazko espazioa jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
119
|
-
email_subject: Eztabaida
|
120
|
+
email_subject: Eztabaida berriak "%{resource_title}" on %{space_title}
|
120
121
|
notification_title: <a href="%{resource_path}">%{resource_title}</a> eztabaida sortu zen <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
Kaixo,
|
124
|
+
Kaixo,
|
125
|
+
%{author_name} %{author_nickname}, jarraitzen ari zarenak, "%{resource_title}" eztabaida berri bat sortu du. Begiratu eta lagundu:
|
124
126
|
email_outro: Jakinarazpena jaso duzu %{author_nickname} jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
125
|
-
email_subject:
|
126
|
-
notification_title: <a href="%{
|
127
|
+
email_subject: '"%{resource_title}" eztabaida berria %{author_nickname}'
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> sortutako <a href="%{resource_path}">%{resource_title}</a> eztabaida.
|
127
129
|
creation_disabled:
|
128
130
|
email_intro: 'Debate sortzea ez dago aktibo %{participatory_space_title}. Oraindik eztabaidak ireki ditzakezu orri honetatik:'
|
129
131
|
email_outro: Jakinarazpena jaso duzu %{participatory_space_title}jarraituz gero. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
|
@@ -146,3 +148,8 @@ eu:
|
|
146
148
|
next_level_in: Parte hartu %{score} eztabaidagai gehiago hurrengo mailara iristeko!
|
147
149
|
unearned_another: Erabiltzaile honek eztabaida batean parte hartu du oraindik.
|
148
150
|
unearned_own: Oraindik eztabaidetan parte hartu duzu.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Sortutako eztabaida kopurua
|
154
|
+
object: eztabaidak
|
155
|
+
title: eztabaidak
|
data/config/locales/fi-pl.yml
CHANGED
@@ -115,16 +115,17 @@ fi-pl:
|
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
117
|
Hei,
|
118
|
-
|
118
|
+
osallisuustilaan %{space_title} on luotu uusi keskustelu "%{resource_title}", tutustu siihen ja osallistu:
|
119
119
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta %{space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
120
|
-
email_subject: Uusi keskustelu
|
120
|
+
email_subject: Uusi keskustelu "%{resource_title}" tilassa %{space_title}
|
121
121
|
notification_title: Keskustelu aiheesta <a href="%{resource_path}">%{resource_title}</a> luotiin kohtaan <a href="%{space_path}">%{space_title}</a>.
|
122
122
|
user_followers:
|
123
123
|
email_intro: |-
|
124
|
-
Hei,
|
124
|
+
Hei,
|
125
|
+
%{author_name} %{author_nickname}, jota seuraat, on luonut uuden keskustelun "%{resource_title}". Tutustu siihen ja osallistu:
|
125
126
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat käyttäjää %{author_nickname}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
126
|
-
email_subject: Uusi keskustelu käyttäjältä %{author_nickname}
|
127
|
-
notification_title:
|
127
|
+
email_subject: Uusi keskustelu "%{resource_title}" käyttäjältä %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> loi keskustelun <a href="%{resource_path}">%{resource_title}</a>.
|
128
129
|
creation_disabled:
|
129
130
|
email_intro: 'Keskustelujen luominen ei ole enää käytössä kohteessa %{participatory_space_title}. Voit silti osallistua avattuihin keskusteluihin tämän sivun kautta:'
|
130
131
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta %{participatory_space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
@@ -147,3 +148,8 @@ fi-pl:
|
|
147
148
|
next_level_in: Osallistu vielä %{score} keskusteluun päästäksesi seuraavalle tasolle!
|
148
149
|
unearned_another: Tämä käyttäjä ei ole vielä osallistunut yhteenkään keskusteluun.
|
149
150
|
unearned_own: Et ole vielä osallistunut yhteenkään keskusteluun.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Keskustelujen määrä
|
154
|
+
object: keskustelut
|
155
|
+
title: Keskustelut
|
data/config/locales/fi.yml
CHANGED
@@ -115,16 +115,17 @@ fi:
|
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
117
|
Hei,
|
118
|
-
|
118
|
+
osallisuustilaan %{space_title} on luotu uusi keskustelu "%{resource_title}", tutustu siihen ja osallistu:
|
119
119
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta %{space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
120
|
-
email_subject: Uusi keskustelu
|
120
|
+
email_subject: Uusi keskustelu "%{resource_title}" tilassa %{space_title}
|
121
121
|
notification_title: Keskustelu aiheesta <a href="%{resource_path}">%{resource_title}</a> luotiin kohtaan <a href="%{space_path}">%{space_title}</a>.
|
122
122
|
user_followers:
|
123
123
|
email_intro: |-
|
124
|
-
Hei,
|
124
|
+
Hei,
|
125
|
+
%{author_name} %{author_nickname}, jota seuraat, on luonut uuden keskustelun "%{resource_title}". Tutustu siihen ja osallistu:
|
125
126
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat käyttäjää %{author_nickname}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
126
|
-
email_subject: Uusi keskustelu käyttäjältä %{author_nickname}
|
127
|
-
notification_title:
|
127
|
+
email_subject: Uusi keskustelu "%{resource_title}" käyttäjältä %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> loi keskustelun <a href="%{resource_path}">%{resource_title}</a>.
|
128
129
|
creation_disabled:
|
129
130
|
email_intro: 'Keskustelujen luominen ei ole enää käytössä kohteessa %{participatory_space_title}. Voit silti osallistua avattuihin keskusteluihin tämän sivun kautta:'
|
130
131
|
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat kohdetta %{participatory_space_title}. Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
|
@@ -147,3 +148,8 @@ fi:
|
|
147
148
|
next_level_in: Osallistu vielä %{score} keskusteluun päästäksesi seuraavalle tasolle!
|
148
149
|
unearned_another: Tämä käyttäjä ei ole vielä osallistunut yhteenkään keskusteluun.
|
149
150
|
unearned_own: Et ole vielä osallistunut yhteenkään keskusteluun.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Keskustelujen määrä
|
154
|
+
object: keskustelut
|
155
|
+
title: Keskustelut
|
data/config/locales/fr.yml
CHANGED
@@ -114,16 +114,18 @@ fr:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
117
|
+
Salut,
|
118
|
+
Un nouveau débat «%{resource_title}» a été créée sur le %{space_title} espace participatif, vérifier et contribuer:
|
118
119
|
email_outro: Vous avez reçu cette notification parce que vous suivez l'espace participatif %{space_title}. Vous pouvez cesser de recevoir des notifications en suivant ce dernier lien.
|
119
|
-
email_subject: Nouveau débat sur %{space_title}
|
120
|
+
email_subject: Nouveau débat "%{resource_title}" sur %{space_title}
|
120
121
|
notification_title: Le débat <a href="%{resource_path}">%{resource_title}</a> a été créé le <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
Bonjour,
|
124
|
+
Bonjour,
|
125
|
+
%{author_name} %{author_nickname}, qui vous suivez, a créé un nouveau débat "%{resource_title}". Découvrez-le et contribuez:
|
124
126
|
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.
|
125
|
-
email_subject: Nouveau débat par %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Nouveau débat "%{resource_title}" par %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> créé le débat <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
email_intro: 'La création de débat n''est plus possible dans %{participatory_space_title}. Vous pouvez toujours participer aux débats ouverts depuis cette page :'
|
129
131
|
email_outro: Vous avez reçu cette notification parce que vous suivez %{participatory_space_title}. Vous pouvez arrêter de recevoir des notifications à partir du lien précédent.
|
@@ -146,3 +148,8 @@ fr:
|
|
146
148
|
next_level_in: Participez à %{score} autres débats pour atteindre le prochain niveau!
|
147
149
|
unearned_another: Cet utilisateur n'a encore participé à aucun débat.
|
148
150
|
unearned_own: Vous avez déjà participé à des débats.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Nombre de débats créés
|
154
|
+
object: débats
|
155
|
+
title: Débats
|
data/config/locales/gl.yml
CHANGED
@@ -114,16 +114,18 @@ gl:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Ola,
|
117
|
+
Ola,
|
118
|
+
Creouse un novo debate "%{resource_title}" nos %{space_title} espazos participativos, verifícalo e contribuír:
|
118
119
|
email_outro: Recibiches esta notificación porque estás seguindo o %{space_title} espazo participativo. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
119
|
-
email_subject: Novo debate
|
120
|
+
email_subject: Novo debate "%{resource_title}" en %{space_title}
|
120
121
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi creado en <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
Ola,
|
124
|
+
Ola,
|
125
|
+
%{author_name} %{author_nickname}, a quen estás seguindo, creou un novo debate "%{resource_title}". Consulte e contribúa:
|
124
126
|
email_outro: Recibiches esta notificación porque estás seguindo %{author_nickname}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
125
|
-
email_subject: Novo debate por %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Novo debate "%{resource_title}" por %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> creou o debate <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
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:'
|
129
131
|
email_outro: Recibiches esta notificación porque estás seguindo %{participatory_space_title}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
|
@@ -146,3 +148,8 @@ gl:
|
|
146
148
|
next_level_in: '¡Participa en %{score} debates máis para alcanzar o seguinte nivel!'
|
147
149
|
unearned_another: Este usuario aínda non participou en ningún debate.
|
148
150
|
unearned_own: Participaches nos debates aínda.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Número de debates creados
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/hu.yml
CHANGED
@@ -114,17 +114,18 @@ hu:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Szia,
|
117
|
+
Szia,
|
118
|
+
Új vitát "%{resource_title}" hoztak létre a %{space_title} részvételi téren, ellenőrizzük és hozzájárulunk:
|
118
119
|
email_outro: 'Ezt az értesítést azért kaptad, mert ezt a részvételi helyet követed: "%{space_title}". Az értesítéseket a következő linkre kattintva kapcsolhatod ki.'
|
119
|
-
email_subject:
|
120
|
+
email_subject: Új vita "%{resource_title}" %{space_title}
|
120
121
|
notification_title: A(z) <a href="%{resource_path}">%{resource_title}</a>vita létrejött itt:<a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
124
|
Szia,
|
124
|
-
%{author_name} %{author_nickname}
|
125
|
+
%{author_name} %{author_nickname}, akit figyelsz, új vita született "%{resource_title}". Nézze meg és járuljon hozzá:
|
125
126
|
email_outro: 'Ezt az értesítést azért kaptad, mert őt követed: "%{author_nickname}". Az értesítéseket a következő linkre kattintva kapcsolhatod ki.'
|
126
|
-
email_subject:
|
127
|
-
notification_title:
|
127
|
+
email_subject: Új vita "%{resource_title}" %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> létrehozta a <a href="%{resource_path}">%{resource_title}</a> vitát.
|
128
129
|
creation_disabled:
|
129
130
|
email_intro: 'Vita létrehozása már nem lehetséges itt: %{participatory_space_title}. A nyitott vitákban azonban továbbra is részt vehetsz itt:'
|
130
131
|
email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{participatory_space_title}". Az értesítéseket a következő linkre kattintva kapcsolhatod ki.'
|
@@ -147,3 +148,8 @@ hu:
|
|
147
148
|
next_level_in: Vegyen részt még %{score} vitában, hogy elérje a következő szintet!
|
148
149
|
unearned_another: Ez a felhasználó még nem vett részt vitában.
|
149
150
|
unearned_own: Vannak résztvevők a vitákban.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: A létrehozott viták száma
|
154
|
+
object: viták
|
155
|
+
title: viták
|
data/config/locales/id-ID.yml
CHANGED
@@ -1,16 +1 @@
|
|
1
1
|
id:
|
2
|
-
decidim:
|
3
|
-
events:
|
4
|
-
debates:
|
5
|
-
create_debate_event:
|
6
|
-
space_followers:
|
7
|
-
email_intro: |-
|
8
|
-
Hai,
|
9
|
-
Perdebatan baru telah dibuat pada %{space_title} ruang partisipatif, lihat dan sumbangkan:
|
10
|
-
email_subject: Perdebatan baru tentang %{space_title}
|
11
|
-
user_followers:
|
12
|
-
email_intro: |-
|
13
|
-
Hai,
|
14
|
-
%{author_name} %{author_nickname}, siapa yang Anda ikuti, telah menciptakan perdebatan baru, lihat dan sumbangkan:
|
15
|
-
email_subject: Perdebatan baru dengan %{author_nickname}
|
16
|
-
notification_title: Perdebatan <a href="%{resource_path}">%{resource_title}</a> dibuat oleh <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
data/config/locales/it.yml
CHANGED
@@ -114,16 +114,18 @@ it:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
|
117
|
+
Ciao,
|
118
|
+
Un nuovo dibattito "%{resource_title}" è stato creato sui %{space_title} spazi partecipativi, dai un'occhiata e dai:
|
118
119
|
email_outro: Hai ricevuto questa notifica perché stai seguendo lo spazio partecipativo %{space_title}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
119
|
-
email_subject: Nuovo dibattito su %{space_title}
|
120
|
+
email_subject: Nuovo dibattito "%{resource_title}" su %{space_title}
|
120
121
|
notification_title: Il dibattito <a href="%{resource_path}">%{resource_title}</a> è stato creato su <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
Ciao,
|
124
|
+
Ciao,
|
125
|
+
%{author_name} %{author_nickname}, chi stai seguendo, ha creato un nuovo dibattito "%{resource_title}". Dai un'occhiata e dai:
|
124
126
|
email_outro: Hai ricevuto questa notifica perché stai seguendo %{author_nickname}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
125
|
-
email_subject: Nuovo dibattito di %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Nuovo dibattito "%{resource_title}" di %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> creato il dibattito <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
email_intro: 'La creazione del dibattito non è più attiva in %{participatory_space_title}. Puoi ancora partecipare ai dibattiti aperti da questa pagina:'
|
129
131
|
email_outro: Hai ricevuto questa notifica perché stai seguendo %{participatory_space_title}. È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
|
@@ -146,3 +148,8 @@ it:
|
|
146
148
|
next_level_in: Partecipa a %{score} altri dibattiti per raggiungere il livello successivo!
|
147
149
|
unearned_another: Questo utente non ha ancora partecipato a nessun dibattito.
|
148
150
|
unearned_own: Hai partecipato a qualche dibattito ancora.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Numero di dibattiti creati
|
154
|
+
object: dibattiti
|
155
|
+
title: dibattiti
|
data/config/locales/nl.yml
CHANGED
@@ -115,16 +115,17 @@ nl:
|
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
117
|
Hallo,
|
118
|
-
|
118
|
+
Een nieuw debat "%{resource_title}" is opgezet op de %{space_title} participatieruimte, bekijk het en draag bij:
|
119
119
|
email_outro: Je hebt deze melding ontvangen omdat je de %{space_title} participatorische ruimte volgt. Je kan de meldingen deactiveren door te klikken op de voorgaande link.
|
120
|
-
email_subject: Nieuw debat op %{space_title}
|
120
|
+
email_subject: Nieuw debat "%{resource_title}" op %{space_title}
|
121
121
|
notification_title: Het <a href="%{resource_path}">%{resource_title}</a> debat is gemaakt op <a href="%{space_path}">%{space_title}</a>.
|
122
122
|
user_followers:
|
123
123
|
email_intro: |-
|
124
|
-
Hallo,
|
124
|
+
Hallo,
|
125
|
+
%{author_name} %{author_nickname}, wie je volgt, heeft een nieuw debat "%{resource_title}" gemaakt. Bekijk het en draag bij:
|
125
126
|
email_outro: Je hebt deze melding ontvangen omdat je %{author_nickname} volgt. Je kan deze meldingen uitschakelen door te klikken op de voorgaande link.
|
126
|
-
email_subject: Nieuw debat
|
127
|
-
notification_title:
|
127
|
+
email_subject: Nieuw debat "%{resource_title}" met %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> creëerde het debat <a href="%{resource_path}">%{resource_title}</a>.
|
128
129
|
creation_disabled:
|
129
130
|
email_intro: 'Het is niet langer mogelijk een debat aan te maken in %{participatory_space_title}. Je kan nog steeds deelnemen aan lopende debatten op deze pagina:'
|
130
131
|
email_outro: Je hebt deze melding ontvangen omdat je %{participatory_space_title}volgt. Je kan de meldingen uitschakelen door te klikken op de voorgaande link.
|
@@ -147,3 +148,8 @@ nl:
|
|
147
148
|
next_level_in: Neem deel aan %{score} meer debatten om het volgende niveau te bereiken!
|
148
149
|
unearned_another: Deze gebruiker heeft nog geen deelgenomen aan een debat.
|
149
150
|
unearned_own: Je hebt nog deelgenomen aan debatten.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Aantal debatten gemaakt
|
154
|
+
object: debatten
|
155
|
+
title: debatten
|
data/config/locales/pl.yml
CHANGED
@@ -118,16 +118,18 @@ pl:
|
|
118
118
|
create_debate_event:
|
119
119
|
space_followers:
|
120
120
|
email_intro: |-
|
121
|
-
Cześć,
|
121
|
+
Cześć,
|
122
|
+
Nowa debata "%{resource_title}" została utworzona na %{space_title} przestrzeni uczestniczącej, sprawdź ją i przyczyń się do:
|
122
123
|
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{space_title} przestrzeń partycypacyjną. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
123
|
-
email_subject: Nowa debata na
|
124
|
+
email_subject: Nowa debata "%{resource_title}" na %{space_title}
|
124
125
|
notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> została utworzona na <a href="%{space_path}">%{space_title}</a>.
|
125
126
|
user_followers:
|
126
127
|
email_intro: |-
|
127
|
-
Witaj,
|
128
|
+
Witaj,
|
129
|
+
%{author_name} %{author_nickname}, którego obserwujesz, stworzył nową debatę "%{resource_title}". Sprawdź i pomóż:
|
128
130
|
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{author_nickname}. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
129
|
-
email_subject: Nowa debata %{author_nickname}
|
130
|
-
notification_title:
|
131
|
+
email_subject: Nowa debata "%{resource_title}" o %{author_nickname}
|
132
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> utworzyło debatę <a href="%{resource_path}">%{resource_title}</a>.
|
131
133
|
creation_disabled:
|
132
134
|
email_intro: 'Tworzenie debaty nie jest już aktywne w %{participatory_space_title}. Nadal możesz uczestniczyć w otwartych debatach na tej stronie:'
|
133
135
|
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{participatory_space_title}. Możesz przestać otrzymywać powiadomienia po poprzednim linku.
|
@@ -150,3 +152,8 @@ pl:
|
|
150
152
|
next_level_in: Weź udział w %{score} kolejnych debatach, aby przejść do następnego poziomu!
|
151
153
|
unearned_another: Ten użytkownik nie uczestniczył jeszcze w żadnej debacie.
|
152
154
|
unearned_own: Brałeś już udział w jakichkolwiek debatach.
|
155
|
+
metrics:
|
156
|
+
debates:
|
157
|
+
description: Liczba utworzonych debat
|
158
|
+
object: debaty
|
159
|
+
title: Debaty
|
data/config/locales/pt-BR.yml
CHANGED
@@ -114,16 +114,18 @@ pt-BR:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Oi,
|
117
|
+
Oi,
|
118
|
+
Um novo debate "%{resource_title}" foi criado no espaço participativo %{space_title} , confira e contribua:
|
118
119
|
email_outro: Você recebeu esta notificação porque está seguindo o espaço participativo %{space_title}. Você pode parar de receber notificações após o link anterior.
|
119
|
-
email_subject: Novo debate
|
120
|
+
email_subject: Novo debate "%{resource_title}" em %{space_title}
|
120
121
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi criado em <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
|
124
|
+
Olá,
|
125
|
+
%{author_name} %{author_nickname}, quem você está seguindo, criou um novo debate "%{resource_title}". Confira e contribua:
|
124
126
|
email_outro: Você recebeu esta notificação porque está seguindo %{author_nickname}. Você pode parar de receber notificações após o link anterior.
|
125
|
-
email_subject: Novo debate por %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Novo debate "%{resource_title}" por %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> criou o debate <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
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:'
|
129
131
|
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.
|
@@ -146,3 +148,8 @@ pt-BR:
|
|
146
148
|
next_level_in: Participe em mais %{score} debates para alcançar o próximo nível!
|
147
149
|
unearned_another: Este usuário ainda não participou de nenhum debate.
|
148
150
|
unearned_own: Você participou de algum debate ainda.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Número de debates criados
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/pt.yml
CHANGED
@@ -114,16 +114,18 @@ pt:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Oi,
|
117
|
+
Oi,
|
118
|
+
Um novo debate "%{resource_title}" foi criado no espaço participativo %{space_title} , confira e contribua:
|
118
119
|
email_outro: Você recebeu esta notificação porque está seguindo o espaço participativo %{space_title}. Você pode parar de receber notificações após o link anterior.
|
119
|
-
email_subject: Novo debate
|
120
|
+
email_subject: Novo debate "%{resource_title}" em %{space_title}
|
120
121
|
notification_title: O <a href="%{resource_path}">%{resource_title}</a> debate foi criado em <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
|
124
|
+
Olá,
|
125
|
+
%{author_name} %{author_nickname}, quem você está seguindo, criou um novo debate "%{resource_title}". Confira e contribua:
|
124
126
|
email_outro: Você recebeu esta notificação porque está seguindo %{author_nickname}. Você pode parar de receber notificações após o link anterior.
|
125
|
-
email_subject: Novo debate por %{author_nickname}
|
126
|
-
notification_title:
|
127
|
+
email_subject: Novo debate "%{resource_title}" por %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> criou o debate <a href="%{resource_path}">%{resource_title}</a>.
|
127
129
|
creation_disabled:
|
128
130
|
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:'
|
129
131
|
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.
|
@@ -146,3 +148,8 @@ pt:
|
|
146
148
|
next_level_in: Participe em mais %{score} debates para alcançar o próximo nível!
|
147
149
|
unearned_another: Este usuário ainda não participou de nenhum debate.
|
148
150
|
unearned_own: Você participou de algum debate ainda.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Número de debates criados
|
154
|
+
object: debates
|
155
|
+
title: Debates
|
data/config/locales/ru.yml
CHANGED
@@ -115,18 +115,10 @@ ru:
|
|
115
115
|
debates:
|
116
116
|
create_debate_event:
|
117
117
|
space_followers:
|
118
|
-
email_intro: |-
|
119
|
-
Привет! В пространстве соучастия %{space_title} было создано новое обсуждение. Почитайте его и внесите свой вклад:
|
120
118
|
email_outro: Вы получили это уведомление, потому что вы следите за пространством соучастия %{space_title}. Вы можете отписаться от уведомлений, перейдя по приведенной выше ссылке.
|
121
|
-
email_subject: В %{space_title} началось новое обсуждение
|
122
119
|
notification_title: В <a href="%{space_path}">%{space_title}</a> началось обсуждение <a href="%{resource_path}">%{resource_title}</a>.
|
123
120
|
user_followers:
|
124
|
-
email_intro: |-
|
125
|
-
Добрый день!
|
126
|
-
%{author_name} %{author_nickname}, за которым вы следите, начал новое обсуждение. Прочитайте его и внесите свой вклад:
|
127
121
|
email_outro: Вы получили это уведомление, потому что вы следите за «%{author_nickname}». Вы можете отписаться от уведомлений, перейдя по приведенной выше ссылке.
|
128
|
-
email_subject: Новое обсуждение, начатое %{author_nickname}
|
129
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> начал обсуждение <a href="%{resource_path}">%{resource_title}</a>.
|
130
122
|
creation_disabled:
|
131
123
|
email_intro: 'В %{participatory_space_title} уже нельзя начинать обсуждения. Вы можете принять участие в уже начатых обсуждениях на странице:'
|
132
124
|
email_outro: Вы получили это уведомление, потому что вы следите за «%{participatory_space_title}». Вы можете отписаться от уведомлений, перейдя по приведенной выше ссылке.
|
data/config/locales/sv.yml
CHANGED
@@ -114,16 +114,18 @@ sv:
|
|
114
114
|
create_debate_event:
|
115
115
|
space_followers:
|
116
116
|
email_intro: |-
|
117
|
-
Hej,
|
117
|
+
Hej,
|
118
|
+
En ny debatt "%{resource_title}" har skapats på %{space_title} deltagande utrymmen, kolla in det och bidra:
|
118
119
|
email_outro: Du har fått denna notis eftersom du följer deltagandeplatsen %{space_title}. Du kan sluta ta emot notiser på föregående länk.
|
119
|
-
email_subject: Ny debatt
|
120
|
+
email_subject: Ny debatt "%{resource_title}" på %{space_title}
|
120
121
|
notification_title: Debatten <a href="%{resource_path}">%{resource_title}</a> skapades på <a href="%{space_path}">%{space_title}</a>.
|
121
122
|
user_followers:
|
122
123
|
email_intro: |-
|
123
|
-
Hej,
|
124
|
+
Hej,
|
125
|
+
%{author_name} %{author_nickname}, som du följer, har skapat en ny debatt "%{resource_title}". Kolla in det och bidra med:
|
124
126
|
email_outro: Du har fått den här notisen eftersom du följer %{author_nickname}. Du kan sluta ta emot notiser vid föregående länk.
|
125
|
-
email_subject: Ny debatt
|
126
|
-
notification_title:
|
127
|
+
email_subject: Ny debatt "%{resource_title}" med %{author_nickname}
|
128
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> skapade <a href="%{resource_path}">%{resource_title}</a> debatten.
|
127
129
|
creation_disabled:
|
128
130
|
email_intro: 'Debattskapandet är inte längre aktivt i %{participatory_space_title}. Du kan fortfarande delta i öppna debatter på den här sidan:'
|
129
131
|
email_outro: Du har fått den här notisen eftersom du följer %{participatory_space_title}. Du kan sluta ta emot notiser vid föregående länk.
|
@@ -146,3 +148,8 @@ sv:
|
|
146
148
|
next_level_in: Delta i %{score} fler debatter för att nå nästa nivå!
|
147
149
|
unearned_another: Den här användaren har inte deltagit i någon debatt än.
|
148
150
|
unearned_own: Du har inte deltagit i några debatter än.
|
151
|
+
metrics:
|
152
|
+
debates:
|
153
|
+
description: Antal debatter skapade
|
154
|
+
object: diskussioner
|
155
|
+
title: debatter
|
data/config/locales/tr-TR.yml
CHANGED
@@ -1,16 +1 @@
|
|
1
1
|
tr:
|
2
|
-
decidim:
|
3
|
-
events:
|
4
|
-
debates:
|
5
|
-
create_debate_event:
|
6
|
-
space_followers:
|
7
|
-
email_intro: |-
|
8
|
-
Merhaba,
|
9
|
-
%{space_title} katılımcı uzayda yeni bir tartışma oluşturuldu, kontrol edip katkıda bulunun:
|
10
|
-
email_subject: '%{space_title}yeni tartışma'
|
11
|
-
user_followers:
|
12
|
-
email_intro: |-
|
13
|
-
Merhaba,
|
14
|
-
%{author_name} %{author_nickname}, takip ediyor, yeni bir tartışma oluşturdu, kontrol et ve katkıda bulun:
|
15
|
-
email_subject: Yeni tartışma %{author_nickname}
|
16
|
-
notification_title: <a href="%{resource_path}">%{resource_title}</a> tartışma <a href="%{author_path}">%{author_name} %{author_nickname}</a>tarafından oluşturuldu.
|
data/config/locales/uk.yml
CHANGED
@@ -115,19 +115,10 @@ uk:
|
|
115
115
|
debates:
|
116
116
|
create_debate_event:
|
117
117
|
space_followers:
|
118
|
-
email_intro: |-
|
119
|
-
Доброго дня!,
|
120
|
-
В просторі співучасті %{space_title} розпочалось нове обговорення. Прочитайте його та зробіть свій внесок:
|
121
118
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за простором співучасті %{space_title}. Ви можете відписатися від цих сповіщень, перейшовши за наведеним вище посиланням.
|
122
|
-
email_subject: У %{space_title} розпочалось нове обговорення
|
123
119
|
notification_title: <a href="%{space_path}">%{space_title} </a> розпочав обговорення у <a href="%{resource_path}">%{resource_title}</a>.
|
124
120
|
user_followers:
|
125
|
-
email_intro: |-
|
126
|
-
Доброго дня!
|
127
|
-
%{author_name} %{author_nickname}, за яким ви стежите, розпочав нове обговорення. Прочитайте його та зробіть свій внесок:
|
128
121
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{author_nickname}. Ви можете відписатися від цих сповіщень, перейшовши за наведеним вище посиланням.
|
129
|
-
email_subject: Нове обговорення, започатковане %{author_nickname}
|
130
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> розпочав обговорення <a href="%{resource_path}">%{resource_title}</a>.
|
131
122
|
creation_disabled:
|
132
123
|
email_intro: 'В %{participatory_space_title} вже не можна починати обговорення. Ви можете взяти участь у вже започаткованих обговореннях на сторінці:'
|
133
124
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{participatory_space_title}. Ви можете відписатися від цих сповіщень, перейшовши за наведеним вище посиланням.
|
@@ -73,6 +73,27 @@ module Decidim
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
76
|
+
|
77
|
+
initializer "decidim_debates.register_metrics" do
|
78
|
+
Decidim.metrics_registry.register(:debates) do |metric_registry|
|
79
|
+
metric_registry.manager_class = "Decidim::Debates::Metrics::DebatesMetricManage"
|
80
|
+
|
81
|
+
metric_registry.settings do |settings|
|
82
|
+
settings.attribute :highlighted, type: :boolean, default: false
|
83
|
+
settings.attribute :scopes, type: :array, default: %w(participatory_process)
|
84
|
+
settings.attribute :weight, type: :integer, default: 3
|
85
|
+
settings.attribute :stat_block, type: :string, default: "small"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
Decidim.metrics_operation.register(:participants, :debates) do |metric_operation|
|
90
|
+
metric_operation.manager_class = "Decidim::Debates::Metrics::DebateParticipantsMetricMeasure"
|
91
|
+
end
|
92
|
+
|
93
|
+
Decidim.metrics_operation.register(:followers, :debates) do |metric_operation|
|
94
|
+
metric_operation.manager_class = "Decidim::Debates::Metrics::DebateFollowersMetricMeasure"
|
95
|
+
end
|
96
|
+
end
|
76
97
|
end
|
77
98
|
end
|
78
99
|
end
|
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.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-01-
|
14
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-comments
|
@@ -19,28 +19,28 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.16.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: 0.
|
29
|
+
version: 0.16.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: 0.
|
36
|
+
version: 0.16.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: 0.
|
43
|
+
version: 0.16.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.16.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.16.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.16.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.16.0
|
100
100
|
description: A debates component for decidim's participatory spaces.
|
101
101
|
email:
|
102
102
|
- josepjaume@gmail.com
|
@@ -139,6 +139,9 @@ files:
|
|
139
139
|
- app/presenters/decidim/debates/admin_log/debate_presenter.rb
|
140
140
|
- app/presenters/decidim/debates/debate_presenter.rb
|
141
141
|
- app/presenters/decidim/debates/official_author_presenter.rb
|
142
|
+
- app/queries/decidim/debates/metrics/debate_followers_metric_measure.rb
|
143
|
+
- app/queries/decidim/debates/metrics/debate_participants_metric_measure.rb
|
144
|
+
- app/queries/decidim/debates/metrics/debates_metric_manage.rb
|
142
145
|
- app/serializers/decidim/debates/data_portability_debate_serializer.rb
|
143
146
|
- app/services/decidim/debates/debate_search.rb
|
144
147
|
- app/views/decidim/debates/admin/debates/_form.html.erb
|
@@ -212,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
215
|
version: '0'
|
213
216
|
requirements: []
|
214
217
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.7.
|
218
|
+
rubygems_version: 2.7.6
|
216
219
|
signing_key:
|
217
220
|
specification_version: 4
|
218
221
|
summary: Decidim debates module
|