decidim-comments 0.8.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +7 -0
- data/app/assets/javascripts/decidim/comments/bundle.js +115 -111
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/commands/decidim/comments/create_comment.rb +24 -2
- data/app/events/decidim/comments/comment_created_event.rb +13 -30
- data/app/events/decidim/comments/user_mentioned_event.rb +39 -0
- data/app/frontend/application/apollo_client.ts +10 -6
- data/app/frontend/application/application.component.test.tsx +0 -13
- data/app/frontend/application/application.component.tsx +0 -2
- data/app/frontend/comments/add_comment_form.component.tsx +23 -21
- data/app/frontend/comments/comment.component.test.tsx +9 -4
- data/app/frontend/comments/comment.component.tsx +80 -22
- data/app/frontend/comments/comments.component.test.tsx +1 -0
- data/app/frontend/comments/comments.component.tsx +2 -2
- data/app/frontend/comments/down_vote_button.component.tsx +48 -50
- data/app/frontend/comments/up_vote_button.component.tsx +13 -11
- data/app/frontend/fragments/comment_data.fragment.graphql +5 -2
- data/app/frontend/queries/comments.query.graphql +2 -0
- data/app/frontend/support/generate_comments_data.ts +10 -4
- data/app/frontend/support/generate_user_data.ts +2 -1
- data/app/frontend/support/schema.ts +419 -216
- data/app/models/decidim/comments/comment.rb +11 -0
- data/app/queries/decidim/comments/sorted_comments.rb +2 -2
- data/app/types/decidim/comments/commentable_interface.rb +10 -1
- data/config/locales/ca.yml +20 -16
- data/config/locales/en.yml +18 -13
- data/config/locales/es.yml +22 -18
- data/config/locales/eu.yml +18 -13
- data/config/locales/fi.yml +19 -14
- data/config/locales/fr.yml +18 -13
- data/config/locales/gl.yml +75 -0
- data/config/locales/it.yml +18 -13
- data/config/locales/nl.yml +18 -13
- data/config/locales/pl.yml +18 -13
- data/config/locales/pt-BR.yml +75 -0
- data/config/locales/pt.yml +18 -13
- data/config/locales/ru.yml +1 -14
- data/config/locales/sv.yml +75 -0
- data/config/locales/uk.yml +0 -13
- data/lib/decidim/comments/api/comment_type.rb +5 -1
- data/lib/decidim/comments/commentable.rb +2 -1
- data/lib/decidim/comments/version.rb +1 -1
- metadata +15 -11
data/config/locales/it.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
it:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '"%{resource_title}" è stato commentato. Puoi leggere il commento in questa pagina:'
|
8
|
-
email_outro: Hai ricevuto questa notifica perché state seguendo "%{resource_title}". Puoi disconnetterlo dal link precedente.
|
9
|
-
email_subject: C'è un nuovo commento da parte di %{author_name} al link %{resource_title}
|
10
|
-
notification_title: C'è un nuovo commento da %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
|
11
|
-
reply:
|
12
|
-
email_intro: Il "%{resource_title}" è stato commentato
|
13
|
-
email_outro: Hai ricevuto questa notifica perché state seguendo "%{resource_title}". Puoi disconnetterlo dal link precedente.
|
14
|
-
email_subject: Vi è una nuova risposta del tuo commento da %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: Vi è una nuova risposta del tuo commento da %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: Ci sono stati errori durante la votazione del commento.
|
@@ -49,7 +37,6 @@ it:
|
|
49
37
|
offensive: Vi sono contenuti razzisti, sessisti, offensivi, attacchi di carattere personale, minacce di morte o altro tipo di minacci, istigazioni al suicidio o altre forme d'odio verbale.
|
50
38
|
spam: Contiene pubblicità, truffe, clickbait ("esca da click") o altro contenuto mirato ad attrarre traffico internet.
|
51
39
|
title: Segnala un problema
|
52
|
-
verified_user_group: Organizzazione verificata
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: Favoriti
|
@@ -65,6 +52,24 @@ it:
|
|
65
52
|
title: "%{count} commenti"
|
66
53
|
featured_comment:
|
67
54
|
title: Commento in primo piano
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" è stato commentato. Puoi leggere il commento in questa pagina:'
|
60
|
+
email_outro: Hai ricevuto questa notifica perché stai seguendo "%{resource_title}" o il suo autore. Puoi smettere di seguirlo dal link precedente.
|
61
|
+
email_subject: C'è un nuovo commento da %{author_name} in %{resource_title}
|
62
|
+
notification_title: C'è un nuovo commento da <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
|
63
|
+
reply:
|
64
|
+
email_intro: Il "%{resource_title}" è stato commentato
|
65
|
+
email_outro: Hai ricevuto questa notifica perché stai seguendo "%{resource_title}" o il suo autore. Puoi smettere di seguirlo dal link precedente.
|
66
|
+
email_subject: C'è una nuova risposta del tuo commento da %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: C'è una nuova risposta del tuo commento da <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Sei stato menzionato
|
70
|
+
email_outro: Hai ricevuto questa notifica perché sei stato citato in "%{resource_title}".
|
71
|
+
email_subject: Sei stato menzionato in %{resource_title}
|
72
|
+
notification_title: Sei stato citato in <a href="%{resource_path}">%{resource_title}</a> di <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
68
73
|
errors:
|
69
74
|
messages:
|
70
75
|
cannot_have_comments: non si possono fare commenti
|
data/config/locales/nl.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
nl:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '"%{resource_title}" is becommentarieerd. U kunt de reactie op deze pagina lezen:'
|
8
|
-
email_outro: U heeft deze melding ontvangen omdat u "%{resource_title}" volgt. U kan stoppen met deze te volgen via vorige link.
|
9
|
-
email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
|
10
|
-
notification_title: Er is een nieuwe reactie van %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
|
11
|
-
reply:
|
12
|
-
email_intro: '"%{resource_title}" heeft een nieuwe reactie gekregen'
|
13
|
-
email_outro: U heeft deze melding ontvangen omdat u "%{resource_title}" volgt. U kunt stoppen met volgen via vorige link.
|
14
|
-
email_subject: Er is een nieuw antwoord op uw reactie van %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: Er is een nieuw antwoord op uw reactie van %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: Er zijn fouten geweest bij het stemmen van de reactie.
|
@@ -49,7 +37,6 @@ nl:
|
|
49
37
|
offensive: Bevat racisme, seksisme, laster, persoonlijke aanvallen, bedreigingen met de dood, zelfmoord verzoeken of enige vorm van haatzaaien.
|
50
38
|
spam: Bevat clickbait, reclame, oplichting of script bots.
|
51
39
|
title: Meld een probleem
|
52
|
-
verified_user_group: Geverifieerde organisatie
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: Best beoordeeld
|
@@ -65,6 +52,24 @@ nl:
|
|
65
52
|
title: "%{count} reacties"
|
66
53
|
featured_comment:
|
67
54
|
title: Aanbevolen reactie
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" is becommentarieerd. U kunt de opmerking op deze pagina lezen:'
|
60
|
+
email_outro: Je hebt deze melding ontvangen omdat je '%{resource_title}' of de auteur ervan volgt. Je kunt het niet meer volgen vanaf de vorige link.
|
61
|
+
email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
|
62
|
+
notification_title: Er is een nieuwe reactie van <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
|
63
|
+
reply:
|
64
|
+
email_intro: De "%{resource_title}" is becommentarieerd
|
65
|
+
email_outro: Je hebt deze melding ontvangen omdat je '%{resource_title}' of de auteur ervan volgt. Je kunt het niet meer volgen vanaf de vorige link.
|
66
|
+
email_subject: Er is een nieuw antwoord van je reactie van %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: Er is een nieuw antwoord van je reactie van <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Je bent genoemd
|
70
|
+
email_outro: Je hebt deze melding ontvangen omdat je bent genoemd in "%{resource_title}".
|
71
|
+
email_subject: U bent genoemd in %{resource_title}
|
72
|
+
notification_title: Je bent genoemd in <a href="%{resource_path}">%{resource_title}</a> door <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
68
73
|
errors:
|
69
74
|
messages:
|
70
75
|
cannot_have_comments: Kan geen reacties hebben
|
data/config/locales/pl.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
pl:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '"Skomentował" %{resource_title} ". Możesz przeczytać komentarz na tej stronie:'
|
8
|
-
email_outro: Otrzymujesz to powiadomienie, ponieważ śledzisz "%{resource_title}". Możesz cofnąć ją od poprzedniego linku.
|
9
|
-
email_subject: Istnieje nowy komentarz z %{author_name} w %{resource_title}
|
10
|
-
notification_title: W %{author_name} w <a href="%{resource_path}">%{resource_title}</a> nowy komentarz
|
11
|
-
reply:
|
12
|
-
email_intro: '"Skomentował" %{resource_title} "'
|
13
|
-
email_outro: Otrzymujesz to powiadomienie, ponieważ śledzisz "%{resource_title}". Możesz cofnąć ją od poprzedniego linku.
|
14
|
-
email_subject: Nowa odpowiedź Twojego komentarza z %{author_name} w <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: Nowa odpowiedź Twojego komentarza z %{author_name} w <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: Podczas głosowania komentarza wystąpiły błędy.
|
@@ -49,7 +37,6 @@ pl:
|
|
49
37
|
offensive: Zawiera rasizm, seksizm, gniew, ataki osobiste, groźby śmierci, wnioski o samobójstwo lub jakąkolwiek formę mowy o nienawiści.
|
50
38
|
spam: Zawiera kliknięć, reklamy, oszustwa lub boty scenariusza.
|
51
39
|
title: Zgłoś problem
|
52
|
-
verified_user_group: Zweryfikowana organizacja
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: Najlepsza ocena
|
@@ -65,6 +52,24 @@ pl:
|
|
65
52
|
title: "%{count} komentarzy"
|
66
53
|
featured_comment:
|
67
54
|
title: Wyróżniony komentarz
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" został skomentowany. Możesz przeczytać komentarz na tej stronie:'
|
60
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz "%{resource_title}" lub jego autora. Możesz przestać go obserwować z poprzedniego linku.
|
61
|
+
email_subject: Jest nowy komentarz od %{author_name} w %{resource_title}
|
62
|
+
notification_title: Jest nowy komentarz od <a href="%{author_path}">%{author_name} %{author_nickname}</a> w <a href="%{resource_path}">%{resource_title}</a>
|
63
|
+
reply:
|
64
|
+
email_intro: Komentarz "%{resource_title}" został skomentowany
|
65
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz "%{resource_title}" lub jego autora. Możesz przestać go obserwować z poprzedniego linku.
|
66
|
+
email_subject: Nowa odpowiedź na Twój komentarz od %{author_name} w <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: Pojawiła się nowa odpowiedź Twojego komentarza z <a href="%{author_path}">%{author_name} %{author_nickname}</a> w <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Zostałeś wspomniany
|
70
|
+
email_outro: Otrzymałeś to powiadomienie, ponieważ wspomniano Cię w "%{resource_title}".
|
71
|
+
email_subject: Wspomnieliś cie w %{resource_title}
|
72
|
+
notification_title: Wspomniałeś w <a href="%{resource_path}">%{resource_title}</a> przez <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
68
73
|
errors:
|
69
74
|
messages:
|
70
75
|
cannot_have_comments: Nie może mieć komentarzy
|
@@ -0,0 +1,75 @@
|
|
1
|
+
pt-BR:
|
2
|
+
decidim:
|
3
|
+
comments:
|
4
|
+
votes:
|
5
|
+
create:
|
6
|
+
error: Houve erros ao votar o comentário.
|
7
|
+
components:
|
8
|
+
add_comment_form:
|
9
|
+
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.
|
10
|
+
form:
|
11
|
+
body:
|
12
|
+
label: Comente
|
13
|
+
placeholder: O que você pensa sobre isso?
|
14
|
+
form_error: O texto é obrigatório e não pode ser maior que %{length} caracteres.
|
15
|
+
submit: Enviar
|
16
|
+
user_group_id:
|
17
|
+
label: Comente como
|
18
|
+
opinion:
|
19
|
+
neutral: Neutro
|
20
|
+
remaining_characters: "%{count} caracteres restantes"
|
21
|
+
remaining_characters_1: "%{count} personagem à esquerda"
|
22
|
+
title: Adicione seu comentário
|
23
|
+
comment:
|
24
|
+
alignment:
|
25
|
+
against: Contra
|
26
|
+
in_favor: A favor
|
27
|
+
deleted_user: Usuário deletado
|
28
|
+
reply: Resposta
|
29
|
+
report:
|
30
|
+
action: Relatório
|
31
|
+
already_reported: Este conteúdo já foi relatado e será revisto por um administrador.
|
32
|
+
close: Fechar
|
33
|
+
description: Este conteúdo é impróprio?
|
34
|
+
details: Comentários adicionais
|
35
|
+
reasons:
|
36
|
+
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}.
|
37
|
+
offensive: Contém racismo, sexismo, insultos, ataques pessoais, ameaças de morte, pedidos de suicídio ou qualquer tipo de discurso de ódio.
|
38
|
+
spam: Contém clickbait, publicidade, fraudes ou script bots.
|
39
|
+
title: Reportar um problema
|
40
|
+
comment_order_selector:
|
41
|
+
order:
|
42
|
+
best_rated: Melhores avaliações
|
43
|
+
most_discussed: Mais Discutidos
|
44
|
+
older: Mais velho
|
45
|
+
recent: Recente
|
46
|
+
title: 'Ordenar por:'
|
47
|
+
comment_thread:
|
48
|
+
title: Conversa com %{authorName}
|
49
|
+
comments:
|
50
|
+
blocked_comments_warning: Os comentários estão desativados neste momento, mas você pode ler os anteriores.
|
51
|
+
loading: Carregando comentários ...
|
52
|
+
title: "%{count} comentários"
|
53
|
+
featured_comment:
|
54
|
+
title: Comentário em destaque
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" foi comentado. Você pode ler o comentário nesta página:'
|
60
|
+
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
|
61
|
+
email_subject: Há um novo comentário de %{author_name} em %{resource_title}
|
62
|
+
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>
|
63
|
+
reply:
|
64
|
+
email_intro: O "%{resource_title}" foi comentado
|
65
|
+
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
|
66
|
+
email_subject: Há uma nova resposta do seu comentário de %{author_name} em <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: Há uma nova resposta do seu comentário de <a href="%{author_path}">%{author_name} %{author_nickname}</a> em <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Você foi mencionado
|
70
|
+
email_outro: Você recebeu esta notificação porque você foi mencionado em "%{resource_title}".
|
71
|
+
email_subject: Você foi mencionado em %{resource_title}
|
72
|
+
notification_title: Você foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
73
|
+
errors:
|
74
|
+
messages:
|
75
|
+
cannot_have_comments: não pode ter comentários
|
data/config/locales/pt.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
pt:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '"%{resource_title}" foi comentado. Você pode ler o comentário nesta página:'
|
8
|
-
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}". Você pode ignorá-lo do link anterior.
|
9
|
-
email_subject: Há um novo comentário de %{author_name} em %{resource_title}
|
10
|
-
notification_title: Há um novo comentário de %{author_name} em <a href="%{resource_path}">%{resource_title}</a>
|
11
|
-
reply:
|
12
|
-
email_intro: O "%{resource_title}" foi comentado
|
13
|
-
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}". Você pode ignorá-lo do link anterior.
|
14
|
-
email_subject: Há uma nova resposta do seu comentário de %{author_name} em <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: Há uma nova resposta do seu comentário de %{author_name} em <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: Houve erros ao votar o comentário.
|
@@ -49,7 +37,6 @@ pt:
|
|
49
37
|
offensive: Contém racismo, sexismo, insultos, ataques pessoais, ameaças de morte, pedidos de suicídio ou qualquer tipo de discurso de ódio.
|
50
38
|
spam: Contém clickbait, publicidade, fraudes ou script bots.
|
51
39
|
title: Reportar um problema
|
52
|
-
verified_user_group: Organização verificada
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: Melhores avaliações
|
@@ -65,6 +52,24 @@ pt:
|
|
65
52
|
title: "%{count} comentários"
|
66
53
|
featured_comment:
|
67
54
|
title: Comentário em destaque
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" foi comentado. Você pode ler o comentário nesta página:'
|
60
|
+
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
|
61
|
+
email_subject: Há um novo comentário de %{author_name} em %{resource_title}
|
62
|
+
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>
|
63
|
+
reply:
|
64
|
+
email_intro: O "%{resource_title}" foi comentado
|
65
|
+
email_outro: Você recebeu esta notificação porque está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
|
66
|
+
email_subject: Há uma nova resposta do seu comentário de %{author_name} em <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: Há uma nova resposta do seu comentário de <a href="%{author_path}">%{author_name} %{author_nickname}</a> em <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Você foi mencionado
|
70
|
+
email_outro: Você recebeu esta notificação porque você foi mencionado em "%{resource_title}".
|
71
|
+
email_subject: Você foi mencionado em %{resource_title}
|
72
|
+
notification_title: Você foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
68
73
|
errors:
|
69
74
|
messages:
|
70
75
|
cannot_have_comments: não pode ter comentários
|
data/config/locales/ru.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
ru:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '«%{resource_title}» прокомментировали. Вы можете прочитать комментарий на странице:'
|
8
|
-
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
9
|
-
email_subject: Появился новый комментарий от %{author_name} в %{resource_title}
|
10
|
-
notification_title: Появился новый комментарий от %{author_name} в <a href="%{resource_path}">%{resource_title}</a>
|
11
|
-
reply:
|
12
|
-
email_intro: '«%{resource_title}» прокомментировано'
|
13
|
-
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
14
|
-
email_subject: На ваш комментарий появился новый ответ от %{author_name} в <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: На ваш комментарий появился новый ответ от %{author_name} в <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: При голосовании за комментарий произошли ошибки.
|
@@ -36,7 +24,7 @@ ru:
|
|
36
24
|
alignment:
|
37
25
|
against: Против
|
38
26
|
in_favor: В поддержку
|
39
|
-
deleted_user: Удаленный
|
27
|
+
deleted_user: Удаленный участник
|
40
28
|
reply: Ответить
|
41
29
|
report:
|
42
30
|
action: Пожаловаться
|
@@ -49,7 +37,6 @@ ru:
|
|
49
37
|
offensive: Содержит расизм, сексизм, оскорбления, личные нападки, угрозы убийства, заявления о самоубийстве, или любую форму разжигания ненависти.
|
50
38
|
spam: Содержит кликоловки (манипулятивно-сенсационные заголовки), рекламу, мошенничество или лохотроны.
|
51
39
|
title: Пожаловаться на проблему
|
52
|
-
verified_user_group: Проверенная организация
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: С наивысшим рейтингом
|
@@ -0,0 +1,75 @@
|
|
1
|
+
sv:
|
2
|
+
decidim:
|
3
|
+
comments:
|
4
|
+
votes:
|
5
|
+
create:
|
6
|
+
error: Det har varit fel när du röstar kommentaren.
|
7
|
+
components:
|
8
|
+
add_comment_form:
|
9
|
+
account_message: <a href="%{sign_in_url}"> Logga in med ditt konto</a> eller <a href="%{sign_up_url}">sign up</a> för att lägga till din kommentar.
|
10
|
+
form:
|
11
|
+
body:
|
12
|
+
label: Kommentar
|
13
|
+
placeholder: Vad tycker du om detta?
|
14
|
+
form_error: Texten är obligatorisk och den kan inte vara längre än %{length} tecken.
|
15
|
+
submit: Skicka
|
16
|
+
user_group_id:
|
17
|
+
label: Kommentera som
|
18
|
+
opinion:
|
19
|
+
neutral: Neutral
|
20
|
+
remaining_characters: "%{count} tecken kvar"
|
21
|
+
remaining_characters_1: "%{count} tecken kvar"
|
22
|
+
title: Lägg till din kommentar
|
23
|
+
comment:
|
24
|
+
alignment:
|
25
|
+
against: Mot
|
26
|
+
in_favor: Till förmån för
|
27
|
+
deleted_user: Ta bort användare
|
28
|
+
reply: Svar
|
29
|
+
report:
|
30
|
+
action: Rapportera
|
31
|
+
already_reported: Det här innehållet är redan rapporterat och det kommer att granskas av en administratör.
|
32
|
+
close: Stänga
|
33
|
+
description: Är detta innehåll olämpligt?
|
34
|
+
details: Ytterligare kommentarer
|
35
|
+
reasons:
|
36
|
+
does_not_belong: Innehåller olaglig aktivitet, självmordshot, personlig information eller något annat du tror inte hör hemma på %{organization_name}.
|
37
|
+
offensive: Innehåller rasism, sexism, slurkar, personliga attacker, dödshot, självmordsförfrågningar eller någon form av hattal.
|
38
|
+
spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
|
39
|
+
title: Rapportera ett problem
|
40
|
+
comment_order_selector:
|
41
|
+
order:
|
42
|
+
best_rated: Bästa betyg
|
43
|
+
most_discussed: Mest diskuterat
|
44
|
+
older: Äldre
|
45
|
+
recent: Nyligen
|
46
|
+
title: 'Sortera efter:'
|
47
|
+
comment_thread:
|
48
|
+
title: Samtal med %{authorName}
|
49
|
+
comments:
|
50
|
+
blocked_comments_warning: Kommentarer är inaktiverade just nu, men du kan läsa de föregående.
|
51
|
+
loading: Laddar kommentarer ...
|
52
|
+
title: "%{count} kommentarer"
|
53
|
+
featured_comment:
|
54
|
+
title: Utvalda kommentarer
|
55
|
+
events:
|
56
|
+
comments:
|
57
|
+
comment_created:
|
58
|
+
comment:
|
59
|
+
email_intro: '"%{resource_title}" har kommenterats. Du kan läsa kommentaren på den här sidan:'
|
60
|
+
email_outro: Du har fått den här meddelandet eftersom du följer "%{resource_title}" eller dess författare. Du kan följa det från föregående länk.
|
61
|
+
email_subject: Det finns en ny kommentar från %{author_name} på %{resource_title}
|
62
|
+
notification_title: Det finns en ny kommentar från <a href="%{author_path}">%{author_name} %{author_nickname}</a> i <a href="%{resource_path}">%{resource_title}</a>
|
63
|
+
reply:
|
64
|
+
email_intro: '"%{resource_title}" har kommenterats'
|
65
|
+
email_outro: Du har fått den här meddelandet eftersom du följer "%{resource_title}" eller dess författare. Du kan följa det från föregående länk.
|
66
|
+
email_subject: Det finns ett nytt svar på din kommentar från %{author_name} i <a href="%{resource_url}">%{resource_title}</a>
|
67
|
+
notification_title: Det finns ett nytt svar på din kommentar från <a href="%{author_path}">%{author_name} %{author_nickname}</a> i <a href="%{resource_path}">%{resource_title}</a>
|
68
|
+
user_mentioned:
|
69
|
+
email_intro: Du har nämnts
|
70
|
+
email_outro: Du har fått den här meddelandet eftersom du har nämnts i "%{resource_title}".
|
71
|
+
email_subject: Du har nämnts i %{resource_title}
|
72
|
+
notification_title: Du har nämnts i <a href="%{resource_path}">%{resource_title}</a> av <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
73
|
+
errors:
|
74
|
+
messages:
|
75
|
+
cannot_have_comments: kan inte ha kommentarer
|
data/config/locales/uk.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
uk:
|
2
2
|
decidim:
|
3
3
|
comments:
|
4
|
-
events:
|
5
|
-
comment_created:
|
6
|
-
comment:
|
7
|
-
email_intro: '"%{resource_title}" прокоментували. Ви можете прочитати коментар на цій сторінці:'
|
8
|
-
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
|
9
|
-
email_subject: Надійшов новий коментар від %{author_name} на %{resource_title}
|
10
|
-
notification_title: Надійшов новий коментар від %{author_name} на <a href="%{resource_path}">%{resource_title}</a>
|
11
|
-
reply:
|
12
|
-
email_intro: '"%{resource_title}" прокоментували'
|
13
|
-
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
|
14
|
-
email_subject: Надійшла нова відповідь на ваш коментар від %{author_name} на <a href="%{resource_url}">%{resource_title}</a>
|
15
|
-
notification_title: Надійшла нова відповідь на ваш коментар від %{author_name} на <a href="%{resource_path}">%{resource_title}</a>
|
16
4
|
votes:
|
17
5
|
create:
|
18
6
|
error: При голосуванні коментаря сталися помилки.
|
@@ -49,7 +37,6 @@ uk:
|
|
49
37
|
offensive: Містить расизм, сексизм, образи, особисті напади, погрози вбивства, заяви про самогубство або будь-які ненависницькі висловлювання.
|
50
38
|
spam: Містить клацоловки (маніпулятивно-сенсаційні заголовки), рекламу, афери або лохотрони.
|
51
39
|
title: Поскаржитись на проблему
|
52
|
-
verified_user_group: Перевірена організація
|
53
40
|
comment_order_selector:
|
54
41
|
order:
|
55
42
|
best_rated: З найкращим рейтингом
|
@@ -21,12 +21,16 @@ module Decidim
|
|
21
21
|
|
22
22
|
field :body, !types.String, "The comment message"
|
23
23
|
|
24
|
+
field :formattedBody, !types.String, "The comment message ready to display (it is expected to include HTML)", property: :formatted_body
|
25
|
+
|
24
26
|
field :createdAt, !types.String, "The creation date of the comment" do
|
25
27
|
resolve lambda { |obj, _args, _ctx|
|
26
28
|
obj.created_at.iso8601
|
27
29
|
}
|
28
30
|
end
|
29
31
|
|
32
|
+
field :formattedCreatedAt, !types.String, "The creation date of the comment in relative format", property: :friendly_created_at
|
33
|
+
|
30
34
|
field :author, !Decidim::AuthorInterface, "The comment's author" do
|
31
35
|
resolve lambda { |obj, _args, _ctx|
|
32
36
|
obj.user_group || obj.author
|
@@ -61,7 +65,7 @@ module Decidim
|
|
61
65
|
|
62
66
|
field :hasComments, !types.Boolean, "Check if the commentable has comments" do
|
63
67
|
resolve lambda { |obj, _args, _ctx|
|
64
|
-
obj.accepts_new_comments? && obj.
|
68
|
+
obj.accepts_new_comments? && obj.comment_threads.size.positive?
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|