decidim-comments 0.27.5 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/comments/comment/actions.erb +13 -7
- data/app/cells/decidim/comments/comment/alignment_badge.erb +1 -4
- data/app/cells/decidim/comments/comment/deletion_data.erb +9 -1
- data/app/cells/decidim/comments/comment/moderation_data.erb +1 -1
- data/app/cells/decidim/comments/comment/replies.erb +3 -0
- data/app/cells/decidim/comments/comment/show.erb +72 -35
- data/app/cells/decidim/comments/comment/votes.erb +14 -14
- data/app/cells/decidim/comments/comment_activity_cell.rb +11 -7
- data/app/cells/decidim/comments/comment_card_cell.rb +2 -2
- data/app/cells/decidim/comments/comment_cell.rb +5 -15
- data/app/cells/decidim/comments/comment_form/comment_as.erb +3 -3
- data/app/cells/decidim/comments/comment_form/opinion.erb +18 -0
- data/app/cells/decidim/comments/comment_form/show.erb +33 -16
- data/app/cells/decidim/comments/comment_form_cell.rb +9 -1
- data/app/cells/decidim/comments/comment_metadata_cell.rb +27 -0
- data/app/cells/decidim/comments/comment_s_cell.rb +27 -0
- data/app/cells/decidim/comments/comment_thread/show.erb +2 -5
- data/app/cells/decidim/comments/comment_thread_cell.rb +0 -6
- data/app/cells/decidim/comments/comments/add_comment.erb +1 -20
- data/app/cells/decidim/comments/comments/blocked_comments_warning.erb +1 -3
- data/app/cells/decidim/comments/comments/comments_loading.erb +1 -3
- data/app/cells/decidim/comments/comments/order_control.erb +11 -35
- data/app/cells/decidim/comments/comments/show.erb +8 -9
- data/app/cells/decidim/comments/comments/single_comment_warning.erb +6 -9
- data/app/cells/decidim/comments/comments/user_comments_blocked_warning.erb +9 -6
- data/app/cells/decidim/comments/comments_cell.rb +1 -1
- data/app/cells/decidim/comments/edit_comment_modal_form/show.erb +20 -15
- data/app/commands/decidim/comments/create_comment.rb +17 -5
- data/app/commands/decidim/comments/delete_comment.rb +1 -1
- data/app/commands/decidim/comments/update_comment.rb +14 -2
- data/app/commands/decidim/comments/vote_comment.rb +1 -1
- data/app/controllers/decidim/comments/comments_controller.rb +14 -9
- data/app/controllers/decidim/comments/votes_controller.rb +1 -1
- data/app/events/decidim/comments/comment_by_followed_user_event.rb +1 -1
- data/app/events/decidim/comments/comment_by_followed_user_group_event.rb +1 -1
- data/app/events/decidim/comments/comment_event.rb +2 -3
- data/app/events/decidim/comments/reply_created_event.rb +1 -1
- data/app/events/decidim/comments/user_group_mentioned_event.rb +1 -1
- data/app/events/decidim/comments/user_mentioned_event.rb +1 -1
- data/app/helpers/decidim/comments/comment_cells_helper.rb +1 -1
- data/app/jobs/decidim/comments/hide_all_created_by_author_job.rb +13 -0
- data/app/models/decidim/comments/comment.rb +7 -4
- data/app/models/decidim/comments/seed.rb +30 -14
- data/app/packs/entrypoints/decidim_comments.js +5 -0
- data/app/packs/src/decidim/comments/comments.component.js +27 -36
- data/app/packs/src/decidim/comments/comments.component.test.js +218 -240
- data/app/packs/src/decidim/comments/comments.component_for_testing.js +1 -1
- data/app/packs/src/decidim/comments/comments.js +20 -1
- data/app/packs/stylesheets/comments.scss +327 -0
- data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -1
- data/app/queries/decidim/comments/sorted_comments.rb +10 -10
- data/app/services/decidim/comments/comment_creation.rb +1 -1
- data/app/services/decidim/comments/new_comment_notification_creator.rb +8 -8
- data/app/views/decidim/comments/admin/shared/_availability_fields.html.erb +4 -9
- data/app/views/decidim/comments/comments/_comment.html.erb +1 -1
- data/app/views/decidim/comments/comments/_comments.html.erb +1 -1
- data/app/views/decidim/comments/comments/_delete.html.erb +2 -4
- data/app/views/decidim/comments/comments/_moderated.html.erb +2 -4
- data/app/views/decidim/comments/comments/create.js.erb +5 -3
- data/app/views/decidim/comments/comments/delete.js.erb +4 -1
- data/app/views/decidim/comments/comments/index.js.erb +8 -1
- data/app/views/decidim/comments/comments/reload.js.erb +1 -2
- data/app/views/decidim/comments/comments/update.js.erb +5 -4
- data/app/views/decidim/comments/votes/create.js.erb +5 -5
- data/config/assets.rb +3 -0
- data/config/locales/ar.yml +0 -16
- data/config/locales/ca.yml +8 -10
- data/config/locales/cs.yml +8 -10
- data/config/locales/de.yml +7 -9
- data/config/locales/el.yml +3 -11
- data/config/locales/en.yml +10 -12
- data/config/locales/es-MX.yml +10 -12
- data/config/locales/es-PY.yml +10 -12
- data/config/locales/es.yml +9 -11
- data/config/locales/eu.yml +6 -8
- data/config/locales/fi-plain.yml +7 -9
- data/config/locales/fi.yml +7 -9
- data/config/locales/fr-CA.yml +9 -11
- data/config/locales/fr.yml +9 -11
- data/config/locales/ga-IE.yml +0 -4
- data/config/locales/gl.yml +0 -16
- data/config/locales/hu.yml +5 -11
- data/config/locales/id-ID.yml +0 -11
- data/config/locales/is-IS.yml +0 -8
- data/config/locales/it.yml +0 -16
- data/config/locales/ja.yml +6 -8
- data/config/locales/lb.yml +0 -16
- data/config/locales/lt.yml +7 -10
- data/config/locales/lv.yml +0 -11
- data/config/locales/nl.yml +0 -16
- data/config/locales/no.yml +0 -16
- data/config/locales/pl.yml +7 -10
- data/config/locales/pt-BR.yml +0 -18
- data/config/locales/pt.yml +0 -16
- data/config/locales/ro-RO.yml +2 -10
- data/config/locales/ru.yml +0 -11
- data/config/locales/sk.yml +0 -11
- data/config/locales/sv.yml +2 -16
- data/config/locales/tr-TR.yml +1 -13
- data/config/locales/uk.yml +0 -8
- data/config/locales/zh-CN.yml +0 -13
- data/config/locales/zh-TW.yml +1 -9
- data/lib/decidim/api/commentable_interface.rb +1 -1
- data/lib/decidim/comments/comment_serializer.rb +1 -1
- data/lib/decidim/comments/comment_vote_serializer.rb +1 -1
- data/lib/decidim/comments/commentable.rb +1 -1
- data/lib/decidim/comments/comments_helper.rb +6 -3
- data/lib/decidim/comments/engine.rb +31 -1
- data/lib/decidim/comments/export.rb +1 -1
- data/lib/decidim/comments/test/factories.rb +2 -2
- data/lib/decidim/comments/test/shared_examples/comment_event.rb +3 -3
- data/lib/decidim/comments/test/shared_examples/comment_voted_event.rb +3 -3
- data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +5 -5
- data/lib/decidim/comments/test/shared_examples/has_comments_availability_attributes.rb +2 -2
- data/lib/decidim/comments/test/shared_examples/translatable_comment.rb +3 -3
- data/lib/decidim/comments/version.rb +1 -1
- metadata +26 -21
- data/app/cells/decidim/comments/comment/author.erb +0 -1
- data/app/cells/decidim/comments/comment/utilities.erb +0 -41
- data/app/cells/decidim/comments/comment_m/footer.erb +0 -5
- data/app/cells/decidim/comments/comment_m/top.erb +0 -7
- data/app/cells/decidim/comments/comment_m_cell.rb +0 -29
- data/app/cells/decidim/comments/comment_thread/title.erb +0 -3
- data/config/environment.rb +0 -3
data/config/locales/nl.yml
CHANGED
@@ -27,27 +27,17 @@ nl:
|
|
27
27
|
comments:
|
28
28
|
create:
|
29
29
|
error: Er is een probleem opgetreden bij het aanmaken van de reactie.
|
30
|
-
delete:
|
31
|
-
error: De reactie kon niet worden verwijderd.
|
32
30
|
update:
|
33
31
|
error: Er is een probleem opgetreden bij het bijwerken van de reactie.
|
34
|
-
comments_count: Aantal reacties
|
35
|
-
comments_title: Reacties
|
36
|
-
last_activity:
|
37
|
-
new_comment_at_html: "<span>Nieuwe opmerking op %{link}</span>"
|
38
|
-
view: Bekijk
|
39
32
|
votes:
|
40
33
|
create:
|
41
34
|
error: Er is een probleem opgetreden bij het stemmen op de opmerking.
|
42
35
|
components:
|
43
36
|
add_comment_form:
|
44
|
-
account_message: <a href="%{sign_in_url}">Meld u aan met uw account</a> of <a href="%{sign_up_url}">schrijf u in</a> om uw reactie toe te voegen.
|
45
37
|
form:
|
46
38
|
body:
|
47
39
|
label: Reactie
|
48
40
|
placeholder: Wat wil je hierover zeggen?
|
49
|
-
form_error: De tekst is verplicht en het kan niet langer zijn dan %{length} tekens.
|
50
|
-
submit: Verzenden
|
51
41
|
user_group_id:
|
52
42
|
label: Reageer als
|
53
43
|
opinion:
|
@@ -81,7 +71,6 @@ nl:
|
|
81
71
|
description: Is deze inhoud ongepast?
|
82
72
|
details: aanvullende opmerkingen
|
83
73
|
reasons:
|
84
|
-
does_not_belong: Bevat illegale activiteit, zelfmoord bedreigingen, persoonlijke gegevens, of iets anders dat je denkt dat hoort niet op %{organization_name}.
|
85
74
|
offensive: Bevat racisme, seksisme, laster, persoonlijke aanvallen, bedreigingen met de dood, zelfmoord verzoeken of enige vorm van haatzaaien.
|
86
75
|
spam: Bevat clickbait, reclame, oplichting of script bots.
|
87
76
|
title: Meld ongepaste inhoud
|
@@ -93,8 +82,6 @@ nl:
|
|
93
82
|
older: Ouder
|
94
83
|
recent: Meest recent
|
95
84
|
title: 'Sorteer op:'
|
96
|
-
comment_thread:
|
97
|
-
title: Gesprek met %{authorName}
|
98
85
|
comments:
|
99
86
|
blocked_comments_for_unauthorized_user_warning: Je kan op dit moment geen opmerkingen toevoegen, maar je kunt de eerdere opmerkingen wel lezen.
|
100
87
|
blocked_comments_for_user_warning: Je kunt op dit moment geen opmerkingen toevoegen, maar je kunt eerdere reacties wel lezen.
|
@@ -165,6 +152,3 @@ nl:
|
|
165
152
|
description: Aantal reacties gegenereerd door deelnemers
|
166
153
|
object: reacties
|
167
154
|
title: Reacties
|
168
|
-
errors:
|
169
|
-
messages:
|
170
|
-
cannot_have_comments: Kan geen reacties hebben
|
data/config/locales/no.yml
CHANGED
@@ -26,27 +26,17 @@
|
|
26
26
|
comments:
|
27
27
|
create:
|
28
28
|
error: Et problem oppstod med å opprette kommentaren.
|
29
|
-
delete:
|
30
|
-
error: Kommentaren kunne ikke slettes.
|
31
29
|
update:
|
32
30
|
error: Et problem oppstod med å oppdatere kommentaren.
|
33
|
-
comments_count: Antall kommentarer
|
34
|
-
comments_title: Kommentarer
|
35
|
-
last_activity:
|
36
|
-
new_comment_at_html: "<span>Ny kommentar på %{link}</span>"
|
37
|
-
view: Vis
|
38
31
|
votes:
|
39
32
|
create:
|
40
33
|
error: Det oppstod et problem med å stemme kommentaren.
|
41
34
|
components:
|
42
35
|
add_comment_form:
|
43
|
-
account_message: <a href="%{sign_in_url}">Logg på med kontoen din</a> eller <a href="%{sign_up_url}">opprett en</a> for å legge til kommentaren din.
|
44
36
|
form:
|
45
37
|
body:
|
46
38
|
label: Kommentar
|
47
39
|
placeholder: Hva mener du om dette?
|
48
|
-
form_error: Teksten er påkrevd og den kan ikke være lengre enn %{length} tegn.
|
49
|
-
submit: Send
|
50
40
|
user_group_id:
|
51
41
|
label: Kommenter som
|
52
42
|
opinion:
|
@@ -79,7 +69,6 @@
|
|
79
69
|
description: Er dette innholdet upassende?
|
80
70
|
details: Ytterlige kommentarer
|
81
71
|
reasons:
|
82
|
-
does_not_belong: Inneholder ulovlig aktivitet, selvmordstrusler, personlig informasjon eller noe annet du mener ikke hører hjemme på %{organization_name}.
|
83
72
|
offensive: Inneholder rasisme, sexisme, banning, persjonangrep, dødstrusler, selvmords forespørsler eller all form for hatefullt språk.
|
84
73
|
spam: Inneholder klikkagn, reklame, svindel eller manus-roboter.
|
85
74
|
title: Rapporter upassende innhold
|
@@ -91,8 +80,6 @@
|
|
91
80
|
older: Eldre
|
92
81
|
recent: Nylig
|
93
82
|
title: 'Sorter etter:'
|
94
|
-
comment_thread:
|
95
|
-
title: Samtale med %{authorName}
|
96
83
|
comments:
|
97
84
|
blocked_comments_for_unauthorized_user_warning: Du må verifiseres for å kommentere, men du kan lese de forrige.
|
98
85
|
blocked_comments_for_user_warning: Du kan ikke kommentere for øyeblikket, men du kan lese de forrige.
|
@@ -163,6 +150,3 @@
|
|
163
150
|
description: Antall kommenterer generert av deltakerne
|
164
151
|
object: kommentarer
|
165
152
|
title: Kommentarer
|
166
|
-
errors:
|
167
|
-
messages:
|
168
|
-
cannot_have_comments: kan ikke ha kommentarer
|
data/config/locales/pl.yml
CHANGED
@@ -35,23 +35,22 @@ pl:
|
|
35
35
|
error: Komentarz nie może zostać usunięty.
|
36
36
|
update:
|
37
37
|
error: Wystąpił błąd podczas aktualizowania komentarza.
|
38
|
-
|
39
|
-
comments_title: Komentarze
|
38
|
+
comments_title: Komentarz
|
40
39
|
last_activity:
|
41
|
-
|
42
|
-
view: Zobacz
|
40
|
+
new_comment: 'Nowy komentarz:'
|
43
41
|
votes:
|
44
42
|
create:
|
45
43
|
error: Podczas dodawania komentarza wystąpił błąd.
|
46
44
|
components:
|
47
45
|
add_comment_form:
|
48
|
-
account_message: <a href="%{sign_in_url}">Zaloguj się na swoje konto</a> lub <a href="%{sign_up_url}">zarejestruj się</a>, aby dodać komentarz.
|
46
|
+
account_message: <a href="%{sign_in_url}">Zaloguj się na swoje konto</a> lub <a href="%{sign_up_url}">zarejestruj się</a>, aby dodać swój komentarz.
|
49
47
|
form:
|
50
48
|
body:
|
51
49
|
label: Komentarz
|
52
50
|
placeholder: Co o tym myślisz?
|
53
|
-
form_error:
|
54
|
-
|
51
|
+
form_error: Tekst jest wymagany i nie może być dłuższy niż %{length} znaków.
|
52
|
+
submit_reply: Opublikuj odpowiedź
|
53
|
+
submit_root_comment: Opublikuj komentarz
|
55
54
|
user_group_id:
|
56
55
|
label: Komentuj jako
|
57
56
|
opinion:
|
@@ -69,6 +68,7 @@ pl:
|
|
69
68
|
alignment:
|
70
69
|
against: Negatywny
|
71
70
|
in_favor: Pozytywny
|
71
|
+
cancel_reply: Anuluj odpowiedź
|
72
72
|
confirm_destroy: Czy na pewno chcesz usunąć ten komentarz?
|
73
73
|
delete: Usuń
|
74
74
|
deleted_at: Komentarz usunięty %{date}
|
@@ -84,7 +84,6 @@ pl:
|
|
84
84
|
description: Czy ta treść jest nieodpowiednia?
|
85
85
|
details: Dodatkowe komentarze
|
86
86
|
reasons:
|
87
|
-
does_not_belong: Promuje nielegalną działalność, groźby samobójcze, informacje osobiste lub coś innego, co według Ciebie nie powinno pojawić się w %{organization_name}.
|
88
87
|
offensive: Promuje rasizm, seksizm, nienawiść, ataki osobiste, groźby śmierci, groźby samobójcze jakąkolwiek formę mowy nienawiści.
|
89
88
|
spam: Zawiera clickbaity, reklamy, oszustwa lub skrypty botów.
|
90
89
|
title: Zgłoś niewłaściwą treść
|
@@ -101,8 +100,6 @@ pl:
|
|
101
100
|
older: Najstarsze
|
102
101
|
recent: Najnowsze
|
103
102
|
title: 'Sortuj według:'
|
104
|
-
comment_thread:
|
105
|
-
title: Rozmowa z %{authorName}
|
106
103
|
comments:
|
107
104
|
blocked_comments_for_unauthorized_user_warning: Musisz być zweryfikowany żeby teraz komentować, ale możesz przeczytać poprzednie komentarze.
|
108
105
|
blocked_comments_for_user_warning: Nie możesz teraz komentować, ale możesz przeczytać poprzednie komentarze.
|
data/config/locales/pt-BR.yml
CHANGED
@@ -4,7 +4,6 @@ pt-BR:
|
|
4
4
|
models:
|
5
5
|
decidim/comments/comment_by_followed_user_event: Comente
|
6
6
|
decidim/comments/comment_created_event: Comentário
|
7
|
-
decidim/comments/comment_upvoted_event: Comentário valorizado positivamente
|
8
7
|
decidim/comments/reply_created_event: Resposta
|
9
8
|
decidim/comments/user_group_mentioned_event: Mencionar
|
10
9
|
decidim/comments/user_mentioned_event: Mencionar
|
@@ -21,27 +20,17 @@ pt-BR:
|
|
21
20
|
comments:
|
22
21
|
create:
|
23
22
|
error: Houveram erros ao criar o comentário.
|
24
|
-
delete:
|
25
|
-
error: O comentário não pode ser excluído.
|
26
23
|
update:
|
27
24
|
error: Houve um erro ao atualizar o comentário.
|
28
|
-
comments_count: Contagem de Comentários
|
29
|
-
comments_title: Comentários
|
30
|
-
last_activity:
|
31
|
-
new_comment_at_html: "<span>Novo comentário em %{link}</span>"
|
32
|
-
view: Visualizar
|
33
25
|
votes:
|
34
26
|
create:
|
35
27
|
error: Houve erros ao votar o comentário.
|
36
28
|
components:
|
37
29
|
add_comment_form:
|
38
|
-
account_message: <a href="%{sign_in_url}">Inscreva-se com sua conta</a> ou <a href="%{sign_up_url}">sign up</a> para adicionar seu comentário.
|
39
30
|
form:
|
40
31
|
body:
|
41
32
|
label: Comente
|
42
33
|
placeholder: O que você pensa sobre isso?
|
43
|
-
form_error: O texto é obrigatório e não pode ser maior que %{length} caracteres.
|
44
|
-
submit: Enviar
|
45
34
|
user_group_id:
|
46
35
|
label: Comente como
|
47
36
|
opinion:
|
@@ -66,7 +55,6 @@ pt-BR:
|
|
66
55
|
edit: Editar
|
67
56
|
edited: Editado
|
68
57
|
hide_replies: Ocultar respostas
|
69
|
-
moderated_at: Comentário moderado em %{date}
|
70
58
|
reply: Resposta
|
71
59
|
report:
|
72
60
|
action: Relatório
|
@@ -75,7 +63,6 @@ pt-BR:
|
|
75
63
|
description: Este conteúdo é impróprio?
|
76
64
|
details: Comentários adicionais
|
77
65
|
reasons:
|
78
|
-
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}.
|
79
66
|
offensive: Contém racismo, sexismo, insultos, ataques pessoais, ameaças de morte, pedidos de suicídio ou qualquer tipo de discurso de ódio.
|
80
67
|
spam: Contém clickbait, publicidade, fraudes ou script bots.
|
81
68
|
title: Reportar conteúdo impróprio
|
@@ -87,8 +74,6 @@ pt-BR:
|
|
87
74
|
older: Mais velho
|
88
75
|
recent: Recente
|
89
76
|
title: 'Ordenar por:'
|
90
|
-
comment_thread:
|
91
|
-
title: Conversa com %{authorName}
|
92
77
|
comments:
|
93
78
|
blocked_comments_for_unauthorized_user_warning: Você precisa ser verificado para comentar neste momento, mas pode ler os anteriores.
|
94
79
|
blocked_comments_for_user_warning: Você não pode comentar neste momento, mas pode ler os anteriores.
|
@@ -158,6 +143,3 @@ pt-BR:
|
|
158
143
|
description: Número de comentários gerados pelos usuários
|
159
144
|
object: comentários
|
160
145
|
title: Comentários
|
161
|
-
errors:
|
162
|
-
messages:
|
163
|
-
cannot_have_comments: não pode ter comentários
|
data/config/locales/pt.yml
CHANGED
@@ -26,27 +26,17 @@ pt:
|
|
26
26
|
comments:
|
27
27
|
create:
|
28
28
|
error: Ocorreu um problema ao criar o comentário
|
29
|
-
delete:
|
30
|
-
error: O comentário não pode ser eliminado.
|
31
29
|
update:
|
32
30
|
error: Ocorreu um problema ao actualizar a comentário.
|
33
|
-
comments_count: Contagem de comentários
|
34
|
-
comments_title: Comentários
|
35
|
-
last_activity:
|
36
|
-
new_comment_at_html: "<span>Novo comentário em %{link}</span>"
|
37
|
-
view: Visualizar
|
38
31
|
votes:
|
39
32
|
create:
|
40
33
|
error: Houve erros na votação do comentário.
|
41
34
|
components:
|
42
35
|
add_comment_form:
|
43
|
-
account_message: <a href="%{sign_in_url}">Ligue-se com sua conta</a> ou <a href="%{sign_up_url}">sign up</a> para adicionar seu comentário.
|
44
36
|
form:
|
45
37
|
body:
|
46
38
|
label: Comente
|
47
39
|
placeholder: O que você pensa sobre isso?
|
48
|
-
form_error: O texto é obrigatório e não pode ser maior que %{length} caracteres.
|
49
|
-
submit: Enviar
|
50
40
|
user_group_id:
|
51
41
|
label: Comente como
|
52
42
|
opinion:
|
@@ -79,7 +69,6 @@ pt:
|
|
79
69
|
description: Este conteúdo é impróprio?
|
80
70
|
details: Comentários adicionais
|
81
71
|
reasons:
|
82
|
-
does_not_belong: Contém atividades ilegais, ameaças suicidas, informações pessoais ou qualquer outra coisa que você acha que não pertence a %{organization_name}.
|
83
72
|
offensive: Contém racismo, sexismo, insultos, ataques pessoais, ameaças de morte, pedidos de suicídio ou qualquer tipo de discurso de ódio.
|
84
73
|
spam: Contém clickbait, publicidade, fraudes ou robots de scripts.
|
85
74
|
title: Reportar conteúdo impróprio
|
@@ -91,8 +80,6 @@ pt:
|
|
91
80
|
older: Mais velho
|
92
81
|
recent: Recente
|
93
82
|
title: 'Ordenar por:'
|
94
|
-
comment_thread:
|
95
|
-
title: Conversa com %{authorName}
|
96
83
|
comments:
|
97
84
|
blocked_comments_for_unauthorized_user_warning: Precisa de estar verificado para comentar neste momento, mas pode ler os precedentes.
|
98
85
|
blocked_comments_for_user_warning: Não pode comentar neste momento, mas pode ler os anteriores.
|
@@ -163,6 +150,3 @@ pt:
|
|
163
150
|
description: Número de comentários gerados pelos participantes
|
164
151
|
object: comentários
|
165
152
|
title: Comentários
|
166
|
-
errors:
|
167
|
-
messages:
|
168
|
-
cannot_have_comments: não pode ter comentários
|
data/config/locales/ro-RO.yml
CHANGED
@@ -33,23 +33,17 @@ ro:
|
|
33
33
|
error: Comentariul nu a putut fi șters.
|
34
34
|
update:
|
35
35
|
error: A apărut o eroare la actualizarea comentariului.
|
36
|
-
|
37
|
-
comments_title: Comentarii
|
38
|
-
last_activity:
|
39
|
-
new_comment_at_html: "<span>Comentariu nou la %{link}</span>"
|
40
|
-
view: Vizualizează
|
36
|
+
comments_title: Comentariu
|
41
37
|
votes:
|
42
38
|
create:
|
43
39
|
error: A apărut o problemă la votarea comentariului.
|
44
40
|
components:
|
45
41
|
add_comment_form:
|
46
|
-
account_message: <a href="%{sign_in_url}">Autentifică-te cu contul tău</a> sau <a href="%{sign_up_url}">înregistrează-te</a> pentru a adăuga comentariul tău.
|
47
42
|
form:
|
48
43
|
body:
|
49
44
|
label: Comentariu
|
50
45
|
placeholder: Ce părere ai despre asta?
|
51
46
|
form_error: Textul este obligatoriu și nu poate fi mai lung de %{length} caractere.
|
52
|
-
submit: Trimite
|
53
47
|
user_group_id:
|
54
48
|
label: Comentează în calitate de
|
55
49
|
opinion:
|
@@ -99,8 +93,6 @@ ro:
|
|
99
93
|
older: Mai vechi
|
100
94
|
recent: Recente
|
101
95
|
title: 'Ordonare după:'
|
102
|
-
comment_thread:
|
103
|
-
title: Conversație cu %{authorName}
|
104
96
|
comments:
|
105
97
|
blocked_comments_for_unauthorized_user_warning: Trebuie să fii verificat pentru a trimite comentarii în acest moment, dar le poți citi pe cele anterioare.
|
106
98
|
blocked_comments_for_user_warning: Nu poți comenta în acest moment, dar le poți citi pe cele anterioare.
|
@@ -174,4 +166,4 @@ ro:
|
|
174
166
|
title: Comentarii
|
175
167
|
errors:
|
176
168
|
messages:
|
177
|
-
cannot_have_comments: nu poate
|
169
|
+
cannot_have_comments: nu poate avea comentarii
|
data/config/locales/ru.yml
CHANGED
@@ -21,20 +21,15 @@ ru:
|
|
21
21
|
other: Голосов
|
22
22
|
decidim:
|
23
23
|
comments:
|
24
|
-
comments_title: Комментарии
|
25
|
-
last_activity:
|
26
|
-
new_comment_at_html: "<span>Новый комментарий в %{link}</span>"
|
27
24
|
votes:
|
28
25
|
create:
|
29
26
|
error: При голосовании за комментарий произошли ошибки.
|
30
27
|
components:
|
31
28
|
add_comment_form:
|
32
|
-
account_message: <a href="%{sign_in_url}">Войдите в систему через свою учетную запись</a> или <a href="%{sign_up_url}">зарегистрируйтесь</a>, чтобы добавить свой комментарий.
|
33
29
|
form:
|
34
30
|
body:
|
35
31
|
label: Комментарий
|
36
32
|
placeholder: Что вы думаете об этом?
|
37
|
-
form_error: Тут обязательно нужно ввести текст, но не больше %{length} символов.
|
38
33
|
user_group_id:
|
39
34
|
label: Комментировать как
|
40
35
|
opinion:
|
@@ -55,7 +50,6 @@ ru:
|
|
55
50
|
description: Это сообщение неприемлемо?
|
56
51
|
details: Дополнительные комментарии
|
57
52
|
reasons:
|
58
|
-
does_not_belong: Содержит незаконную деятельность, угрозы самоубийства, личные сведения или что-то еще, недопустимое, на ваш взгляд, для %{organization_name}.
|
59
53
|
offensive: Содержит расизм, сексизм, оскорбления, личные нападки, угрозы убийства, заявления о самоубийстве, или любую форму разжигания ненависти.
|
60
54
|
spam: Содержит кликоловки (манипулятивно-сенсационные заголовки), рекламу, мошенничество или лохотроны.
|
61
55
|
comment_order_selector:
|
@@ -65,8 +59,6 @@ ru:
|
|
65
59
|
older: Старые
|
66
60
|
recent: Недавние
|
67
61
|
title: 'Упорядочить по:'
|
68
|
-
comment_thread:
|
69
|
-
title: Беседа с %{authorName}
|
70
62
|
comments:
|
71
63
|
blocked_comments_for_user_warning: Сейчас вам недоступно комментирование, но вы можете прочесть предыдущие комментарии.
|
72
64
|
blocked_comments_warning: Комментарии сейчас отключены, но вы можете прочитать предыдущие.
|
@@ -101,6 +93,3 @@ ru:
|
|
101
93
|
description: Количество комментариев, созданных участниками
|
102
94
|
object: коментарии
|
103
95
|
title: Комментарии
|
104
|
-
errors:
|
105
|
-
messages:
|
106
|
-
cannot_have_comments: не подлежит комментированию
|
data/config/locales/sk.yml
CHANGED
@@ -21,20 +21,15 @@ sk:
|
|
21
21
|
other: Hlasy
|
22
22
|
decidim:
|
23
23
|
comments:
|
24
|
-
comments_title: Komentáre
|
25
|
-
last_activity:
|
26
|
-
new_comment_at_html: "<span>Nový komentár na %{link}</span>"
|
27
24
|
votes:
|
28
25
|
create:
|
29
26
|
error: Pri hlasovaní za komentár sa vyskytol problém.
|
30
27
|
components:
|
31
28
|
add_comment_form:
|
32
|
-
account_message: <a href="%{sign_in_url}">Prihláste sa so svojím účtom</a> alebo <a href="%{sign_up_url}"> sa zaregistrujte</a>, aby ste pridali svoj komentár.
|
33
29
|
form:
|
34
30
|
body:
|
35
31
|
label: Komentár
|
36
32
|
placeholder: Čo si myslíte o tomto?
|
37
|
-
form_error: Tento text je požadovaný a nesmie byť dlhší, než %{length} znakov.
|
38
33
|
user_group_id:
|
39
34
|
label: Komentovať ako
|
40
35
|
opinion:
|
@@ -56,7 +51,6 @@ sk:
|
|
56
51
|
description: Je tento obsah nevhodný?
|
57
52
|
details: Ďalšie komentáre
|
58
53
|
reasons:
|
59
|
-
does_not_belong: Obsahuje ilegálnu činnosť, vyhrážky, osobné informácie, alebo niečo ďalšie, o čom si myslíte, že nepatrí na %{organization_name}.
|
60
54
|
offensive: Obsahuje rasizmus, sexizmus, urážky, osobné útoky, vyhrážky alebo inú podobu nenávistného prejavu.
|
61
55
|
spam: Obsahuje clickbait, reklamy, scam alebo je to skriptovací robot.
|
62
56
|
comment_order_selector:
|
@@ -66,8 +60,6 @@ sk:
|
|
66
60
|
older: Staršie
|
67
61
|
recent: Nedávne
|
68
62
|
title: 'Zoradiť podľa:'
|
69
|
-
comment_thread:
|
70
|
-
title: Konverzácia s %{authorName}
|
71
63
|
comments:
|
72
64
|
blocked_comments_for_user_warning: V súčasnosti nemôžete komentovať, ale môžete si prečítať predchádzajúce komentáre.
|
73
65
|
blocked_comments_warning: Komentáre nie sú v súčasnosti povolené, ale môžete si prečítať predchádzajúce komentáre.
|
@@ -111,6 +103,3 @@ sk:
|
|
111
103
|
description: Počet komentárov všetkých účastníkov
|
112
104
|
object: komentáre
|
113
105
|
title: Komentáre
|
114
|
-
errors:
|
115
|
-
messages:
|
116
|
-
cannot_have_comments: nie je možné komentovať
|
data/config/locales/sv.yml
CHANGED
@@ -27,27 +27,19 @@ sv:
|
|
27
27
|
comments:
|
28
28
|
create:
|
29
29
|
error: Det gick inte att skapa kommentaren.
|
30
|
-
delete:
|
31
|
-
error: Kommentaren kunde inte tas bort.
|
32
30
|
update:
|
33
31
|
error: Det gick inte att uppdatera kommentaren.
|
34
|
-
|
35
|
-
comments_title: Kommentarer
|
36
|
-
last_activity:
|
37
|
-
new_comment_at_html: "<span>Ny kommentar på %{link}</span>"
|
38
|
-
view: Visa
|
32
|
+
comments_title: Kommentar
|
39
33
|
votes:
|
40
34
|
create:
|
41
35
|
error: Det gick inte att rösta om kommentaren.
|
42
36
|
components:
|
43
37
|
add_comment_form:
|
44
|
-
account_message: <a href="%{sign_in_url}">Logga in med ditt konto</a> eller <a href="%{sign_up_url}">registrera dig</a> för att lägga till din kommentar.
|
45
38
|
form:
|
46
39
|
body:
|
47
40
|
label: Kommentera
|
48
41
|
placeholder: Vad tycker du om detta?
|
49
|
-
|
50
|
-
submit: Skicka
|
42
|
+
submit_reply: Publicera svar
|
51
43
|
user_group_id:
|
52
44
|
label: Kommentera som
|
53
45
|
opinion:
|
@@ -81,7 +73,6 @@ sv:
|
|
81
73
|
description: Är detta innehåll olämpligt?
|
82
74
|
details: Ytterligare kommentarer
|
83
75
|
reasons:
|
84
|
-
does_not_belong: Innehåller olaglig aktivitet, självmordshot, personlig information eller något annat du tycker inte hör hemma på %{organization_name}.
|
85
76
|
offensive: Innehåller rasism, sexism, skällsord, personliga attacker, dödshot, uppmaningar att begå självmord eller någon form av hatpropaganda.
|
86
77
|
spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
|
87
78
|
title: Rapportera olämpligt innehåll
|
@@ -96,8 +87,6 @@ sv:
|
|
96
87
|
older: Äldre
|
97
88
|
recent: Senaste
|
98
89
|
title: 'Sortera efter:'
|
99
|
-
comment_thread:
|
100
|
-
title: Samtal med %{authorName}
|
101
90
|
comments:
|
102
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.
|
103
92
|
blocked_comments_for_user_warning: Du kan inte kommentera just nu, men du kan läsa tidigare kommentarer.
|
@@ -168,6 +157,3 @@ sv:
|
|
168
157
|
description: Antal kommentarer från deltagare
|
169
158
|
object: kommentarer
|
170
159
|
title: Kommentarer
|
171
|
-
errors:
|
172
|
-
messages:
|
173
|
-
cannot_have_comments: kan inte ha kommentarer
|
data/config/locales/tr-TR.yml
CHANGED
@@ -20,22 +20,16 @@ tr:
|
|
20
20
|
comments:
|
21
21
|
create:
|
22
22
|
error: Yorum oluşturulurken bir sorunla karşılaşıldı.
|
23
|
-
comments_count: Yorum sayısı
|
24
|
-
comments_title: Yorumlar
|
25
|
-
last_activity:
|
26
|
-
new_comment_at_html: "<span> %{link}</span> yeni yorum"
|
27
|
-
view: Görünüm
|
28
23
|
votes:
|
29
24
|
create:
|
30
25
|
error: Yorum oylanırken bir sorun oluştu.
|
31
26
|
components:
|
32
27
|
add_comment_form:
|
33
|
-
account_message:
|
28
|
+
account_message: <a href="%{sign_in_url}">Hesabınızla giriş yapın</a> veya yorumunuzu eklemek için <a href="%{sign_up_url}">kaydolun</a>.
|
34
29
|
form:
|
35
30
|
body:
|
36
31
|
label: Yorum
|
37
32
|
placeholder: Bunun hakkında ne düşünüyorsun?
|
38
|
-
form_error: Metin zorunludur ve %{length} karakterden uzun olamaz.
|
39
33
|
user_group_id:
|
40
34
|
label: Olarak yorum yap
|
41
35
|
opinion:
|
@@ -57,7 +51,6 @@ tr:
|
|
57
51
|
description: Bu içerik uygunsuz mu?
|
58
52
|
details: Ek Yorumlar
|
59
53
|
reasons:
|
60
|
-
does_not_belong: Yasadışı faaliyet, intihar tehditleri, kişisel bilgiler veya %{organization_name} kuruluşuna ait olmadığını düşündüğünüz başka bir şey içeriyor.
|
61
54
|
offensive: Irkçılık, cinsiyetçilik, hakaretler, kişisel saldırılar, ölüm tehditleri, intihar talepleri veya herhangi bir nefret söylemi içerir.
|
62
55
|
spam: Clickbait, reklam, dolandırıcılık veya script botları içerir.
|
63
56
|
title: Uygunsuz içerik bildir
|
@@ -68,8 +61,6 @@ tr:
|
|
68
61
|
older: Daha eski
|
69
62
|
recent: Son
|
70
63
|
title: 'Tarafından sipariş:'
|
71
|
-
comment_thread:
|
72
|
-
title: '%{authorName}ile sohbet'
|
73
64
|
comments:
|
74
65
|
blocked_comments_for_user_warning: Şu anda yorum yapamıyorsunuz, ancak öncekileri okuyabilirsiniz.
|
75
66
|
blocked_comments_warning: Yorumlar şu anda devre dışı, ancak öncekileri okuyabilirsiniz.
|
@@ -120,6 +111,3 @@ tr:
|
|
120
111
|
description: Katılımcılar tarafından oluşturulan yorum sayısı
|
121
112
|
object: yorumlar
|
122
113
|
title: Yorumlar
|
123
|
-
errors:
|
124
|
-
messages:
|
125
|
-
cannot_have_comments: yorum alamaz
|
data/config/locales/uk.yml
CHANGED
@@ -26,12 +26,10 @@ uk:
|
|
26
26
|
error: При голосуванні щодо коментаря сталися помилки.
|
27
27
|
components:
|
28
28
|
add_comment_form:
|
29
|
-
account_message: <a href="%{sign_in_url}">Увійдіть за допомогою свого облікового запису</a> або <a href="%{sign_up_url}">зареєструйтесь</a>, щоб додати свій коментар.
|
30
29
|
form:
|
31
30
|
body:
|
32
31
|
label: Коментар
|
33
32
|
placeholder: Що ви думаєте з цього приводу?
|
34
|
-
form_error: Тут обов'язково потрібно ввести текст, але не більше, ніж %{length} символів.
|
35
33
|
user_group_id:
|
36
34
|
label: Коментувати як
|
37
35
|
opinion:
|
@@ -52,7 +50,6 @@ uk:
|
|
52
50
|
description: Чи цей вміст неприпустимий?
|
53
51
|
details: Додаткові коментарі
|
54
52
|
reasons:
|
55
|
-
does_not_belong: Містить незаконну діяльність, загрози самогубства, особисті відомості чи ще щось, неприпустиме, на вашу думку, для %{organization_name}.
|
56
53
|
offensive: Містить расизм, сексизм, образи, особисті напади, погрози вбивства, заяви про самогубство або будь-які ненависницькі висловлювання.
|
57
54
|
spam: Містить клацоловки (маніпулятивно-сенсаційні заголовки), рекламу, афери або лохотрони.
|
58
55
|
comment_order_selector:
|
@@ -62,8 +59,6 @@ uk:
|
|
62
59
|
older: Давніші
|
63
60
|
recent: Нещодавнє
|
64
61
|
title: 'Впорядкувати за:'
|
65
|
-
comment_thread:
|
66
|
-
title: Бесіда з %{authorName}
|
67
62
|
comments:
|
68
63
|
blocked_comments_warning: Коментарі зараз вимкнені, але ви можете прочитати попередні.
|
69
64
|
loading: Завантаження коментарів...
|
@@ -92,6 +87,3 @@ uk:
|
|
92
87
|
email_outro: Ви отримали це сповіщення, оскільки вас згадали в %{resource_title}.
|
93
88
|
email_subject: Вас згадали у %{resource_title}
|
94
89
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> згадав вас у <a href="%{resource_path}">%{resource_title}</a>
|
95
|
-
errors:
|
96
|
-
messages:
|
97
|
-
cannot_have_comments: не підлягає коментуванню
|
data/config/locales/zh-CN.yml
CHANGED
@@ -15,22 +15,15 @@ zh-CN:
|
|
15
15
|
other: 所得票数
|
16
16
|
decidim:
|
17
17
|
comments:
|
18
|
-
comments_count: 评论计数
|
19
|
-
comments_title: 评论
|
20
|
-
last_activity:
|
21
|
-
new_comment_at_html: "<span>在 %{link}的新评论</span>"
|
22
|
-
view: 查看
|
23
18
|
votes:
|
24
19
|
create:
|
25
20
|
error: 在表决该评论时出现问题。
|
26
21
|
components:
|
27
22
|
add_comment_form:
|
28
|
-
account_message: <a href="%{sign_in_url}">使用您的帐户</a> 或 <a href="%{sign_up_url}">注册</a> 来添加您的评论。
|
29
23
|
form:
|
30
24
|
body:
|
31
25
|
label: 评论
|
32
26
|
placeholder: 你对此有什么看法?
|
33
|
-
form_error: 文本是必需的,不能超过 %{length} 个字符。
|
34
27
|
user_group_id:
|
35
28
|
label: 评论为
|
36
29
|
opinion:
|
@@ -52,7 +45,6 @@ zh-CN:
|
|
52
45
|
description: 这个内容是否不适当?
|
53
46
|
details: 其他评论
|
54
47
|
reasons:
|
55
|
-
does_not_belong: 包含非法活动、自杀威胁、个人信息或你认为不属于 %{organization_name} 的其他东西。
|
56
48
|
offensive: 包括种族主义、性别主义、污泥、个人攻击、死亡威胁、自杀请求或任何形式的仇恨言论。
|
57
49
|
spam: 包含点击、广告、骗子或脚本机器人。
|
58
50
|
title: 报告不恰当的内容
|
@@ -63,8 +55,6 @@ zh-CN:
|
|
63
55
|
older: 更旧的
|
64
56
|
recent: 最近的
|
65
57
|
title: '排序方式:'
|
66
|
-
comment_thread:
|
67
|
-
title: 与 %{authorName} 的对话
|
68
58
|
comments:
|
69
59
|
blocked_comments_for_user_warning: 您此时无法评论,但您可以阅读前面的评论。
|
70
60
|
blocked_comments_warning: 评论此时被禁用,但您可以阅读前面的评论。
|
@@ -112,6 +102,3 @@ zh-CN:
|
|
112
102
|
description: 与会者生成的评论数
|
113
103
|
object: 评论
|
114
104
|
title: 评论
|
115
|
-
errors:
|
116
|
-
messages:
|
117
|
-
cannot_have_comments: 不能有评论
|
data/config/locales/zh-TW.yml
CHANGED
@@ -29,23 +29,17 @@ zh-TW:
|
|
29
29
|
error: 該評論無法被刪除。
|
30
30
|
update:
|
31
31
|
error: 更新評論時出現問題。
|
32
|
-
comments_count: 評論次數
|
33
32
|
comments_title: 評論
|
34
|
-
last_activity:
|
35
|
-
new_comment_at_html: "<span>在 %{link} 上發布了新評論</span>"
|
36
|
-
view: 檢視
|
37
33
|
votes:
|
38
34
|
create:
|
39
35
|
error: 投票評論時發生問題。
|
40
36
|
components:
|
41
37
|
add_comment_form:
|
42
|
-
account_message: <a href="%{sign_in_url}">登入您的帳戶</a>或<a href="%{sign_up_url}">註冊</a>以新增您的評論。
|
43
38
|
form:
|
44
39
|
body:
|
45
40
|
label: 評論
|
46
41
|
placeholder: 你有什麼想法?
|
47
42
|
form_error: 文字為必填欄位,且不可超過 %{length} 個字元。
|
48
|
-
submit: 發送
|
49
43
|
user_group_id:
|
50
44
|
label: 評論者:
|
51
45
|
opinion:
|
@@ -93,8 +87,6 @@ zh-TW:
|
|
93
87
|
older: 較早的
|
94
88
|
recent: 最近
|
95
89
|
title: '排序方式:'
|
96
|
-
comment_thread:
|
97
|
-
title: 與 %{authorName} 的對話
|
98
90
|
comments:
|
99
91
|
blocked_comments_for_unauthorized_user_warning: 目前需要驗證您的身份才能發表評論,但您可以閱讀先前的評論。
|
100
92
|
blocked_comments_for_user_warning: 目前您無法發表評論,但您可以閱讀先前的評論。
|
@@ -166,4 +158,4 @@ zh-TW:
|
|
166
158
|
title: 評論
|
167
159
|
errors:
|
168
160
|
messages:
|
169
|
-
cannot_have_comments:
|
161
|
+
cannot_have_comments: 無法評論
|
@@ -25,7 +25,7 @@ module Decidim
|
|
25
25
|
field :total_comments_count, GraphQL::Types::Int, description: "The number of comments in all levels this resource holds", null: false
|
26
26
|
|
27
27
|
def comments(order_by: nil, single_comment_id: nil)
|
28
|
-
SortedComments.for(object, order_by
|
28
|
+
SortedComments.for(object, order_by:, id: single_comment_id).not_hidden
|
29
29
|
end
|
30
30
|
|
31
31
|
def total_comments_count
|
@@ -26,7 +26,7 @@ module Decidim
|
|
26
26
|
},
|
27
27
|
commentable_id: resource.comment.decidim_commentable_id,
|
28
28
|
commentable_type: resource.comment.decidim_commentable_type,
|
29
|
-
root_commentable_url:
|
29
|
+
root_commentable_url:
|
30
30
|
|
31
31
|
},
|
32
32
|
created_at: resource.created_at,
|