decidim-comments 0.24.2 → 0.25.0.rc3

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -20
  3. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  4. data/app/cells/decidim/comments/comment/actions.erb +1 -1
  5. data/app/cells/decidim/comments/comment/deletion_data.erb +1 -0
  6. data/app/cells/decidim/comments/comment/show.erb +30 -21
  7. data/app/cells/decidim/comments/comment/utilities.erb +40 -12
  8. data/app/cells/decidim/comments/comment/votes.erb +6 -6
  9. data/app/cells/decidim/comments/comment_cell.rb +29 -0
  10. data/app/cells/decidim/comments/comment_form/show.erb +1 -1
  11. data/app/cells/decidim/comments/comments/add_comment.erb +10 -6
  12. data/app/cells/decidim/comments/comments/order_control.erb +4 -5
  13. data/app/cells/decidim/comments/comments/show.erb +2 -4
  14. data/app/cells/decidim/comments/comments/user_comments_blocked_warning.erb +5 -1
  15. data/app/cells/decidim/comments/comments_cell.rb +24 -2
  16. data/app/cells/decidim/comments/edit_comment_modal_form/show.erb +29 -0
  17. data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +53 -0
  18. data/app/commands/decidim/comments/create_comment.rb +2 -1
  19. data/app/commands/decidim/comments/delete_comment.rb +46 -0
  20. data/app/commands/decidim/comments/update_comment.rb +62 -0
  21. data/app/controllers/decidim/comments/comments_controller.rb +63 -6
  22. data/app/events/decidim/comments/comment_voted_event.rb +9 -0
  23. data/app/forms/decidim/comments/comment_form.rb +1 -1
  24. data/app/models/decidim/comments/comment.rb +24 -1
  25. data/app/packs/src/decidim/comments/comments.component.js +300 -0
  26. data/app/{assets/javascripts → packs/src}/decidim/comments/comments.component.test.js +116 -26
  27. data/app/packs/src/decidim/comments/comments.component_for_testing.js +8 -0
  28. data/app/packs/src/decidim/comments/comments.js +1 -0
  29. data/app/permissions/decidim/comments/permissions.rb +10 -1
  30. data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +1 -1
  31. data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -1
  32. data/app/queries/decidim/comments/sorted_comments.rb +8 -6
  33. data/app/views/decidim/comments/comments/_delete.html.erb +5 -0
  34. data/app/views/decidim/comments/comments/_edited_comment.html.erb +1 -0
  35. data/app/views/decidim/comments/comments/create.js.erb +4 -2
  36. data/app/views/decidim/comments/comments/delete.js.erb +17 -0
  37. data/app/views/decidim/comments/comments/deletion_error.js.erb +1 -0
  38. data/app/views/decidim/comments/comments/reload.js.erb +2 -0
  39. data/app/views/decidim/comments/comments/update.js.erb +8 -0
  40. data/app/views/decidim/comments/comments/update_error.js.erb +1 -0
  41. data/config/assets.rb +5 -0
  42. data/config/locales/ar.yml +0 -1
  43. data/config/locales/ca.yml +7 -1
  44. data/config/locales/cs.yml +25 -1
  45. data/config/locales/de.yml +7 -1
  46. data/config/locales/el.yml +0 -1
  47. data/config/locales/en.yml +25 -1
  48. data/config/locales/es-MX.yml +7 -1
  49. data/config/locales/es-PY.yml +7 -1
  50. data/config/locales/es.yml +7 -1
  51. data/config/locales/fi-plain.yml +25 -1
  52. data/config/locales/fi.yml +25 -1
  53. data/config/locales/fr-CA.yml +25 -1
  54. data/config/locales/fr-LU.yml +162 -0
  55. data/config/locales/fr.yml +25 -1
  56. data/config/locales/gl.yml +25 -1
  57. data/config/locales/hu.yml +0 -1
  58. data/config/locales/it.yml +38 -1
  59. data/config/locales/ja.yml +35 -1
  60. data/config/locales/lb-LU.yml +1 -0
  61. data/config/locales/lv.yml +0 -1
  62. data/config/locales/nl.yml +27 -2
  63. data/config/locales/no.yml +0 -1
  64. data/config/locales/pl.yml +7 -1
  65. data/config/locales/pt-BR.yml +61 -0
  66. data/config/locales/pt.yml +0 -1
  67. data/config/locales/ro-RO.yml +25 -1
  68. data/config/locales/sk.yml +0 -1
  69. data/config/locales/sr-CS.yml +0 -1
  70. data/config/locales/sv.yml +25 -1
  71. data/config/locales/tr-TR.yml +0 -1
  72. data/config/locales/zh-CN.yml +0 -1
  73. data/db/migrate/20200706123136_make_comments_handle_i18n.rb +1 -1
  74. data/db/migrate/20210402124534_add_participatory_process_to_comments.rb +12 -0
  75. data/db/migrate/20210529095942_add_deleted_at_column_to_comments.rb +7 -0
  76. data/lib/decidim/comments/commentable.rb +6 -1
  77. data/lib/decidim/comments/commentable_with_component.rb +33 -0
  78. data/lib/decidim/comments/engine.rb +1 -9
  79. data/lib/decidim/comments/test/factories.rb +1 -0
  80. data/lib/decidim/comments/version.rb +1 -1
  81. data/lib/decidim/comments.rb +1 -0
  82. data/lib/tasks/decidim_comments.rake +15 -0
  83. metadata +32 -29
  84. data/app/assets/config/decidim_comments_manifest.js +0 -1
  85. data/app/assets/javascripts/decidim/comments/comments.component.js.es6 +0 -292
  86. data/app/assets/javascripts/decidim/comments/comments.js.erb +0 -10
  87. data/config/locales/ja-JP.yml +0 -120
@@ -0,0 +1 @@
1
+ lb:
@@ -57,7 +57,6 @@ lv:
57
57
  offensive: Satur rasismu, seksismu, lamuvārdus, personiskus uzbrukumus, nāves draudus, ierosinājumus veikt pašnāvību vai jebkāda veida naida runu.
58
58
  spam: Satur klikšķu ēsmu (clickbait), reklāmu, krāpšanu vai skriptu robotprogrammatūru.
59
59
  show_replies: Rādīt %{replies_count} atbildes
60
- single_comment_link_title: Iegūt saiti uz atsevišķu komentāru
61
60
  comment_order_selector:
62
61
  order:
63
62
  best_rated: Vislabāk novērtētie
@@ -16,6 +16,11 @@ nl:
16
16
  other: Stemmen
17
17
  decidim:
18
18
  comments:
19
+ comments:
20
+ delete:
21
+ error: De reactie kon niet worden verwijderd.
22
+ update:
23
+ error: Er is een probleem opgetreden bij het bijwerken van de reactie.
19
24
  comments_count: Aantal reacties
20
25
  last_activity:
21
26
  new_comment_at_html: "<span>Nieuwe opmerking op %{link}</span>"
@@ -35,7 +40,13 @@ nl:
35
40
  user_group_id:
36
41
  label: Reageer als
37
42
  opinion:
43
+ label: Jouw mening over dit onderwerp
44
+ negative: Negatief
45
+ negative_selected: Jouw mening over dit onderwerp is negatief
38
46
  neutral: Neutraal
47
+ neutral_selected: Jouw mening over dit onderwerp is neutraal
48
+ positive: Positief
49
+ positive_selected: Jouw mening over dit onderwerp is positief
39
50
  remaining_characters: "%{count} tekens over"
40
51
  remaining_characters_1: "%{count} teken over"
41
52
  title: Voeg je reactie toe
@@ -43,7 +54,12 @@ nl:
43
54
  alignment:
44
55
  against: Tegen
45
56
  in_favor: Voor
57
+ confirm_destroy: Weet je zeker dat je deze reactie wil verwijderen?
58
+ delete: Verwijderen
59
+ deleted_at: Reactie verwijderd op %{date}
46
60
  deleted_user: Verwijderde deelnemer
61
+ edit: Bewerk
62
+ edited: Bewerkt
47
63
  hide_replies: Antwoorden verbergen
48
64
  reply: Antwoord
49
65
  report:
@@ -58,7 +74,7 @@ nl:
58
74
  spam: Bevat clickbait, reclame, oplichting of script bots.
59
75
  title: Meld ongepaste inhoud
60
76
  show_replies: Toon %{replies_count} reacties
61
- single_comment_link_title: Krijg link naar enkele reactie
77
+ single_comment_link_title: Haal link op
62
78
  comment_order_selector:
63
79
  order:
64
80
  best_rated: Best beoordeeld
@@ -69,7 +85,8 @@ nl:
69
85
  comment_thread:
70
86
  title: Gesprek met %{authorName}
71
87
  comments:
72
- blocked_comments_for_user_warning: U kunt op dit moment geen opmerkingen maken, maar u kunt de vorige wel lezen.
88
+ blocked_comments_for_unauthorized_user_warning: Je kan op dit moment geen opmerkingen toevoegen, maar je kunt de eerdere opmerkingen wel lezen.
89
+ blocked_comments_for_user_warning: Je kunt op dit moment geen opmerkingen toevoegen, maar je kunt eerdere reacties wel lezen.
73
90
  blocked_comments_warning: Reacties zijn op dit moment uitgeschakeld, maar je kan de vorige berichten lezen.
74
91
  comment_details_title: Reactieonderdelen
75
92
  loading: Reacties laden...
@@ -77,6 +94,14 @@ nl:
77
94
  single_comment_warning_title: Je ziet een enkele reactie
78
95
  down_vote_button:
79
96
  text: Ik ben het niet eens met deze reactie
97
+ edit_comment_modal_form:
98
+ close: Sluit
99
+ form:
100
+ body:
101
+ label: Reactie
102
+ placeholder: Wat wil je hierover zeggen?
103
+ submit: Verzenden
104
+ title: Bewerk je reactie
80
105
  up_vote_button:
81
106
  text: Ik ben het eens met deze reactie
82
107
  events:
@@ -57,7 +57,6 @@
57
57
  spam: Inneholder klikkagn, reklame, svindel eller manus-roboter.
58
58
  title: Rapporter upassende innhold
59
59
  show_replies: Vis %{replies_count} svar
60
- single_comment_link_title: Få lenke til enkeltkommentar
61
60
  comment_order_selector:
62
61
  order:
63
62
  best_rated: Best vurdert
@@ -43,7 +43,13 @@ pl:
43
43
  user_group_id:
44
44
  label: Komentuj jako
45
45
  opinion:
46
+ label: Twoja opinia na ten temat
47
+ negative: Negatywna
48
+ negative_selected: Twoja opinia na ten temat jest negatywna
46
49
  neutral: Neutralny
50
+ neutral_selected: Twoja opinia na ten temat jest neutralna
51
+ positive: Pozytywna
52
+ positive_selected: Twoja opinia na ten temat jest pozytywna
47
53
  remaining_characters: "Pozostało %{count} znaków"
48
54
  remaining_characters_1: "Pozostał %{count} znak"
49
55
  title: Dodaj swój komentarz
@@ -51,6 +57,7 @@ pl:
51
57
  alignment:
52
58
  against: Negatywny
53
59
  in_favor: Pozytywny
60
+ confirm_destroy: Czy na pewno chcesz usunąć ten komentarz?
54
61
  deleted_user: Usunięty użytkownik
55
62
  hide_replies: Ukryj odpowiedzi
56
63
  reply: Odpowiedz
@@ -66,7 +73,6 @@ pl:
66
73
  spam: Zawiera clickbaity, reklamy, oszustwa lub skrypty botów.
67
74
  title: Zgłoś niewłaściwą treść
68
75
  show_replies: Pokaż %{replies_count} odpowiedzi
69
- single_comment_link_title: Pobierz link do pojedynczego komentarza
70
76
  comment_order_selector:
71
77
  order:
72
78
  best_rated: Najlepiej oceniane
@@ -16,8 +16,18 @@ pt:
16
16
  other: Votos
17
17
  decidim:
18
18
  comments:
19
+ comments:
20
+ create:
21
+ error: Houveram erros ao criar o comentário.
22
+ delete:
23
+ error: O comentário não pode ser excluído.
24
+ update:
25
+ error: Houve um erro ao atualizar o comentário.
26
+ comments_count: Contagem de Comentários
27
+ comments_title: Comentários
19
28
  last_activity:
20
29
  new_comment_at_html: "<span>Novo comentário em %{link}</span>"
30
+ view: Visualizar
21
31
  votes:
22
32
  create:
23
33
  error: Houve erros ao votar o comentário.
@@ -33,7 +43,13 @@ pt:
33
43
  user_group_id:
34
44
  label: Comente como
35
45
  opinion:
46
+ label: Sua opinião sobre este tópico
47
+ negative: Negativo
48
+ negative_selected: Sua opinião sobre este tópico é negativa
36
49
  neutral: Neutro
50
+ neutral_selected: Sua opinião sobre este tópico é neutra
51
+ positive: Positivo
52
+ positive_selected: Sua opinião sobre este tópico é positiva
37
53
  remaining_characters: "%{count} caracteres restantes"
38
54
  remaining_characters_1: "%{count} personagem à esquerda"
39
55
  title: Adicione seu comentário
@@ -41,7 +57,13 @@ pt:
41
57
  alignment:
42
58
  against: Contra
43
59
  in_favor: A favor
60
+ confirm_destroy: Tem certeza que deseja excluir este comentário?
61
+ delete: Deletar
62
+ deleted_at: Comentário excluído em %{date}
44
63
  deleted_user: Usuário excluído
64
+ edit: Editar
65
+ edited: Editado
66
+ hide_replies: Ocultar respostas
45
67
  reply: Resposta
46
68
  report:
47
69
  action: Relatório
@@ -53,6 +75,9 @@ pt:
53
75
  does_not_belong: Contém atividades ilegais, ameaças suicidas, informações pessoais ou qualquer outra coisa que você acha que não pertence ao %{organization_name}.
54
76
  offensive: Contém racismo, sexismo, insultos, ataques pessoais, ameaças de morte, pedidos de suicídio ou qualquer tipo de discurso de ódio.
55
77
  spam: Contém clickbait, publicidade, fraudes ou script bots.
78
+ title: Reportar conteúdo impróprio
79
+ show_replies: Mostrar %{replies_count} respostas
80
+ single_comment_link_title: Obter o link
56
81
  comment_order_selector:
57
82
  order:
58
83
  best_rated: Melhores avaliações
@@ -63,9 +88,28 @@ pt:
63
88
  comment_thread:
64
89
  title: Conversa com %{authorName}
65
90
  comments:
91
+ blocked_comments_for_unauthorized_user_warning: Você precisa ser verificado para comentar neste momento, mas pode ler os anteriores.
66
92
  blocked_comments_for_user_warning: Você não pode comentar neste momento, mas pode ler os anteriores.
67
93
  blocked_comments_warning: Os comentários estão desativados neste momento, mas você pode ler os anteriores.
94
+ comment_details_title: Detalhes do comentário
68
95
  loading: Carregando comentários ...
96
+ single_comment_warning: Você pode verificar o resto dos comentários <a href="%{url}">aqui</a>.
97
+ single_comment_warning_title: Você está vendo um único comentário
98
+ title:
99
+ one: "%{count} comentário"
100
+ other: "%{count} comentários"
101
+ down_vote_button:
102
+ text: Eu discordo deste comentário
103
+ edit_comment_modal_form:
104
+ close: Fechar
105
+ form:
106
+ body:
107
+ label: Comentário
108
+ placeholder: O que você pensa sobre isso?
109
+ submit: Enviar
110
+ title: Editar seu comentário
111
+ up_vote_button:
112
+ text: Eu concordo com este comentário
69
113
  events:
70
114
  comments:
71
115
  comment_by_followed_user:
@@ -74,6 +118,8 @@ pt:
74
118
  email_subject: Há um novo comentário por %{author_name} em %{resource_title}
75
119
  notification_title: Há um novo comentário por <a href="%{author_path}">%{author_name} %{author_nickname}</a> em <a href="%{resource_path}">%{resource_title}</a>.
76
120
  comment_by_followed_user_group:
121
+ email_intro: 'O grupo %{author_name} deixou um comentário em %{resource_title}. Você pode lê-lo nesta página:'
122
+ email_outro: Você recebeu esta notificação porque está seguindo %{author_name}. Você pode deixar de seguir este grupo em sua página de perfil.
77
123
  email_subject: Há um novo comentário por %{author_name} em %{resource_title}
78
124
  notification_title: Há um novo comentário por <a href="%{author_path}">%{author_name} %{author_nickname}</a> em <a href="%{resource_path}">%{resource_title}</a>.
79
125
  comment_created:
@@ -81,11 +127,26 @@ pt:
81
127
  email_outro: Você recebeu esta notificação porque você está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
82
128
  email_subject: Há um novo comentário de %{author_name} em %{resource_title}
83
129
  notification_title: Há um novo comentário de <a href="%{author_path}">%{author_name} %{author_nickname}</a> em <a href="%{resource_path}">%{resource_title}</a>
130
+ comment_downvoted:
131
+ email_intro: Seu comentário em%{resource_title}" foi negado. Agora tem um total de %{upvotes} votos positivos e %{downvotes} votos negativos.
132
+ email_outro: Você recebeu esta notificação porque é o autor deste comentário.
133
+ email_subject: Seu comentário em "%{resource_title}" foi negativado.
134
+ notification_title: Seu <a href="%{resource_path}">comentário</a> em%{resource_title}" foi negativado. Agora tem um total de %{upvotes} votos positivos e %{downvotes} votos negativos.
135
+ comment_upvoted:
136
+ email_intro: Seu comentário em%{resource_title}" foi votado favoravelmente. Agora tem um total de %{upvotes} votos positivos e %{downvotes} votos negativos.
137
+ email_outro: Você recebeu esta notificação porque é o autor deste comentário.
138
+ email_subject: Seu comentário em "%{resource_title}" foi votado positivamente.
139
+ notification_title: Seu <a href="%{resource_path}">comentário</a> em%{resource_title}" foi votado favoravelmente. Agora tem um total de %{upvotes} votos positivos e %{downvotes} votos negativos.
84
140
  reply_created:
85
141
  email_intro: "%{author_name} respondeu seu comentário em %{resource_title}. Você pode lê-lo nesta página:"
86
142
  email_outro: Você recebeu esta notificação porque o seu comentário foi respondido.
87
143
  email_subject: "%{author_name} respondeu seu comentário em %{resource_title}"
88
144
  notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> respondeu seu comentário em <a href="%{resource_path}">%{resource_title}</a>
145
+ user_group_mentioned:
146
+ email_intro: Foi mencionado um grupo ao qual você pertence
147
+ email_outro: Você recebeu esta notificação porque é membro do grupo %{group_name} que foi mencionado em %{resource_title}.
148
+ email_subject: Você foi mencionado em %{resource_title} como membro de %{group_name}
149
+ notification_title: Você foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a> como um membro de <a href="%{group_path}">%{group_name} %{group_nickname}</a>
89
150
  user_mentioned:
90
151
  email_intro: Você foi mencionado
91
152
  email_outro: Você recebeu esta notificação porque você foi mencionado em %{resource_title}.
@@ -57,7 +57,6 @@ pt:
57
57
  spam: Contém clickbait, publicidade, fraudes ou robots de scripts.
58
58
  title: Reportar conteúdo impróprio
59
59
  show_replies: Mostrar %{replies_count} respostas
60
- single_comment_link_title: Obter hiperligação para um único comentário
61
60
  comment_order_selector:
62
61
  order:
63
62
  best_rated: Melhores avaliações
@@ -21,6 +21,10 @@ ro:
21
21
  comments:
22
22
  create:
23
23
  error: A apărut o problemă la crearea comentariului.
24
+ delete:
25
+ error: Comentariul nu a putut fi șters.
26
+ update:
27
+ error: A apărut o eroare la actualizarea comentariului.
24
28
  comments_count: Numărul de comentarii
25
29
  comments_title: Comentarii
26
30
  last_activity:
@@ -41,7 +45,13 @@ ro:
41
45
  user_group_id:
42
46
  label: Comentează ca
43
47
  opinion:
48
+ label: Opinia dumneavoastră despre acest subiect
49
+ negative: Negativ
50
+ negative_selected: Opinia ta despre acest subiect este negativă
44
51
  neutral: Neutral
52
+ neutral_selected: Opinia dumneavoastră despre acest subiect este neutră
53
+ positive: Pozitiv
54
+ positive_selected: Opinia dumneavoastră despre acest subiect este pozitivă
45
55
  remaining_characters: "%{count} caractere rămase"
46
56
  remaining_characters_1: "%{count} caracter rămas"
47
57
  title: Adaugă comentariul tău
@@ -49,7 +59,12 @@ ro:
49
59
  alignment:
50
60
  against: Împotriva
51
61
  in_favor: În favoarea
62
+ confirm_destroy: Sunteţi sigur că doriţi să ştergeţi acest comentariu?
63
+ delete: Șterge
64
+ deleted_at: Comentariu șters pe %{date}
52
65
  deleted_user: Participant șters
66
+ edit: Editează
67
+ edited: Editat
53
68
  hide_replies: Ascunde răspunsurile
54
69
  reply: Răspuns
55
70
  report:
@@ -64,7 +79,7 @@ ro:
64
79
  spam: Conține clickbait, publicitate, escrocherii sau roboți script.
65
80
  title: Raportează conținut nepotrivit
66
81
  show_replies: Arată %{replies_count} răspunsuri
67
- single_comment_link_title: Obțineți link-ul către un singur comentariu
82
+ single_comment_link_title: Obţine linkul
68
83
  comment_order_selector:
69
84
  order:
70
85
  best_rated: Cele mai apreciate
@@ -75,6 +90,7 @@ ro:
75
90
  comment_thread:
76
91
  title: Conversație cu %{authorName}
77
92
  comments:
93
+ blocked_comments_for_unauthorized_user_warning: Trebuie să fiți verificat pentru a face comentarii în acest moment, dar le puteți citi pe cele anterioare.
78
94
  blocked_comments_for_user_warning: Nu poți comenta în acest moment, dar le poți citi pe cele anterioare.
79
95
  blocked_comments_warning: Comentariile sunt dezactivate în acest moment, dar le puteți citi pe cele anterioare.
80
96
  comment_details_title: Detalii comentariu
@@ -87,6 +103,14 @@ ro:
87
103
  other: "%{count} comentarii"
88
104
  down_vote_button:
89
105
  text: Nu sunt de acord cu acest comentariu
106
+ edit_comment_modal_form:
107
+ close: Închide
108
+ form:
109
+ body:
110
+ label: Comentariu
111
+ placeholder: Ce părere aveţi despre asta?
112
+ submit: Trimite
113
+ title: Editează comentariul tău
90
114
  up_vote_button:
91
115
  text: Sunt de acord cu acest comentariu
92
116
  events:
@@ -59,7 +59,6 @@ sk:
59
59
  offensive: Obsahuje rasizmus, sexizmus, urážky, osobné útoky, vyhrážky alebo inú podobu nenávistného prejavu.
60
60
  spam: Obsahuje clickbait, reklamy, scam alebo je to skriptovací robot.
61
61
  show_replies: Zobraziť %{replies_count} odpovedí
62
- single_comment_link_title: Odkaz na komentár
63
62
  comment_order_selector:
64
63
  order:
65
64
  best_rated: Najlepšie hodnotené
@@ -4,7 +4,6 @@ sr:
4
4
  comment:
5
5
  hide_replies: Sakrij odgovore
6
6
  show_replies: Prikaži %{replies_count} odgovora
7
- single_comment_link_title: Nabavi vezu ka jednom komentaru
8
7
  comments:
9
8
  comment_details_title: Detalji o komentaru
10
9
  single_comment_warning: Možete videti ostale komentare <a href="%{url}">ovde</a>.
@@ -19,6 +19,10 @@ sv:
19
19
  comments:
20
20
  create:
21
21
  error: Det gick inte att skapa kommentaren.
22
+ delete:
23
+ error: Kommentaren kunde inte tas bort.
24
+ update:
25
+ error: Det gick inte att uppdatera kommentaren.
22
26
  comments_count: Antal kommentarer
23
27
  comments_title: Kommentarer
24
28
  last_activity:
@@ -39,7 +43,13 @@ sv:
39
43
  user_group_id:
40
44
  label: Kommentera som
41
45
  opinion:
46
+ label: Din åsikt om detta ämne
47
+ negative: Negativ
48
+ negative_selected: Din åsikt om detta ämne är negativ
42
49
  neutral: Neutral
50
+ neutral_selected: Din åsikt om detta ämne är neutral
51
+ positive: Positiv
52
+ positive_selected: Din åsikt om detta ämne är positiv
43
53
  remaining_characters: "%{count} tecken kvar"
44
54
  remaining_characters_1: "%{count} tecken kvar"
45
55
  title: Lägg till din kommentar
@@ -47,7 +57,12 @@ sv:
47
57
  alignment:
48
58
  against: Mot
49
59
  in_favor: För
60
+ confirm_destroy: Är du säker på att du vill ta bort denna kommentar?
61
+ delete: Radera
62
+ deleted_at: Kommentar borttagen den %{date}
50
63
  deleted_user: Raderad deltagare
64
+ edit: Redigera
65
+ edited: Redigerad
51
66
  hide_replies: Göm svar
52
67
  reply: Svara
53
68
  report:
@@ -62,7 +77,7 @@ sv:
62
77
  spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
63
78
  title: Rapportera olämpligt innehåll
64
79
  show_replies: Visa %{replies_count} svar
65
- single_comment_link_title: länk till enstaka kommentar
80
+ single_comment_link_title: Hämta länk
66
81
  comment_order_selector:
67
82
  order:
68
83
  best_rated: Bästa betyg
@@ -73,6 +88,7 @@ sv:
73
88
  comment_thread:
74
89
  title: Samtal med %{authorName}
75
90
  comments:
91
+ blocked_comments_for_unauthorized_user_warning: Du behöver verifiera dig för att kunna kommentera just nu, men du kan läsa tidigare kommentarer.
76
92
  blocked_comments_for_user_warning: Du kan inte kommentera just nu, men du kan läsa tidigare kommentarer.
77
93
  blocked_comments_warning: Kommentarer är inaktiverade just nu, men du kan läsa de föregående.
78
94
  comment_details_title: Kommentarsdetaljer
@@ -84,6 +100,14 @@ sv:
84
100
  other: "%{count} kommentarer"
85
101
  down_vote_button:
86
102
  text: Jag håller inte med om denna kommentar
103
+ edit_comment_modal_form:
104
+ close: Stäng
105
+ form:
106
+ body:
107
+ label: Kommentar
108
+ placeholder: Vad tycker du om detta?
109
+ submit: Skicka
110
+ title: Redigera din kommentar
87
111
  up_vote_button:
88
112
  text: Jag instämmer i denna kommentar
89
113
  events:
@@ -62,7 +62,6 @@ tr:
62
62
  spam: Clickbait, reklam, dolandırıcılık veya script botları içerir.
63
63
  title: Uygunsuz içerik bildir
64
64
  show_replies: '%{replies_count} yanıtı göster'
65
- single_comment_link_title: Tek yorumun bağlantısını al
66
65
  comment_order_selector:
67
66
  order:
68
67
  best_rated: En çok oy alan
@@ -56,7 +56,6 @@ zh-CN:
56
56
  spam: 包含点击、广告、骗子或脚本机器人。
57
57
  title: 报告不恰当的内容
58
58
  show_replies: 显示 %{replies_count} 个回复
59
- single_comment_link_title: 获取单个评论的链接
60
59
  comment_order_selector:
61
60
  order:
62
61
  best_rated: 最佳评分
@@ -21,7 +21,7 @@ class MakeCommentsHandleI18n < ActiveRecord::Migration[5.2]
21
21
  Organization.reset_column_information
22
22
 
23
23
  Comment.find_each do |comment|
24
- locale, org_id = User.where(id: comment.decidim_author_id).pluck(:locale, :decidim_organization_id).first
24
+ locale, org_id = User.where(id: comment.decidim_author_id).pick(:locale, :decidim_organization_id)
25
25
  locale = locale.presence || Organization.find(org_id).default_locale
26
26
 
27
27
  comment.new_body = {
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddParticipatoryProcessToComments < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_comments_comments, :decidim_participatory_space_type, :string
6
+ add_column :decidim_comments_comments, :decidim_participatory_space_id, :integer
7
+
8
+ add_index :decidim_comments_comments,
9
+ [:decidim_participatory_space_id, :decidim_participatory_space_type],
10
+ name: "index_decidim_comments_on_decidim_participatory_space"
11
+ end
12
+ end