decidim-debates 0.32.0 → 0.32.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95671c88984119f316a804be97bf63169fc3986433cf0278360e5a00a19363e2
4
- data.tar.gz: c07eacf14458f35e16012a61885c491dc937a73d86e6498a590837cae9b173b7
3
+ metadata.gz: d17858f7de3d721acdac53e5f50d6e0d61974a0f113d73fa6a5025ef878e5388
4
+ data.tar.gz: fef540bc7ee96a1f014e40700308e3a28b0c56ed9ff24b61b79379443c67e705
5
5
  SHA512:
6
- metadata.gz: 458604900cb690fffbb954bd0ce16dc3b85a780a8ccaa60a1a7245cbed3eb2ea5089d329989917a158ca2897c8e0877ea16a9cf6901d262684bfdbb84f923707
7
- data.tar.gz: fd616613f4dfbefb709823066bbf9c9ace3bc15ab746ef2ab19fc6276cd0271178fd26e83300c8d2ca5bc698f8d54faef3ea3c3121b0f7b3ed3130089ec8eb21
6
+ metadata.gz: 5786acfb1c2457d7ad2b36cf58c0b44b22a3d95c105ffcdb0b5fd4f0603564d57c241df5776bd8a512038a014819062c724849a5e4d5b62049689fd57fb66d85
7
+ data.tar.gz: d32ebaba57e6fff569531f40602004c3217f8ba5ee11d1b92428d3d4f5d56c19e81d63255c360967f2bf5750d1437262c6fad9e0e2c3328e571bce81295d7a97
@@ -32,8 +32,13 @@ module Decidim
32
32
  def description
33
33
  attribute = model.try(:short_description) || model.try(:body) || model.description
34
34
  text = translated_attribute(attribute)
35
+ text = html_truncate(text, length: 240)
35
36
 
36
- decidim_sanitize(html_truncate(text, length: 240), strip_tags: true)
37
+ text = Decidim::ContentRenderers::BlobRenderer.new(text).render
38
+ text = Decidim::ContentRenderers::UserRenderer.new(text).render(plain: true)
39
+ text = Decidim::ContentRenderers::MentionResourceRenderer.new(text).render(plain: true)
40
+
41
+ decidim_sanitize(text, strip_tags: true)
37
42
  end
38
43
 
39
44
  private
@@ -35,7 +35,7 @@ module Decidim
35
35
 
36
36
  def attributes
37
37
  parsed_title = Decidim::ContentProcessor.parse(form.title, current_organization: form.current_organization).rewrite
38
- parsed_description = Decidim::ContentProcessor.parse_with_processor(:inline_images, form.description, current_organization: form.current_organization).rewrite
38
+ parsed_description = Decidim::ContentProcessor.parse(form.description, current_organization: form.current_organization).rewrite
39
39
  super.merge({
40
40
  author: form.current_organization,
41
41
  title: parsed_title,
@@ -31,7 +31,7 @@ module Decidim
31
31
 
32
32
  def attributes
33
33
  parsed_title = Decidim::ContentProcessor.parse(form.title, current_organization: form.current_organization).rewrite
34
- parsed_description = Decidim::ContentProcessor.parse_with_processor(:inline_images, form.description, current_organization: form.current_organization).rewrite
34
+ parsed_description = Decidim::ContentProcessor.parse(form.description, current_organization: form.current_organization).rewrite
35
35
 
36
36
  attrs = {
37
37
  title: parsed_title,
@@ -58,7 +58,7 @@ module Decidim
58
58
 
59
59
  def attributes
60
60
  parsed_title = Decidim::ContentProcessor.parse(form.title, current_organization: form.current_organization).rewrite
61
- parsed_description = Decidim::ContentProcessor.parse_with_processor(:inline_images, form.description, current_organization: form.current_organization).rewrite
61
+ parsed_description = Decidim::ContentProcessor.parse(form.description, current_organization: form.current_organization).rewrite
62
62
 
63
63
  super.merge({
64
64
  author: form.current_user,
@@ -47,7 +47,7 @@ module Decidim
47
47
 
48
48
  def attributes
49
49
  parsed_title = Decidim::ContentProcessor.parse(form.title, current_organization: form.current_organization).rewrite
50
- parsed_description = Decidim::ContentProcessor.parse_with_processor(:inline_images, form.description, current_organization: form.current_organization).rewrite
50
+ parsed_description = Decidim::ContentProcessor.parse(form.description, current_organization: form.current_organization).rewrite
51
51
  super.merge({
52
52
  title: { I18n.locale => parsed_title },
53
53
  description: { I18n.locale => parsed_description }
@@ -42,6 +42,8 @@ module Decidim
42
42
 
43
43
  def show
44
44
  raise ActionController::RoutingError, "Not Found" if debate.blank?
45
+
46
+ enforce_permission_to :read, :debate, debate:
45
47
  end
46
48
 
47
49
  def edit
@@ -8,6 +8,8 @@ module Decidim
8
8
  include Decidim::ApplicationHelper
9
9
  include Decidim::ResourceVersionsConcern
10
10
 
11
+ private
12
+
11
13
  def versioned_resource
12
14
  @versioned_resource ||= Debate.where(component: current_component).not_hidden.find(params[:debate_id])
13
15
  end
@@ -40,7 +40,7 @@ module Decidim
40
40
  presenter = DebatePresenter.new(model)
41
41
 
42
42
  self.title = presenter.title(all_locales: title.is_a?(Hash))
43
- self.description = presenter.description(all_locales: description.is_a?(Hash))
43
+ self.description = presenter.editor_locales(model.description, description.is_a?(Hash))
44
44
  self.comments_layout = model.comments_layout || "single_column"
45
45
  self.attachments = model.attachments
46
46
  end
@@ -24,8 +24,13 @@ module Decidim
24
24
  # Debates can be translated in different languages from the admin but
25
25
  # the public form does not allow it. When a user creates a debate the
26
26
  # user locale is taken as the text locale.
27
+ presenter = DebatePresenter.new(debate)
27
28
  self.title = debate.title.values.first
28
- self.description = debate.description.values.first
29
+ self.description = if debate.component.organization.rich_text_editor_in_public_views?
30
+ presenter.editor_locales(debate.description, false)
31
+ else
32
+ presenter.plain_locales(debate.description, false)
33
+ end
29
34
  self.attachments = debate.attachments
30
35
  end
31
36
 
@@ -37,7 +37,15 @@ module Decidim
37
37
 
38
38
  # Returns :text_area or :editor based on current_component settings.
39
39
  def text_editor_for_debate_description(form)
40
- text_editor_for(form, :description)
40
+ text_editor_for(
41
+ form,
42
+ :description,
43
+ mentionable: true,
44
+ data: {
45
+ controller: "mention",
46
+ search_prompt: t("decidim.shared.mentions.search_prompt")
47
+ }
48
+ )
41
49
  end
42
50
 
43
51
  # Returns a TreeNode to be used in the list filters to filter debates by
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
 
8
8
  <div class="row column">
9
- <%= form.translated :editor, :description, resource_mentionable: true, aria: { label: :description } %>
9
+ <%= form.translated :editor, :description, mentionable: true, resource_mentionable: true, aria: { label: :description } %>
10
10
  </div>
11
11
 
12
12
  <div class="row column">
@@ -207,6 +207,7 @@ cs:
207
207
  email_intro: |-
208
208
  Ahoj,
209
209
  %{author_name} %{author_nickname}, kterého sledujete, vytvořil novou debatu "%{resource_title}". Omrkněte ji a přispějte:
210
+ email_subject: Nová debata "%{resource_title}" od %{author_name}
210
211
  creation_disabled:
211
212
  email_intro: 'Tvorba debaty již není aktivní v %{participatory_space_title}. Na otevřených debatách se můžete stále účastnit z této stránky:'
212
213
  email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Na předchozím odkazu můžete přestat přijímat oznámení.
@@ -34,6 +34,7 @@ de:
34
34
  comment: Kommentieren
35
35
  create: Debatte erstellen
36
36
  like: Unterstützen
37
+ vote_comment: Kommentar bewerten
37
38
  name: Debatten
38
39
  settings:
39
40
  global:
@@ -41,6 +42,7 @@ de:
41
42
  attachments_allowed: Anhänge zulassen
42
43
  clear_all: Alles löschen
43
44
  comments_enabled: Kommentare aktiviert
45
+ comments_max_length: Maximale Zeichenanzahl pro Kommentar (0 für Standardwert)
44
46
  define_taxonomy_filters: Bitte definieren Sie einige Filter für diesen partizipativen Bereich, bevor Sie diese Einstellung verwenden.
45
47
  no_taxonomy_filters_found: Keine Klassifizierungsfilter gefunden.
46
48
  taxonomy_filters: Filter für die Komponente auswählen
@@ -75,10 +77,13 @@ de:
75
77
  form:
76
78
  add_attachments: Anhänge hinzufügen
77
79
  attachment_legend: Dokument oder Bild hinzufügen
80
+ comments_layout_locked_warning: Das Kommentar-Layout kann nicht geändert werden, da bereits Kommentare veröffentlicht wurden.
78
81
  comments_visualization: Kommentardarstellung
79
82
  comments_warning: Sobald der erste Kommentar veröffentlicht wurde, kann die gewählte Anzeigeoption nicht geändert werden.
80
83
  debate_type: Debatten-Typ
81
84
  edit_attachments: Anhänge bearbeiten
85
+ errors:
86
+ comments_layout_locked: Das Kommentar-Layout kann nicht geändert werden, da bereits Kommentare veröffentlicht wurden.
82
87
  finite: Zeitlich begrenzt (mit Start- und Endzeit)
83
88
  open: Offen (keine Start- und Endzeit)
84
89
  single_column: 'Einzelne Spalte: Kommentare werden in chronologischer Reihenfolge angezeigt und können beantwortet werden.'
@@ -154,6 +159,7 @@ de:
154
159
  title: Debatte erstellen
155
160
  orders:
156
161
  label: Debatten sortieren nach
162
+ most_commented: Meistkommentiert
157
163
  random: Zufällige Reihenfolge
158
164
  recent: Neueste zuerst
159
165
  updated: Kürzlich aktualisiert
@@ -197,6 +203,13 @@ de:
197
203
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{participatory_space_title} folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie den obigen Link.
198
204
  email_subject: Neue Debatte "%{resource_title}" in %{participatory_space_title}
199
205
  notification_title: Die Debatte <a href="%{resource_path}">%{resource_title}</a> wurde auf <a href="%{participatory_space_url}">%{participatory_space_title}</a> erstellt.
206
+ user_followers:
207
+ email_intro: |-
208
+ Hallo,
209
+ %{author_name}, dem/der Sie folgen, hat eine neue Debatte "%{resource_title}" erstellt. Schauen Sie sie sich an und beteiligen Sie sich:
210
+ email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{author_name} folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie den obigen Link.
211
+ email_subject: Neue Debatte "%{resource_title}" von %{author_name}
212
+ notification_title: <a href="%{author_path}">%{author_name}</a> hat die Debatte <a href="%{resource_path}">%{resource_title}</a> erstellt.
200
213
  creation_disabled:
201
214
  email_intro: 'Die Erstellung von Debatten ist in %{participatory_space_title} nicht mehr aktiviert. Sie können weiterhin an offenen Debatten teilnehmen:'
202
215
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{participatory_space_title} folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie den obigen Link.
@@ -260,7 +273,7 @@ de:
260
273
  last_comment_at: Datum, an dem diese Debatte zuletzt kommentiert wurde
261
274
  last_comment_by: Der Inhalt des letzten Kommentars der Debatte
262
275
  likes_count: Die Anzahl Unterstützungen dieses Beitrags
263
- participatory_space: Zu welchem Bereich diese Debatte gehört (z.B. Partizipationsprozesse oder Gremien)
276
+ participatory_space: Zu welchem Bereich diese Debatte gehört (z.B. Partizipationsprozesse oder Versammlungen)
264
277
  reference: Die eindeutige Bezeichnung der Ressource auf dieser Plattform
265
278
  start_time: Wann diese Debatte beginnt, ob es sich um eine offene Debatte handelt oder ob sie eine begrenzte Dauer hat
266
279
  taxonomies: Die Klassifizierungen des Projekts
@@ -27,38 +27,38 @@ eu:
27
27
  changeset:
28
28
  debates: Eztabaidak
29
29
  tooltips:
30
- deleted_debates_info: Ezin da ezabatu eztabaida hau
30
+ deleted_debates_info: Eztabaida hau ezin da ezabatu
31
31
  components:
32
32
  debates:
33
33
  actions:
34
34
  comment: Iruzkina
35
35
  create: Sortu eztabaida bat
36
36
  like: Atsegin dut
37
- vote_comment: Bozkatu iruzkina
37
+ vote_comment: Iruzkinari babesa eman
38
38
  name: Eztabaidak
39
39
  settings:
40
40
  global:
41
- announcement: Iragarpena
41
+ announcement: Jakinarazpena
42
42
  attachments_allowed: Baimendu eranskinak
43
43
  clear_all: Garbitu dena
44
44
  comments_enabled: Iruzkinak gaituta
45
45
  comments_max_length: Iruzkin bakoitzeko gehieneko karaktereak (utzi 0 aurrez zehaztutako baliorako)
46
- define_taxonomy_filters: Mesedez, eszenatoki hau erabili aurretik, zehaztu partaidetza-espazioa honetarako iragazki batzuk.
46
+ define_taxonomy_filters: Mesedez, zehaztu partaidetza-espazio honetarako iragazki batzuk ezarpen hau erabili aurretik.
47
47
  no_taxonomy_filters_found: Ez da taxonomia-iragazkirik aurkitu.
48
- taxonomy_filters: Hautatu iragazkiak osagairako
48
+ taxonomy_filters: Osagairako iragazkiak hautatu
49
49
  taxonomy_filters_add: Erantsi iragazkia
50
50
  step:
51
- announcement: Iragarpena
51
+ announcement: Jakinarazpena
52
52
  comments_blocked: Iruzkinak blokeatuta
53
53
  creation_enabled: Parte-hartzaileek eztabaidak sor ditzakete
54
- likes_blocked: Likeak blokeatuta
55
- likes_enabled: Likeak gaituta
54
+ likes_blocked: Atsegin dut blokeatuta
55
+ likes_enabled: Atsegin dut gaituta
56
56
  debates:
57
57
  actions:
58
58
  close: Itxi
59
59
  confirm_delete_debate: Ziur zaude eztabaida hau ezabatu nahi duzula?
60
60
  deleted_debate_info: Ezabatutako eztabaida zaborretik berreskura daiteke.
61
- edit: Aldatu
61
+ edit: Editatu
62
62
  new: Beste eztabaida bat
63
63
  title: Ekintzak
64
64
  view_deleted_debates: Ikusi ezabatutako eztabaidak
@@ -69,13 +69,13 @@ eu:
69
69
  title: Itxi eztabaida
70
70
  debates:
71
71
  create:
72
- invalid: Arazo bat gertatu da eztabaida sortzean.
72
+ invalid: Arazo bat egon da eztabaida sortzean.
73
73
  success: Eztabaida zuzen sortu da.
74
74
  edit:
75
75
  title: Editatu eztabaida
76
76
  update: Eguneratu eztabaida
77
77
  form:
78
- add_attachments: Gehitu eranskinak
78
+ add_attachments: Eranskinak gehitu
79
79
  attachment_legend: Gehitu dokumentu bat edo irudi bat
80
80
  comments_layout_locked_warning: Iruzkinen formatoa ezin da aldatu iruzkinak argitaratu direlako.
81
81
  comments_visualization: Iruzkinak bistaratzea
@@ -198,18 +198,16 @@ eu:
198
198
  create_debate_event:
199
199
  space_followers:
200
200
  email_intro: |-
201
- Kaixo:
202
- "%{resources ce_title}" eztabaida berria sortu da %{participatory_space_title}} partaidetza-espazioan, egiaztatu eta egin ekarpenak:
201
+ Kaixo, "%{resource_title}" eztabaida berria sortu da %{participatory_space_title} partaidetza-espazioan, begiratu eta parte hartu:
203
202
  email_outro: Jakinarazpen hau jaso duzu %{participatory_space_title} parte hartzeko espazioa jarraitzen ari zarelako. Aurreko estekan jakinarazpenak jasotzeari utzi ahal diozu.
204
203
  email_subject: '"%{resource_title}" eztabaida berria hemen %{participatory_space_title}'
205
204
  notification_title: '<a href="%{resource_path}">%{resource_title}</a> eztabaida sortu da hemen: <a href="%{participatory_space_url}">%{participatory_space_title}</a>.'
206
205
  user_followers:
207
206
  email_intro: |-
208
- Kaixo,
209
- Jarraitzen ari zaren %{author_name} %{author_nickname} parte-hartzaileak "%{resource_title}" beste eztabaida bat sortu du. Sartu eztabaidan eta zure ekarpena egin:
207
+ Kaixo, jarraitzen duzun %{author_name} parte-hartzaileak "%{resource_title}" eztabaida berria sortu du. Begiratu eta parte hartu:
210
208
  email_outro: Jakinarazpen hau jaso duzu %{author_name} jarraitzen ari zarelako. Aurreko estekan jarraitzeari utzi ahal diozu.
211
209
  email_subject: '%{author_name} parte-hartzaileak beste eztabaida bat sortu du hemen: "%{resource_title}"'
212
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> parte-hartzaileak <a href="%{resource_path}">%{resource_title}</a> eztabaida sortu du.
210
+ notification_title: <a href="%{author_path}">%{author_name}</a> parte-hartzaileak <a href="%{resource_path}">%{resource_title}</a> eztabaida sortu du.
213
211
  creation_disabled:
214
212
  email_intro: 'Eztabaida sortzea dagoeneko ez dago aktibo %{participatory_space_title}. Oraindik irekita dauden eztabaidetan parte har dezakezu orri honetatik:'
215
213
  email_outro: Jakinarazpena jaso duzu %{participatory_space_title} jarraitzen ari zarelako. Aurreko estekan jakinarazpenak jasotzeari utzi ahal diozu.
@@ -250,12 +248,12 @@ eu:
250
248
  author: Iruzkin hau egin duen parte-hartzailearen izena
251
249
  body: Iruzkin bera
252
250
  commentable_id: Iruzkingarriaren identifikazio bakarra
253
- commentable_type: Komentagarri mota (emaitza izan bada, proposamena, etab.)
251
+ commentable_type: Iruzkin daitekeen elementuaren mota (emaitza, proposamena eta abar)
254
252
  created_at: Zein datatan sortu da iruzkin hau
255
253
  depth: Iruzkin hau hiru iruzkinetan dago (erantzuna edo erantzunaren erantzuna bada)
256
254
  id: Identifikazioa iruzkin honetarako
257
255
  locale: Parte-hartzaileak iruzkin hau uzteko erabilitako lokala (hizkuntza)
258
- root_commentable_url: Iruzkin honekin lotzen duen baliabidearen URLa
256
+ root_commentable_url: Iruzkin honi lotutako baliabidearen URLa
259
257
  debates:
260
258
  author: Eztabaida honen egilearen data
261
259
  closed_at: Zein datatan itxi da eztabaida hau
@@ -263,16 +261,16 @@ eu:
263
261
  comments_enabled: Eztabaida honek iruzkinak ditu baimenduta edo ez
264
262
  component: Emaitzaren osagaia honi dagokio
265
263
  conclusions: Eztabaidaren ondorioak itxita dago
266
- created_at: Zein datatan eta zein ordutan sortu zen eztabaida
264
+ created_at: Zein datatan eta zein ordutan sortu den eztabaida
267
265
  description: Eztabaidaren deskribapena
268
266
  end_time: Eztabaida hau amaitzen denean, eztabaida irekia bada eta denbora mugatua badu
269
267
  follows_count: Eztabaida honek duen jarraitzaile kopurua
270
268
  id: Eztabaidaren identifikatzaile bakarra
271
269
  information_updates: Egileak eztabaidari egin dizkion eguneraketak
272
270
  instructions: Eztabaida honetan iruzkina egiteko jarraibideak
273
- last_comment_at: Zein datatan aipatu zen eztabaida hau azkenekoz?
271
+ last_comment_at: Azken aldiz eztabaida hau iruzkindu den data
274
272
  last_comment_by: Eztabaidan egindako azken iruzkinaren datuak
275
- likes_count: Eztabaida honek duen like kopurua
273
+ likes_count: Eztabaidak duen Atsegin dut kopurua
276
274
  participatory_space: Zein espaziotakoa da eztabaida hau (adibidez, Partaidetza-prozesua edo Batzarra)
277
275
  reference: Plataforma honetako baliabidearen identifikatzaile bakarra
278
276
  start_time: Eztabaida hau hasten denean, eztabaida irekia bada eta denbora mugatua badu
@@ -3,6 +3,8 @@ gl:
3
3
  activemodel:
4
4
  attributes:
5
5
  debate:
6
+ closed_at: Pechado o
7
+ conclusions: Conclusións
6
8
  description: Descrición
7
9
  end_time: Remata a
8
10
  information_updates: Actualizacións de información
@@ -10,6 +12,7 @@ gl:
10
12
  start_time: Comeza en
11
13
  title: Título
12
14
  models:
15
+ decidim/debates/close_debate_event: Debate pechado
13
16
  decidim/debates/create_debate_event: Debate
14
17
  decidim/debates/creation_disabled_event: Debates desactivados
15
18
  decidim/debates/creation_enabled_event: Creación de debates activada
@@ -19,22 +22,48 @@ gl:
19
22
  one: Debate
20
23
  other: Debates
21
24
  decidim:
25
+ admin:
26
+ tooltips:
27
+ deleted_debates_info: Non se pode eliminar este debate
22
28
  components:
23
29
  debates:
30
+ actions:
31
+ comment: Comentar
32
+ create: Crear un debate
33
+ like: Gústame
34
+ vote_comment: Valorar comentario
24
35
  name: Debates
25
36
  settings:
26
37
  global:
27
38
  announcement: Anuncio
39
+ attachments_allowed: Permitir anexos
40
+ clear_all: Limpar todo
28
41
  comments_enabled: Comentarios habilitados
42
+ comments_max_length: Máximo de caracteres por comentario (deixa 0 para usar o valor predeterminado)
43
+ define_taxonomy_filters: Define algúns filtros para este espazo participativo antes de usar esta configuración.
44
+ no_taxonomy_filters_found: Non se atoparon filtros de taxonomía.
45
+ taxonomy_filters: Seleccionar filtros para o compoñente
46
+ taxonomy_filters_add: Engadir filtro
29
47
  step:
30
48
  announcement: Anuncio
31
49
  comments_blocked: Comentarios bloqueados
32
50
  creation_enabled: Os participantes poden crear debates
51
+ likes_blocked: Gústame bloqueados
52
+ likes_enabled: Gústame activados
33
53
  debates:
34
54
  actions:
55
+ close: Pechar
56
+ confirm_delete_debate: Seguro que queres eliminar este debate?
57
+ deleted_debate_info: O debate eliminado pódese restaurar desde a papeleira.
35
58
  edit: Editar
59
+ new: Novo debate
36
60
  title: Accións
61
+ view_deleted_debates: Ver debates eliminados
37
62
  admin:
63
+ debate_closes:
64
+ edit:
65
+ close: Pechar
66
+ title: Pechar debate
38
67
  debates:
39
68
  create:
40
69
  invalid: Produciuse un problema ao crear o debate.
@@ -42,19 +71,51 @@ gl:
42
71
  edit:
43
72
  title: Editar debate
44
73
  update: Actualizar debate
74
+ form:
75
+ add_attachments: Engadir anexos
76
+ comments_layout_locked_warning: Non se pode cambiar a disposición dos comentarios porque xa se publicaron comentarios.
77
+ comments_visualization: Visualización dos comentarios
78
+ comments_warning: Unha vez publicado o primeiro comentario, non se poderá cambiar a opción de visualización seleccionada.
79
+ debate_type: Tipo de debate
80
+ edit_attachments: Editar anexos
81
+ errors:
82
+ comments_layout_locked: Non se pode cambiar a disposición dos comentarios porque xa se publicaron comentarios.
83
+ finite: Finito (con horas de inicio e fin)
84
+ open: Aberto (sen horas de inicio nin fin)
85
+ single_column: 'Unha columna: os comentarios móstranse en orde cronolóxica e poden ter respostas.'
86
+ two_columns: 'Dúas columnas: os comentarios móstranse nas columnas «A favor» e «En contra» e non poden ter respostas.'
45
87
  index:
46
88
  title: Debates
89
+ manage_trash:
90
+ title: Debates eliminados
47
91
  new:
48
92
  create: Crear debate
49
93
  title: Novo debate
50
94
  update:
51
95
  invalid: Houbo un problema ao actualizar este debate.
52
96
  success: Debate actualizado con éxito.
97
+ exports:
98
+ debate_comments: Comentarios
53
99
  admin_log:
54
100
  debate:
101
+ close: "%{user_name} pechou o debate %{resource_name} no espazo %{space_name}"
55
102
  create: "%{user_name} creou o %{resource_name} debate sobre o espazo %{space_name}"
103
+ restore: "%{user_name} restaurou o debate %{resource_name} no espazo %{space_name}"
104
+ soft_delete: "%{user_name} moveu á papeleira o debate %{resource_name} do espazo %{space_name}"
56
105
  update: "%{user_name} actualizou o %{resource_name} debate sobre o espazo %{space_name}"
106
+ content_blocks:
107
+ highlighted_debates:
108
+ see_all: Ver todos os debates
109
+ debate_m:
110
+ commented_time_ago: Comentado hai %{time}
57
111
  debates:
112
+ close:
113
+ invalid: Produciuse un problema ao pechar o debate.
114
+ success: O debate pechouse correctamente.
115
+ close_debate_modal:
116
+ cancel: Cancelar
117
+ description: Cal é o resumo ou a conclusión deste debate?
118
+ send: Pechar debate
58
119
  count:
59
120
  debates_count:
60
121
  one: "Debate %{count}"
@@ -62,28 +123,87 @@ gl:
62
123
  create:
63
124
  invalid: Produciuse un problema ao crear o debate.
64
125
  success: Debate creouse con éxito.
126
+ debates:
127
+ empty: Aínda non hai debates.
128
+ empty_filters: Non hai debates con estes criterios.
129
+ edit:
130
+ back: Volver
131
+ save: Gardar cambios
132
+ title: Editar debate
65
133
  filters:
134
+ activity: A miña actividade
66
135
  all: Todo
67
136
  category: Categoría
68
137
  category_prompt: Selecciona unha categoría
138
+ commented: Comentados
139
+ my_debates: Os meus debates
69
140
  official: Oficial
70
141
  origin: Orixe
71
142
  participants: Participantes
72
143
  search: Busca
144
+ state: Estado
145
+ state_values:
146
+ closed: Pechado
147
+ ongoing: En curso
73
148
  index:
74
149
  new_debate: Novo debate
75
150
  new:
76
151
  back: De volta
77
152
  create: Crear
153
+ title: Crear un novo debate
154
+ orders:
155
+ label: Ordenar debates por
156
+ most_commented: Máis comentados
157
+ random: Orde aleatoria
158
+ recent: Máis recentes
159
+ updated: Actualizados recentemente
160
+ show:
161
+ close_debate: Pechar
162
+ closed: Pechado
163
+ debate_conclusions_are: 'O debate pechouse o %{date} con estas conclusións:'
164
+ edit_conclusions: Editar conclusións
165
+ edit_debate: Editar
166
+ not_started: Sen iniciar
167
+ ongoing: En curso
168
+ open_ended: Sen data de fin
169
+ participants_count: Participantes
170
+ update:
171
+ invalid: Produciuse un problema ao actualizar o debate.
172
+ success: Debate actualizado con éxito.
173
+ last_activity:
174
+ debate_updated: 'Debate actualizado:'
175
+ new_debate: 'Novo debate:'
78
176
  models:
79
177
  debate:
80
178
  fields:
179
+ end: Fin
81
180
  end_time: Data de finalización
82
181
  official_debate: Debate oficial
182
+ start: Inicio
83
183
  start_time: Data de inicio
184
+ taxonomies: Taxonomías
84
185
  title: Título
186
+ download_your_data:
187
+ show:
188
+ debate_comments: Exportación dos comentarios dos debates
189
+ debates: Exportación de debates
85
190
  events:
86
191
  debates:
192
+ create_debate_event:
193
+ space_followers:
194
+ email_intro: |-
195
+ Ola,
196
+ Creouse un novo debate «%{resource_title}» no espazo participativo %{participatory_space_title}. Consúltao e participa:
197
+ email_outro: Recibiches esta notificación porque segues o espazo participativo %{participatory_space_title}. Podes deixar de recibir notificacións desde a ligazón anterior.
198
+ email_subject: Novo debate «%{resource_title}» en %{participatory_space_title}
199
+ notification_title: Creouse o debate <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
200
+ user_followers:
201
+ email_intro: |-
202
+ Ola,
203
+ %{author_name}, a quen segues, creou un novo debate «%{resource_title}». Consúltao e participa:
204
+ email_outro: Recibiches esta notificación porque segues a %{author_name}. Podes deixar de recibir notificacións desde a ligazón anterior.
205
+ email_subject: Novo debate «%{resource_title}» de %{author_name}
206
+ notification_title: <a href="%{author_path}">%{author_name}</a> creou o debate <a href="%{resource_path}">%{resource_title}</a>.
87
207
  creation_disabled:
88
208
  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:'
89
209
  email_outro: Recibiches esta notificación porque estás seguindo %{participatory_space_title}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
@@ -93,6 +213,7 @@ gl:
93
213
  email_intro: 'Agora podes comezar novos debates en %{participatory_space_title}. Comezar a participar nesta páxina:'
94
214
  email_outro: Recibiches esta notificación porque estás seguindo %{participatory_space_title}. Podes deixar de recibir notificacións seguindo a ligazón anterior.
95
215
  email_subject: Os debates agora están dispoñibles en %{participatory_space_title}
216
+ notification_title: Agora podes iniciar <a href="%{resource_path}">novos debates</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
96
217
  debate_closed:
97
218
  affected_user:
98
219
  email_intro: 'Pechouse o debate "%{resource_title}". Podes ler as súas conclusións na súa páxina:'
@@ -115,5 +236,44 @@ gl:
115
236
  name: Debates
116
237
  next_level_in: '¡Participa en %{score} debates máis para alcanzar o seguinte nivel!'
117
238
  unearned_another: Este usuario aínda non participou en ningún debate.
239
+ unearned_own: Aínda non participaches en ningún debate.
240
+ open_data:
241
+ help:
242
+ debate_comments:
243
+ alignment: Se este comentario foi a favor, en contra ou neutral
244
+ author: O nome da persoa participante que fixo este comentario
245
+ body: O propio comentario
246
+ commentable_id: O identificador único do recurso comentable
247
+ commentable_type: O tipo de recurso comentable (se era un resultado, unha proposta etc.)
248
+ created_at: A data na que se creou este comentario
249
+ depth: A posición deste comentario na árbore de comentarios (se é unha resposta ou unha resposta a outra resposta)
250
+ id: O identificador deste comentario
251
+ locale: A configuración rexional (idioma) da persoa participante cando deixou este comentario
252
+ root_commentable_url: O URL do recurso ao que está vinculado este comentario
253
+ debates:
254
+ author: Os datos da autoría deste debate
255
+ closed_at: A data na que se pechou este debate
256
+ comments: O número de comentarios deste debate
257
+ comments_enabled: Indica se os comentarios están activados neste debate
258
+ component: O compoñente ao que pertence o debate
259
+ conclusions: As conclusións do debate, se foi pechado
260
+ created_at: A data e hora na que se creou o debate
261
+ description: A descrición do debate
262
+ end_time: Cando remata este debate, se é aberto e ten unha duración limitada
263
+ follows_count: O número de persoas seguidoras deste debate
264
+ id: O identificador único do debate
265
+ information_updates: As actualizacións realizadas pola autoría no debate
266
+ instructions: As instrucións para comentar neste debate
267
+ last_comment_at: A data na que se comentou este debate por última vez
268
+ last_comment_by: Os datos do último comentario realizado no debate
269
+ likes_count: O número de «Gústame» do debate
270
+ participatory_space: O espazo ao que pertence este debate (por exemplo, un proceso participativo ou unha asemblea)
271
+ reference: O identificador único do recurso nesta plataforma
272
+ start_time: Cando comeza este debate, se é aberto e ten unha duración limitada
273
+ taxonomies: As taxonomías do proxecto
274
+ title: O título do debate
275
+ updated_at: A data da última actualización do debate
276
+ url: O URL no que se pode atopar este debate
118
277
  statistics:
119
278
  debates_count: Debates
279
+ debates_count_tooltip: O número de debates realizados.
@@ -76,10 +76,13 @@ ja:
76
76
  form:
77
77
  add_attachments: 添付ファイルを追加
78
78
  attachment_legend: ドキュメントまたは画像を追加
79
+ comments_layout_locked_warning: コメントがすでに投稿されているため、コメントレイアウトを変更できません。
79
80
  comments_visualization: コメントの視覚化
80
81
  comments_warning: 最初のコメントが投稿されると、選択した表示オプションは変更できません。
81
82
  debate_type: ディベートタイプ
82
83
  edit_attachments: 添付ファイルを編集
84
+ errors:
85
+ comments_layout_locked: コメントがすでに投稿されているため、コメントレイアウトを変更できません。
83
86
  finite: 期間限定 (開始時刻と終了時刻あり)
84
87
  open: 無期限 (開始時刻または終了時刻なし)
85
88
  single_column: '1カラム: コメントは時系列で表示され、返信を持つことができます。'
@@ -42,6 +42,7 @@ sv:
42
42
  attachments_allowed: Tillåt bilagor
43
43
  clear_all: Rensa
44
44
  comments_enabled: Aktivera kommentarer
45
+ comments_max_length: Max antal tecken per kommentar (ange 0 för standardvärdet)
45
46
  define_taxonomy_filters: Ställ in filter innan du använder den här inställningen.
46
47
  no_taxonomy_filters_found: Inga filter för kategorier hittades.
47
48
  taxonomy_filters: Välj filter för komponenten
@@ -76,10 +77,13 @@ sv:
76
77
  form:
77
78
  add_attachments: Lägg till bilagor
78
79
  attachment_legend: Lägg till ett dokument eller en bild
80
+ comments_layout_locked_warning: Kommentarslayouten kan inte ändras eftersom kommentarer redan har publicerats.
79
81
  comments_visualization: Visualisering av kommentarer
80
82
  comments_warning: Visningsalternativet inte längre ändras efter att den första kommentaren har postats.
81
83
  debate_type: Typ av debatt
82
84
  edit_attachments: Redigera bilagor
85
+ errors:
86
+ comments_layout_locked: Kommentarslayouten kan inte ändras eftersom kommentarer redan har publicerats.
83
87
  finite: Tidsbegränsad (med start- och sluttid)
84
88
  open: Öppen (utan start- eller sluttid)
85
89
  single_column: 'En kolumn: Kommentarer visas i kronologisk ordning och kan ha svar.'
@@ -155,7 +159,7 @@ sv:
155
159
  title: Skapa ny debatt
156
160
  orders:
157
161
  label: Sortera debatter efter
158
- most_commented: Mest kommenterad
162
+ most_commented: Flest kommentarer
159
163
  random: Slumpmässig ordning
160
164
  recent: Senaste
161
165
  updated: Senast uppdaterade
@@ -199,6 +203,13 @@ sv:
199
203
  email_outro: Du har fått detta meddelande eftersom du följer %{participatory_space_title}. Du kan sluta att ta emot meddelanden via föregående länk.
200
204
  email_subject: Ny debatt "%{resource_title}" i %{participatory_space_title}
201
205
  notification_title: Debatten <a href="%{resource_path}">%{resource_title}</a> skapades i <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
206
+ user_followers:
207
+ email_intro: |-
208
+ Hej,
209
+ %{author_name}, som du följer, har skapat en ny debatt, ”%{resource_title}”. Ta en titt och bidra:
210
+ email_outro: Du har fått det här meddelandet eftersom du följer %{author_name}. Du kan sluta ta emot meddelanden genom att följa länken ovan.
211
+ email_subject: Ny debatt ”%{resource_title}” av %{author_name}
212
+ notification_title: <a href="%{author_path}">%{author_name}</a> skapade debatten <a href="%{resource_path}">%{resource_title}</a>.
202
213
  creation_disabled:
203
214
  email_intro: 'Att skapa debatter är inte längre aktivt i %{participatory_space_title}. Du kan fortfarande delta i öppna debatter via den här sidan:'
204
215
  email_outro: Du har fått det här meddelandet eftersom du följer %{participatory_space_title}. Du kan sluta att ta emot meddelanden via föregående länk.
@@ -3,7 +3,7 @@
3
3
  $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
- version = "0.32.0"
6
+ version = "0.32.2"
7
7
  s.version = version
8
8
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva", "Genis Matutes Pujol"]
9
9
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com", "genis.matutes@gmail.com"]
@@ -62,7 +62,7 @@ FactoryBot.define do
62
62
 
63
63
  after(:build) do |debate|
64
64
  debate.title = Decidim::ContentProcessor.parse(debate.title, current_organization: debate.organization).rewrite
65
- debate.description = Decidim::ContentProcessor.parse_with_processor(:inline_images, debate.description, current_organization: debate.organization).rewrite
65
+ debate.description = Decidim::ContentProcessor.parse(debate.description, current_organization: debate.organization).rewrite
66
66
  end
67
67
  end
68
68
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-debates version.
5
5
  module Debates
6
6
  def self.version
7
- "0.32.0"
7
+ "0.32.2"
8
8
  end
9
9
  end
10
10
  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.32.0
4
+ version: 0.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -18,70 +18,70 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.32.0
21
+ version: 0.32.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.32.0
28
+ version: 0.32.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.32.0
35
+ version: 0.32.2
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.32.0
42
+ version: 0.32.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-admin
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.32.0
49
+ version: 0.32.2
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.32.0
56
+ version: 0.32.2
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-assemblies
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.32.0
63
+ version: 0.32.2
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.32.0
70
+ version: 0.32.2
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-dev
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.32.0
77
+ version: 0.32.2
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.32.0
84
+ version: 0.32.2
85
85
  description: A debates component for decidim's participatory spaces.
86
86
  email:
87
87
  - josepjaume@gmail.com