decidim-comments 0.28.6 → 0.29.0.rc1

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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/comments/comment/actions.erb +4 -3
  3. data/app/cells/decidim/comments/comment/deletion_data.erb +1 -1
  4. data/app/cells/decidim/comments/comment/show.erb +3 -3
  5. data/app/cells/decidim/comments/comment_cell.rb +0 -2
  6. data/app/cells/decidim/comments/comment_form/opinion.erb +4 -4
  7. data/app/cells/decidim/comments/comment_form_cell.rb +0 -2
  8. data/app/cells/decidim/comments/comment_metadata_cell.rb +1 -1
  9. data/app/cells/decidim/comments/comments_cell.rb +0 -3
  10. data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +0 -1
  11. data/app/commands/decidim/comments/create_comment.rb +6 -6
  12. data/app/commands/decidim/comments/update_comment.rb +3 -4
  13. data/app/controllers/decidim/comments/comments_controller.rb +5 -3
  14. data/app/helpers/decidim/comments/comment_cells_helper.rb +1 -1
  15. data/app/models/decidim/comments/comment.rb +1 -1
  16. data/app/models/decidim/comments/seed.rb +55 -5
  17. data/app/packs/entrypoints/decidim_comments.js +1 -1
  18. data/app/packs/src/decidim/comments/comments.component.js +8 -8
  19. data/app/packs/src/decidim/comments/comments.component.test.js +14 -14
  20. data/app/views/decidim/comments/comments/create.js.erb +2 -2
  21. data/app/views/decidim/comments/comments/delete.js.erb +5 -2
  22. data/app/views/decidim/comments/comments/update.js.erb +0 -6
  23. data/app/views/decidim/comments/votes/create.js.erb +1 -1
  24. data/config/locales/bg.yml +0 -1
  25. data/config/locales/ca.yml +2 -2
  26. data/config/locales/cs.yml +0 -6
  27. data/config/locales/de.yml +1 -2
  28. data/config/locales/en.yml +1 -1
  29. data/config/locales/es-MX.yml +1 -1
  30. data/config/locales/es-PY.yml +1 -1
  31. data/config/locales/es.yml +2 -2
  32. data/config/locales/eu.yml +37 -40
  33. data/config/locales/fi-plain.yml +1 -1
  34. data/config/locales/fi.yml +10 -10
  35. data/config/locales/fr-CA.yml +1 -1
  36. data/config/locales/fr.yml +1 -1
  37. data/config/locales/ja.yml +1 -1
  38. data/config/locales/lt.yml +1 -1
  39. data/config/locales/pl.yml +2 -2
  40. data/config/locales/pt-BR.yml +0 -3
  41. data/config/locales/ro-RO.yml +60 -68
  42. data/config/locales/sv.yml +24 -42
  43. data/config/locales/tr-TR.yml +1 -2
  44. data/db/seeds.rb +1 -0
  45. data/decidim-comments.gemspec +2 -2
  46. data/lib/decidim/api/comment_type.rb +0 -13
  47. data/lib/decidim/api/commentable_interface.rb +1 -7
  48. data/lib/decidim/api/commentable_mutation_type.rb +2 -1
  49. data/lib/decidim/comments/commentable.rb +2 -2
  50. data/lib/decidim/comments/commentable_with_component.rb +1 -3
  51. data/lib/decidim/comments/query_extensions.rb +1 -1
  52. data/lib/decidim/comments/test/factories.rb +1 -1
  53. data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +3 -2
  54. data/lib/decidim/comments/version.rb +1 -1
  55. data/lib/tasks/upgrade/decidim_comments.rake +28 -0
  56. metadata +14 -17
  57. data/config/locales/bn-BD.yml +0 -1
  58. data/config/locales/bs-BA.yml +0 -15
  59. data/config/locales/ca-IT.yml +0 -176
  60. data/lib/tasks/decidim_comments.rake +0 -26
@@ -1,176 +0,0 @@
1
- ---
2
- ca-IT:
3
- activemodel:
4
- models:
5
- decidim/comments/comment_by_followed_user_event: Comentari
6
- decidim/comments/comment_created_event: Comentari
7
- decidim/comments/comment_upvoted_event: Comentari valorat positivament
8
- decidim/comments/reply_created_event: Resposta al comentari
9
- decidim/comments/user_group_mentioned_event: Mencionar
10
- decidim/comments/user_mentioned_event: Mencionar
11
- activerecord:
12
- models:
13
- decidim/comments/comment:
14
- one: Comentari
15
- other: Comentaris
16
- decidim/comments/comment_vote:
17
- one: Vot
18
- other: Vots
19
- decidim:
20
- comments:
21
- admin:
22
- shared:
23
- availability_fields:
24
- enabled: Comentaris habilitats
25
- end_time: Comentaris habilitats fins al
26
- start_time: Comentaris habilitats des de
27
- comments:
28
- create:
29
- error: S'ha produït un error en crear el comentari.
30
- delete:
31
- error: El comentari no s'ha pogut eliminar.
32
- update:
33
- error: S'ha produït un error en actualitzar el comentari.
34
- comments_title: Comentari
35
- last_activity:
36
- new_comment: 'Nou comentari:'
37
- votes:
38
- create:
39
- error: S'ha produït un error en votar el comentari.
40
- components:
41
- add_comment_form:
42
- account_message: Per afegir un comentari, <a href="%{sign_in_url}">inicia la teva sessió</a> o <a href="%{sign_up_url}">registra't</a>.
43
- form:
44
- body:
45
- label: Comentari
46
- placeholder: Què en penses d'això?
47
- form_error: El text és necessari i no pot ser més llarg de %{length}.
48
- submit_reply: Publicar resposta
49
- submit_root_comment: Publicar comentari
50
- user_group_id:
51
- label: Comentar com a
52
- opinion:
53
- label: La teva opinió sobre aquest tema
54
- negative: Negativa
55
- negative_selected: La teva opinió sobre aquest tema és negativa
56
- neutral: Neutral
57
- neutral_selected: La teva opinió sobre aquest tema és neutral
58
- positive: Positiva
59
- positive_selected: La teva opinió sobre aquest tema és positiva
60
- remaining_characters: "Queden %{count} caràcters"
61
- remaining_characters_1: "Queda %{count} caràcter"
62
- title: Deixa el teu comentari
63
- comment:
64
- alignment:
65
- against: En contra
66
- in_favor: A favor
67
- cancel_reply: Cancel·lar resposta
68
- comment_label: Comentari %{comment_id}
69
- comment_label_reply: Comentari %{comment_id} (respon al comentari %{parent_comment_id})
70
- confirm_destroy: Segur que vols esborrar aquest comentari?
71
- controls_label: Controls de comentaris
72
- delete: Esborrar
73
- deleted_at: Comentari esborrat el %{date}
74
- deleted_user: Participant eliminada
75
- edit: Editar
76
- edited: Editat
77
- hide_replies:
78
- one: Amagar resposta
79
- other: Amagar %{count} respostes
80
- moderated_at: Comentari moderat el %{date}
81
- reply: Respondre
82
- report:
83
- action: Denúncia
84
- already_reported: Aquest contingut ja ha estat denunciat i serà revisat per una administradora.
85
- close: Tancar
86
- description: Aquest contingut és inapropiat?
87
- details: Comentaris addicionals
88
- reasons:
89
- does_not_belong: Conté activitat il·legal, amenaces de suïcidi, informació personal, o qualsevol altra cosa que creguis que no pertany a %{organization_name}.
90
- offensive: Conté racisme, sexisme, insults, atacs personals, amenaces de mort, peticions de suïcidi o qualsevol forma de discurs d'odi.
91
- spam: Conté "clickbait", publicitat o estafes.
92
- title: Notificar contingut inapropiat
93
- show_replies:
94
- one: Mostra la resposta
95
- other: Mostra les %{count} respostes
96
- single_comment_link_title: Obtenir enllaç
97
- comment_order_selector:
98
- order:
99
- best_rated: Més ben valorats
100
- most_discussed: Més discutit
101
- older: Més antic
102
- recent: Recent
103
- title: 'Ordenar per:'
104
- comments:
105
- blocked_comments_for_unauthorized_user_warning: Has d'estar verificat abans de poder fer comentaris, però pots llegir els comentaris anteriors.
106
- blocked_comments_for_user_warning: No pots fer comentaris en aquest moment, però pots llegir els anteriors.
107
- blocked_comments_warning: Els comentaris estan desactivats en aquest moment, però pots llegir els anteriors.
108
- comment_details_title: Detalls del comentari
109
- loading: Carregant els comentaris ...
110
- single_comment_warning: <a href="%{url}">Mostra tots els comentaris</a>
111
- single_comment_warning_title: Estàs veient un sol comentari
112
- title:
113
- one: "%{count} comentari"
114
- other: "%{count} comentaris"
115
- down_vote_button:
116
- text: No estic d'acord amb aquest comentari
117
- edit_comment_modal_form:
118
- close: Tancar
119
- form:
120
- body:
121
- label: Comentar
122
- placeholder: Què opines sobre això?
123
- submit: Enviar
124
- title: Edita el teu comentari
125
- up_vote_button:
126
- text: Estic d'acord amb aquest comentari
127
- events:
128
- comments:
129
- comment_by_followed_user:
130
- email_intro: "%{author_name} ha deixat un comentari a %{resource_title}. Podeu llegir-lo en aquesta pàgina:"
131
- email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{author_name}". Pots deixar de seguir a aquesta participant des de la seva pàgina de perfil.
132
- email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
133
- notification_title: Hi ha un nou comentari per <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>.
134
- comment_by_followed_user_group:
135
- email_intro: '%{author_name} ha deixat un comentari a%{resource_title}. Pots llegir-lo en aquesta pàgina:'
136
- email_outro: Reps aquesta notificació perquè segueixes a "%{author_name}". Pots deixar de seguir aquest grup des de la seva pàgina de perfil.
137
- email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
138
- notification_title: Hi ha un nou comentari per <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>.
139
- comment_created:
140
- email_intro: "Algú ha deixat un comentari a \"%{resource_title}\". Pots llegir el comentari a través del següent enllaç:"
141
- email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{resource_title}" o la seva autora. Pots deixar de seguir-la des de l'enllaç anterior.
142
- email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
143
- notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
144
- comment_downvoted:
145
- email_intro: El teu comentari a "%{resource_title}" ha rebut un vot negatiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
146
- email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
147
- email_subject: El teu comentari a "%{resource_title}" ha rebut un vot negatiu.
148
- notification_title: El teu <a href="%{resource_path}">comentari</a> a "%{resource_title}" ha rebut un vot negatiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
149
- comment_upvoted:
150
- email_intro: El teu comentari a "%{resource_title}" ha rebut un vot positiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
151
- email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
152
- email_subject: El teu comentari a "%{resource_title}" ha rebut un vot positiu.
153
- notification_title: El teu <a href="%{resource_path}">comentari</a> a "%{resource_title}" ha rebut un vot positiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
154
- reply_created:
155
- email_intro: "%{author_name} ha respost el teu comentari a %{resource_title}. Pots llegir-lo en aquesta pàgina:"
156
- email_outro: Has rebut aquesta notificació perquè s'ha respost el teu comentari.
157
- email_subject: "%{author_name} ha respost el teu comentari a %{resource_title}"
158
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha respost el teu comentari a <a href="%{resource_path}">%{resource_title}</a>
159
- user_group_mentioned:
160
- email_intro: Un grup al qual pertanys ha estat esmentat
161
- email_outro: Has rebut aquesta notificació perquè formes part del grup "%{group_name}" que ha estat esmentat a %{resource_title}.
162
- email_subject: T'han esmentat a %{resource_title} com a membre de %{group_name}
163
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> t'ha esmentat com a membre de <a href="%{group_path}">%{group_name} %{group_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>
164
- user_mentioned:
165
- email_intro: Has estat esmentada
166
- email_outro: Has rebut aquesta notificació perquè t'han esmentat al comentari "%{resource_title}".
167
- email_subject: Has estat esmentada a %{resource_title}
168
- notification_title: Has estat esmentada a <a href="%{resource_path}">%{resource_title}</a> per <a href="%{author_path}">%{author_name} %{author_nickname}</a>
169
- metrics:
170
- comments:
171
- description: Nombre de comentaris generats per les participants
172
- object: comentaris
173
- title: Comentaris
174
- errors:
175
- messages:
176
- cannot_have_comments: no es poden fer comentaris
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- namespace :decidim_comments do
4
- desc "Adds participatory_process_id to comments if they are associated with a participatory process"
5
- task update_participatory_process_in_comments: :environment do
6
- puts "Updating comments..."
7
- ok = errors = 0
8
-
9
- log = ActiveSupport::Logger.new(Rails.root.join("log/update_participatory_process_in_comments.log"))
10
- Decidim::Comments::Comment.where(participatory_space: nil).find_each do |c|
11
- c.participatory_space = if c.root_commentable.is_a?(Decidim::Participable)
12
- c.root_commentable
13
- else
14
- c.commentable.try(:participatory_space)
15
- end
16
- c.save(validate: false)
17
- ok += 1
18
- rescue StandardError => e
19
- errors += 1
20
- log.info "Error updating comment ##{c.id}: #{e.message}"
21
- end
22
-
23
- puts "#{ok} comments updated."
24
- puts "#{errors} errors found. Check the file 'log/update_participatory_process_in_comments.log' for more information." if errors.positive?
25
- end
26
- end