decidim-comments 0.30.1 → 0.31.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.
- checksums.yaml +4 -4
- data/app/cells/decidim/comments/comment/deletion_data.erb +1 -1
- data/app/cells/decidim/comments/comment/show.erb +12 -12
- data/app/cells/decidim/comments/comment/votes.erb +4 -4
- data/app/cells/decidim/comments/comment_cell.rb +1 -3
- data/app/cells/decidim/comments/comment_form/comment_as.erb +5 -24
- data/app/cells/decidim/comments/comment_form/opinion.erb +3 -3
- data/app/cells/decidim/comments/comment_form/show.erb +3 -3
- data/app/cells/decidim/comments/comment_form_cell.rb +5 -20
- data/app/cells/decidim/comments/comments/order_control.erb +1 -1
- data/app/cells/decidim/comments/edit_comment_modal_form/show.erb +2 -2
- data/app/commands/decidim/comments/create_comment.rb +3 -5
- data/app/events/decidim/comments/comment_event.rb +3 -10
- data/app/forms/decidim/comments/comment_form.rb +0 -1
- data/app/models/decidim/comments/comment.rb +2 -2
- data/app/models/decidim/comments/seed.rb +4 -16
- data/app/packs/src/decidim/comments/comments.component.js +0 -7
- data/app/packs/src/decidim/comments/comments.component.test.js +4 -16
- data/app/packs/src/decidim/comments/comments.js +1 -1
- data/app/packs/src/decidim/comments/comments_mobile_modal.js +1 -1
- data/app/packs/stylesheets/comments.scss +2 -6
- data/app/queries/decidim/comments/sorted_comments.rb +1 -1
- data/app/services/decidim/comments/new_comment_notification_creator.rb +2 -27
- data/app/views/decidim/comments/admin/shared/_availability_fields.html.erb +1 -1
- data/app/views/decidim/comments/comments/delete.js.erb +4 -2
- data/app/views/decidim/comments/comments/reload.js.erb +0 -1
- data/app/views/decidim/comments/comments/update.js.erb +3 -1
- data/app/views/decidim/comments/votes/create.js.erb +26 -7
- data/config/assets.rb +2 -2
- data/config/locales/ar.yml +0 -18
- data/config/locales/bg.yml +0 -18
- data/config/locales/bs-BA.yml +0 -8
- data/config/locales/ca-IT.yml +6 -20
- data/config/locales/ca.yml +6 -20
- data/config/locales/cs.yml +0 -20
- data/config/locales/de.yml +6 -20
- data/config/locales/el.yml +0 -18
- data/config/locales/en.yml +6 -20
- data/config/locales/es-MX.yml +6 -20
- data/config/locales/es-PY.yml +6 -20
- data/config/locales/es.yml +6 -20
- data/config/locales/eu.yml +6 -20
- data/config/locales/fi-plain.yml +8 -20
- data/config/locales/fi.yml +8 -20
- data/config/locales/fr-CA.yml +6 -23
- data/config/locales/fr.yml +6 -23
- data/config/locales/ga-IE.yml +0 -5
- data/config/locales/gl.yml +0 -11
- data/config/locales/hu.yml +0 -18
- data/config/locales/id-ID.yml +0 -11
- data/config/locales/is-IS.yml +0 -5
- data/config/locales/it.yml +0 -18
- data/config/locales/ja.yml +4 -20
- data/config/locales/lb.yml +0 -18
- data/config/locales/lt.yml +0 -18
- data/config/locales/lv.yml +0 -18
- data/config/locales/nl.yml +0 -18
- data/config/locales/no.yml +0 -18
- data/config/locales/pl.yml +0 -18
- data/config/locales/pt-BR.yml +0 -18
- data/config/locales/pt.yml +0 -18
- data/config/locales/ro-RO.yml +0 -20
- data/config/locales/ru.yml +0 -11
- data/config/locales/si-LK.yml +0 -2
- data/config/locales/sk.yml +0 -18
- data/config/locales/sq-AL.yml +0 -2
- data/config/locales/sr-CS.yml +0 -9
- data/config/locales/sv.yml +0 -20
- data/config/locales/tr-TR.yml +0 -18
- data/config/locales/uk.yml +0 -6
- data/config/locales/zh-CN.yml +0 -18
- data/config/locales/zh-TW.yml +0 -18
- data/db/migrate/20181003080320_fix_user_groups_ids_in_comments.rb +8 -1
- data/lib/decidim/api/comment_type.rb +1 -4
- data/lib/decidim/api/commentable_interface.rb +7 -13
- data/lib/decidim/api/commentable_mutation_type.rb +2 -3
- data/lib/decidim/comments/comment_serializer.rb +0 -4
- data/lib/decidim/comments/comment_vote_serializer.rb +0 -4
- data/lib/decidim/comments/commentable.rb +4 -0
- data/lib/decidim/comments/engine.rb +6 -20
- data/lib/decidim/comments/test/factories.rb +1 -1
- data/lib/decidim/comments/test/shared_examples/comment_event.rb +1 -10
- data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +0 -2
- data/lib/decidim/comments/version.rb +1 -1
- metadata +8 -12
- data/app/events/decidim/comments/comment_by_followed_user_group_event.rb +0 -9
- data/app/events/decidim/comments/user_group_mentioned_event.rb +0 -10
- data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +0 -50
- data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +0 -97
data/config/locales/pl.yml
CHANGED
@@ -6,7 +6,6 @@ pl:
|
|
6
6
|
decidim/comments/comment_created_event: Komentarz
|
7
7
|
decidim/comments/comment_upvoted_event: Polubiono komentarz
|
8
8
|
decidim/comments/reply_created_event: Odpowiedź na komentarz
|
9
|
-
decidim/comments/user_group_mentioned_event: Wzmianka
|
10
9
|
decidim/comments/user_mentioned_event: Wzmianka
|
11
10
|
activerecord:
|
12
11
|
models:
|
@@ -54,8 +53,6 @@ pl:
|
|
54
53
|
form_error: Tekst jest wymagany i nie może być dłuższy niż %{length} znaków.
|
55
54
|
submit_reply: Opublikuj odpowiedź
|
56
55
|
submit_root_comment: Opublikuj komentarz
|
57
|
-
user_group_id:
|
58
|
-
label: Komentuj jako
|
59
56
|
opinion:
|
60
57
|
label: Twoja opinia na ten temat
|
61
58
|
negative: Negatywna
|
@@ -138,11 +135,6 @@ pl:
|
|
138
135
|
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{author_name}. Możesz usunąć użytkownika z obserwowanych na jego stronie profilowej.
|
139
136
|
email_subject: Jest nowy komentarz dodany przez %{author_name} do %{resource_title}
|
140
137
|
notification_title: Pojawił się nowy komentarz dodany przez <a href="%{author_path}">%{author_name} %{author_nickname}</a> do <a href="%{resource_path}">%{resource_title}</a>.
|
141
|
-
comment_by_followed_user_group:
|
142
|
-
email_intro: 'Grupa %{author_name} dodała komentarz do %{resource_title}. Możesz go przeczytać na tej stronie:'
|
143
|
-
email_outro: Otrzymujesz to powiadomienie, ponieważ obserwujesz %{author_name}. Możesz przestać obserwować tę grupę z poziomu jej strony profilowej.
|
144
|
-
email_subject: Jest nowy komentarz dodany przez %{author_name} do %{resource_title}
|
145
|
-
notification_title: Pojawił się nowy komentarz dodany przez <a href="%{author_path}">%{author_name} %{author_nickname}</a> do <a href="%{resource_path}">%{resource_title}</a>.
|
146
138
|
comment_created:
|
147
139
|
email_intro: "Nowy komentarz: %{resource_title}. Możesz go przeczytać na tej stronie:"
|
148
140
|
email_outro: Otrzymujesz to powiadomienie, ponieważ obserwujesz "%{resource_title}" lub jego autora. Możesz przestać go obserwować po kliknięciu w poprzedni link.
|
@@ -163,21 +155,11 @@ pl:
|
|
163
155
|
email_outro: Otrzymałeś to powiadomienie, ponieważ odpowiedziano na Twój komentarz.
|
164
156
|
email_subject: "%{author_name} odpowiedział(a) na Twój komentarz do %{resource_title}"
|
165
157
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> odpowiedział(a) na Twój komentarz do <a href="%{resource_path}">%{resource_title}</a>
|
166
|
-
user_group_mentioned:
|
167
|
-
email_intro: Wspomniano o grupie, do której należysz
|
168
|
-
email_outro: Otrzymujesz to powiadomienie, ponieważ jesteś członkiem grupy %{group_name}, o której wspomniano w %{resource_title}.
|
169
|
-
email_subject: Wspomniano o Tobie w %{resource_title} jako o członku %{group_name}
|
170
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> wspomniał(a) o Tobie w <a href="%{resource_path}">%{resource_title}</a> jako o członku <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
171
158
|
user_mentioned:
|
172
159
|
email_intro: Wspomniano o Tobie
|
173
160
|
email_outro: Otrzymałeś to powiadomienie, ponieważ wspomniano o Tobie w %{resource_title}.
|
174
161
|
email_subject: Wspomniano o Tobie w %{resource_title}
|
175
162
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> wspomniał(a) o Tobie w <a href="%{resource_path}">%{resource_title}</a>
|
176
|
-
metrics:
|
177
|
-
comments:
|
178
|
-
description: Liczba komentarzy wygenerowanych przez użytkowników
|
179
|
-
object: komentarze
|
180
|
-
title: Komentarze
|
181
163
|
errors:
|
182
164
|
messages:
|
183
165
|
cannot_have_comments: nie może mieć komentarzy
|
data/config/locales/pt-BR.yml
CHANGED
@@ -6,7 +6,6 @@ pt-BR:
|
|
6
6
|
decidim/comments/comment_created_event: Comentário
|
7
7
|
decidim/comments/comment_upvoted_event: Comentário valorizado positivamente
|
8
8
|
decidim/comments/reply_created_event: Resposta
|
9
|
-
decidim/comments/user_group_mentioned_event: Mencionar
|
10
9
|
decidim/comments/user_mentioned_event: Mencionar
|
11
10
|
activerecord:
|
12
11
|
models:
|
@@ -36,8 +35,6 @@ pt-BR:
|
|
36
35
|
body:
|
37
36
|
label: Comente
|
38
37
|
placeholder: O que você pensa sobre isso?
|
39
|
-
user_group_id:
|
40
|
-
label: Comente como
|
41
38
|
opinion:
|
42
39
|
label: Sua opinião sobre este tópico
|
43
40
|
negative: Negativo
|
@@ -110,11 +107,6 @@ pt-BR:
|
|
110
107
|
email_outro: Você recebeu esta notificação porque está seguindo %{author_name}. Você pode deixar de seguir esse usuário em sua página de perfil.
|
111
108
|
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
|
112
109
|
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>.
|
113
|
-
comment_by_followed_user_group:
|
114
|
-
email_intro: 'O grupo %{author_name} deixou um comentário em %{resource_title}. Você pode lê-lo nesta página:'
|
115
|
-
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.
|
116
|
-
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
|
117
|
-
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>.
|
118
110
|
comment_created:
|
119
111
|
email_intro: "%{resource_title} foi comentado. Você pode ler o comentário nesta página:"
|
120
112
|
email_outro: Você recebeu esta notificação porque você está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
|
@@ -135,18 +127,8 @@ pt-BR:
|
|
135
127
|
email_outro: Você recebeu esta notificação porque o seu comentário foi respondido.
|
136
128
|
email_subject: "%{author_name} respondeu seu comentário em %{resource_title}"
|
137
129
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> respondeu seu comentário em <a href="%{resource_path}">%{resource_title}</a>
|
138
|
-
user_group_mentioned:
|
139
|
-
email_intro: Foi mencionado um grupo ao qual você pertence
|
140
|
-
email_outro: Você recebeu esta notificação porque é membro do grupo %{group_name} que foi mencionado em %{resource_title}.
|
141
|
-
email_subject: Você foi mencionado em %{resource_title} como membro de %{group_name}
|
142
|
-
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>
|
143
130
|
user_mentioned:
|
144
131
|
email_intro: Você foi mencionado
|
145
132
|
email_outro: Você recebeu esta notificação porque você foi mencionado em %{resource_title}.
|
146
133
|
email_subject: Você foi mencionado em %{resource_title}
|
147
134
|
notification_title: Você foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
148
|
-
metrics:
|
149
|
-
comments:
|
150
|
-
description: Número de comentários gerados pelos usuários
|
151
|
-
object: comentários
|
152
|
-
title: Comentários
|
data/config/locales/pt.yml
CHANGED
@@ -5,7 +5,6 @@ pt:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: Comentar
|
6
6
|
decidim/comments/comment_created_event: Comente
|
7
7
|
decidim/comments/reply_created_event: Comentário resposta
|
8
|
-
decidim/comments/user_group_mentioned_event: Menção
|
9
8
|
decidim/comments/user_mentioned_event: Menção
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -41,8 +40,6 @@ pt:
|
|
41
40
|
body:
|
42
41
|
label: Comente
|
43
42
|
placeholder: O que você pensa sobre isso?
|
44
|
-
user_group_id:
|
45
|
-
label: Comente como
|
46
43
|
opinion:
|
47
44
|
label: A sua opinião sobre este tópico
|
48
45
|
negative: Negativa
|
@@ -112,11 +109,6 @@ pt:
|
|
112
109
|
email_outro: Recebeu esta notificação porque segue %{author_name}. pode deixar de seguir este utilizador a partir da respetiva página de perfil.
|
113
110
|
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
|
114
111
|
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>.
|
115
|
-
comment_by_followed_user_group:
|
116
|
-
email_intro: 'O grupo %{author_name} deixou um comentário em %{resource_title}. Poderá lê-lo nesta página:'
|
117
|
-
email_outro: Recebeu esta notificação porque segue %{author_name}. Pode deixar de seguir este grupo a partir da respetiva página de perfil.
|
118
|
-
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
|
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>.
|
120
112
|
comment_created:
|
121
113
|
email_intro: "%{resource_title} foi comentado. Você pode ler o comentário nesta página:"
|
122
114
|
email_outro: Recebeu esta notificação porque segue "%{resource_title}" ou o seu autor. Pode deixar de segui-lo a partir da ligação anterior.
|
@@ -137,18 +129,8 @@ pt:
|
|
137
129
|
email_outro: Recebeu esta notificação porque responderam ao seu comentário.
|
138
130
|
email_subject: "%{author_name} respondeu ao seu comentário em %{resource_title}"
|
139
131
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> respondeu ao seu comentário em <a href="%{resource_path}">%{resource_title}</a>
|
140
|
-
user_group_mentioned:
|
141
|
-
email_intro: Um grupo ao qual pertence foi mencionado
|
142
|
-
email_outro: Recebeu esta notificação porque é membro do grupo %{group_name} que foi mencionado em %{resource_title}.
|
143
|
-
email_subject: Foi mencionado em %{resource_title} como membro de %{group_name}
|
144
|
-
notification_title: Foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a> como membro de <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
145
132
|
user_mentioned:
|
146
133
|
email_intro: Foi mencionado(a)
|
147
134
|
email_outro: Recebeu esta notificação porque foi mencionado(a) em %{resource_title}.
|
148
135
|
email_subject: Foi mencionado(a) em %{resource_title}
|
149
136
|
notification_title: Você foi mencionado em <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
150
|
-
metrics:
|
151
|
-
comments:
|
152
|
-
description: Número de comentários gerados pelos participantes
|
153
|
-
object: comentários
|
154
|
-
title: Comentários
|
data/config/locales/ro-RO.yml
CHANGED
@@ -6,7 +6,6 @@ ro:
|
|
6
6
|
decidim/comments/comment_created_event: Comentariu
|
7
7
|
decidim/comments/comment_upvoted_event: Comentariu votat favorabil
|
8
8
|
decidim/comments/reply_created_event: Răspuns la comentariu
|
9
|
-
decidim/comments/user_group_mentioned_event: Menționați
|
10
9
|
decidim/comments/user_mentioned_event: Menționați
|
11
10
|
activerecord:
|
12
11
|
models:
|
@@ -56,9 +55,6 @@ ro:
|
|
56
55
|
form_error: Textul este obligatoriu și nu poate fi mai lung de %{length} caractere.
|
57
56
|
submit_reply: Publicați răspuns
|
58
57
|
submit_root_comment: Publicați comentariu
|
59
|
-
user_group_id:
|
60
|
-
label: Comentați în calitate de
|
61
|
-
your_profile: Profilul dumneavoastră
|
62
58
|
opinion:
|
63
59
|
label: Opinia dumneavoastră despre acest subiect
|
64
60
|
negative: Negativ
|
@@ -164,7 +160,6 @@ ro:
|
|
164
160
|
id: Id-ul unic al comentariului
|
165
161
|
locale: Localizarea (limba) pe care participantul a folosit-o atunci când a lăsat acest comentariu
|
166
162
|
root_commentable_url: URL-ul resursei unde a fost lăsat acest comentariu
|
167
|
-
user_group: Numele grupului de utilizatori care a făcut acest comentariu (dacă există)
|
168
163
|
events:
|
169
164
|
comments:
|
170
165
|
comment_by_followed_user:
|
@@ -172,11 +167,6 @@ ro:
|
|
172
167
|
email_outro: Ați primit această notificare deoarece urmăriți activitatea lui %{author_name}. Puteți să nu urmăriți acest utilizator de pe pagina lui de profil.
|
173
168
|
email_subject: Există un nou comentariu de la %{author_name} pentru %{resource_title}
|
174
169
|
notification_title: Există un comentariu nou de la <a href="%{author_path}">%{author_name} %{author_nickname}</a> pentru <a href="%{resource_path}">%{resource_title}</a>.
|
175
|
-
comment_by_followed_user_group:
|
176
|
-
email_intro: 'Grupul %{author_name} a lăsat un comentariu pentru %{resource_title}. Îl puteți citi în această pagină:'
|
177
|
-
email_outro: Ați primit această notificare deoarece urmăriți activitate lui %{author_name}. Puteți să nu urmăriți acest grup de pe pagina sa de profil.
|
178
|
-
email_subject: Există un nou comentariu de la %{author_name} pentru %{resource_title}
|
179
|
-
notification_title: Există un comentariu nou de la <a href="%{author_path}">%{author_name} %{author_nickname}</a> pentru <a href="%{resource_path}">%{resource_title}</a>.
|
180
170
|
comment_created:
|
181
171
|
email_intro: "%{resource_title} a primit un comentariu. Poți citi comentariul pe această pagină:"
|
182
172
|
email_outro: Ați primit această notificare deoarece urmăriți „%{resource_title}” sau pe autorii săi. Puteți anula abonarea de la link-ul anterior.
|
@@ -197,21 +187,11 @@ ro:
|
|
197
187
|
email_outro: Ați primit această notificare deoarece comentariul dumneavoastră a fost răspuns.
|
198
188
|
email_subject: "%{author_name} a răspuns la comentariul dumneavoastră pentru %{resource_title}"
|
199
189
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> a răspuns la comentariul dumneavoastră pentru <a href="%{resource_path}">%{resource_title}</a>
|
200
|
-
user_group_mentioned:
|
201
|
-
email_intro: Un grup căruia îi aparțineți a fost menționat
|
202
|
-
email_outro: Ați primit această notificare deoarece sunteți un membru al grupului %{group_name} care a fost menționat în %{resource_title}.
|
203
|
-
email_subject: Ai fost menționat(ă) în %{resource_title} ca membru al %{group_name}
|
204
|
-
notification_title: Ai fost menționat(ă) în <a href="%{resource_path}">%{resource_title}</a> de <a href="%{author_path}">%{author_name} %{author_nickname}</a> ca membru al <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
205
190
|
user_mentioned:
|
206
191
|
email_intro: Ați fost menționat(ă)
|
207
192
|
email_outro: Ați primit această notificare deoarece ați fost menționat(ă) în %{resource_title}.
|
208
193
|
email_subject: Ați fost menționat(ă) în %{resource_title}
|
209
194
|
notification_title: Ați fost menționat(ă) în <a href="%{resource_path}">%{resource_title}</a> de către <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
210
|
-
metrics:
|
211
|
-
comments:
|
212
|
-
description: Numărul de comentarii generate de participanți
|
213
|
-
object: comentarii
|
214
|
-
title: Comentarii
|
215
195
|
errors:
|
216
196
|
messages:
|
217
197
|
cannot_have_comments: nu poate avea comentarii
|
data/config/locales/ru.yml
CHANGED
@@ -5,7 +5,6 @@ ru:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: Комментарий
|
6
6
|
decidim/comments/comment_created_event: Комментарий
|
7
7
|
decidim/comments/reply_created_event: Ответ на комментарий
|
8
|
-
decidim/comments/user_group_mentioned_event: Упоминание
|
9
8
|
decidim/comments/user_mentioned_event: Упоминание
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -34,8 +33,6 @@ ru:
|
|
34
33
|
body:
|
35
34
|
label: Комментарий
|
36
35
|
placeholder: Что вы думаете об этом?
|
37
|
-
user_group_id:
|
38
|
-
label: Комментировать как
|
39
36
|
opinion:
|
40
37
|
neutral: Безучастно
|
41
38
|
remaining_characters: "Осталось %{count} символов"
|
@@ -73,9 +70,6 @@ ru:
|
|
73
70
|
email_outro: Вы получили это уведомление, потому что вы следите за %{author_name}. Вы можете отписаться от таких уведомлений, перейдя на страницу профиля этого участника.
|
74
71
|
email_subject: В %{resource_title} появился новый комментарий от %{author_name}
|
75
72
|
notification_title: В <a href="%{resource_path}">%{resource_title}</a> появился новый комментарий от <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
76
|
-
comment_by_followed_user_group:
|
77
|
-
email_subject: В %{resource_title} появился новый комментарий от %{author_name}
|
78
|
-
notification_title: В <a href="%{resource_path}">%{resource_title}</a> появился новый комментарий от <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
79
73
|
comment_created:
|
80
74
|
email_intro: "%{resource_title} прокомментировали. Вы можете прочитать комментарий на странице:"
|
81
75
|
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
|
@@ -91,8 +85,3 @@ ru:
|
|
91
85
|
email_outro: Вы получили это уведомление, потому что вы были упомянуты в %{resource_title}.
|
92
86
|
email_subject: Вы были упомянуты в %{resource_title}
|
93
87
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> упомянул вас в <a href="%{resource_path}">%{resource_title}</a>
|
94
|
-
metrics:
|
95
|
-
comments:
|
96
|
-
description: Количество комментариев, созданных участниками
|
97
|
-
object: коментарии
|
98
|
-
title: Комментарии
|
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
@@ -5,7 +5,6 @@ sk:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: Komentár
|
6
6
|
decidim/comments/comment_created_event: Komentár
|
7
7
|
decidim/comments/reply_created_event: Odpoveď
|
8
|
-
decidim/comments/user_group_mentioned_event: Zmienka
|
9
8
|
decidim/comments/user_mentioned_event: Zmienka
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -34,8 +33,6 @@ sk:
|
|
34
33
|
body:
|
35
34
|
label: Komentár
|
36
35
|
placeholder: Čo si myslíte o tomto?
|
37
|
-
user_group_id:
|
38
|
-
label: Komentovať ako
|
39
36
|
opinion:
|
40
37
|
neutral: Neutrálne
|
41
38
|
remaining_characters: "Zostáva %{count} znakov"
|
@@ -75,11 +72,6 @@ sk:
|
|
75
72
|
email_outro: Túto notifikáciu ste dostali, pretože sledujete autora "%{author_name}". Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
|
76
73
|
email_subject: Je nový komentár od %{author_name} na %{resource_title}
|
77
74
|
notification_title: Je nový komentár od <a href="%{author_path}">%{author_name}%{author_nickname}</a> na <a href="%{resource_path}">%{resource_title}</a>.
|
78
|
-
comment_by_followed_user_group:
|
79
|
-
email_intro: 'Skupina %{author_name} komentovala na %{resource_title}. Môžete si to prečítať na stránke:'
|
80
|
-
email_outro: Túto notifikáciu ste dostali, pretože sledujete autora "%{author_name}". Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
|
81
|
-
email_subject: Je nový komentár od %{author_name} na %{resource_title}
|
82
|
-
notification_title: Je nový komentár od <a href="%{author_path}">%{author_name}%{author_nickname}</a> na <a href="%{resource_path}">%{resource_title}</a>.
|
83
75
|
comment_created:
|
84
76
|
email_intro: "%{resource_title} bol okomentovaný. Komentár si môžete prečítať na stránke:"
|
85
77
|
email_outro: Túto notifikáciu ste dostali, pretože sledujete "%{resource_title}" alebo autora. Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
|
@@ -90,18 +82,8 @@ sk:
|
|
90
82
|
email_outro: Túto notifikáciu ste dostali, pretože niekto odpovedal na Váš komentár.
|
91
83
|
email_subject: "%{author_name} odpovedal na Váš komentár na %{resource_title}"
|
92
84
|
notification_title: <a href="%{author_path}">%{author_name}%{author_nickname}</a> odpovedal na váš komentár na <a href="%{resource_path}">%{resource_title}</a>
|
93
|
-
user_group_mentioned:
|
94
|
-
email_intro: Skupina, do ktorej patríte, bola zmienená
|
95
|
-
email_outro: Dostali ste túto notifikáciu, pretože ste členom skupiny %{group_name}, ktorá bola spomenutá v %{resource_title}.
|
96
|
-
email_subject: Boli ste spomenutí v %{resource_title}, ako člen skupiny %{group_name}
|
97
|
-
notification_title: Boli ste zmienení v <a href="%{resource_path}">%{resource_title}</a> autorom <a href="%{author_path}">%{author_name} %{author_nickname}</a> ako člen skupiny <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
98
85
|
user_mentioned:
|
99
86
|
email_intro: Niekto vás spomenul
|
100
87
|
email_outro: Túto notifikáciu ste dostali, pretože ste boli spomenutí na %{resource_title}.
|
101
88
|
email_subject: Boli ste spomenutí na %{resource_title}
|
102
89
|
notification_title: Boli ste spomenutí <a href="%{author_path}">%{author_name}%{author_nickname}</a> na <a href="%{resource_path}">%{resource_title}</a>
|
103
|
-
metrics:
|
104
|
-
comments:
|
105
|
-
description: Počet komentárov všetkých účastníkov
|
106
|
-
object: komentáre
|
107
|
-
title: Komentáre
|
data/config/locales/sq-AL.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
@@ -5,12 +5,3 @@ sr:
|
|
5
5
|
comments:
|
6
6
|
comment_details_title: Detalji o komentaru
|
7
7
|
single_comment_warning_title: Vidite samo jedan komentar
|
8
|
-
events:
|
9
|
-
comments:
|
10
|
-
comment_by_followed_user_group:
|
11
|
-
email_intro: 'Grupa %{author_name} je ostavila komentar na %{resource_title}. Možete ga pročitati na ovoj strani:'
|
12
|
-
user_group_mentioned:
|
13
|
-
email_intro: Grupa kojoj pripadate je pomenuta
|
14
|
-
email_outro: Dobili ste ovo obaveštenje jer ste član grupe %{group_name} koja je pomenuta u %{resource_title}.
|
15
|
-
email_subject: Pomenuti ste u %{resource_title} kao član grupe %{group_name}
|
16
|
-
notification_title: Pomenuti ste u <a href="%{resource_path}">%{resource_title}</a> od strane <a href="%{author_path}">%{author_name}%{author_nickname}</a> kao član <a href="%{group_path}">%{group_name}%{group_nickname}</a>
|
data/config/locales/sv.yml
CHANGED
@@ -6,7 +6,6 @@ sv:
|
|
6
6
|
decidim/comments/comment_created_event: Kommentar
|
7
7
|
decidim/comments/comment_upvoted_event: Uppröstad kommentarer
|
8
8
|
decidim/comments/reply_created_event: Svar till en kommentar
|
9
|
-
decidim/comments/user_group_mentioned_event: Nämn
|
10
9
|
decidim/comments/user_mentioned_event: Nämn
|
11
10
|
activerecord:
|
12
11
|
models:
|
@@ -54,9 +53,6 @@ sv:
|
|
54
53
|
form_error: Texten är obligatorisk och får inte vara längre än %{length} tecken.
|
55
54
|
submit_reply: Publicera svar
|
56
55
|
submit_root_comment: Publicera kommentar
|
57
|
-
user_group_id:
|
58
|
-
label: Kommentera som
|
59
|
-
your_profile: Din profil
|
60
56
|
opinion:
|
61
57
|
label: Din åsikt om frågan
|
62
58
|
negative: Negativ
|
@@ -158,7 +154,6 @@ sv:
|
|
158
154
|
id: Id för kommentaren
|
159
155
|
locale: Kommentarförfattarens språk
|
160
156
|
root_commentable_url: URL till innehållet för kommentaren
|
161
|
-
user_group: Namn på gruppen som kommenterat (om det var en grupp)
|
162
157
|
events:
|
163
158
|
comments:
|
164
159
|
comment_by_followed_user:
|
@@ -166,11 +161,6 @@ sv:
|
|
166
161
|
email_outro: Du har fått den här notisen eftersom du följer %{author_name}. Du kan avfölja den här användaren från deras profilsida.
|
167
162
|
email_subject: Det finns en ny kommentar av %{author_name} i %{resource_title}
|
168
163
|
notification_title: Det finns en ny kommentar av <a href="%{author_path}">%{author_name} %{author_nickname}</a> i <a href="%{resource_path}">%{resource_title}</a>.
|
169
|
-
comment_by_followed_user_group:
|
170
|
-
email_intro: 'Gruppen %{author_name} har lämnat en kommentar i %{resource_title}. Du kan läsa den här:'
|
171
|
-
email_outro: Du har fått det här meddelandet eftersom du följer %{author_name}. Du kan sluta följa den här gruppen från dess profilsida.
|
172
|
-
email_subject: Det finns en ny kommentar av %{author_name} i %{resource_title}
|
173
|
-
notification_title: Det finns en ny kommentar av <a href="%{author_path}">%{author_name} %{author_nickname}</a> i <a href="%{resource_path}">%{resource_title}</a>.
|
174
164
|
comment_created:
|
175
165
|
email_intro: "%{resource_title} har kommenterats. Du kan läsa kommentaren på den här sidan:"
|
176
166
|
email_outro: Du har fått det här meddelandet eftersom du följer "%{resource_title}" eller dess författare. Du kan avfölja det från föregående länk.
|
@@ -191,21 +181,11 @@ sv:
|
|
191
181
|
email_outro: Du har fått denna notis eftersom din kommentar blev besvarad.
|
192
182
|
email_subject: "%{author_name} har svarat din kommentar i %{resource_title}"
|
193
183
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> har svarat din kommentar i <a href="%{resource_path}">%{resource_title}</a>
|
194
|
-
user_group_mentioned:
|
195
|
-
email_intro: En grupp som du tillhör har nämnts
|
196
|
-
email_outro: Du har fått det här meddelandet eftersom du är medlem i gruppen %{group_name} som har nämnts i %{resource_title}.
|
197
|
-
email_subject: Du har nämnts i %{resource_title} som en medlem i %{group_name}
|
198
|
-
notification_title: Du har nämnts i <a href="%{resource_path}">%{resource_title}</a> av <a href="%{author_path}">%{author_name} %{author_nickname}</a> som medlem av <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
199
184
|
user_mentioned:
|
200
185
|
email_intro: Du har nämnts
|
201
186
|
email_outro: Du har fått denna notis eftersom du har nämnts i %{resource_title}.
|
202
187
|
email_subject: Du har nämnts i %{resource_title}
|
203
188
|
notification_title: Du har nämnts i <a href="%{resource_path}">%{resource_title}</a> av <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
204
|
-
metrics:
|
205
|
-
comments:
|
206
|
-
description: Antal kommentarer från deltagare
|
207
|
-
object: kommentarer
|
208
|
-
title: Kommentarer
|
209
189
|
errors:
|
210
190
|
messages:
|
211
191
|
cannot_have_comments: kan inte ha kommentarer
|
data/config/locales/tr-TR.yml
CHANGED
@@ -5,7 +5,6 @@ tr:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: Yorum
|
6
6
|
decidim/comments/comment_created_event: Yorum
|
7
7
|
decidim/comments/reply_created_event: Yorum cevabı
|
8
|
-
decidim/comments/user_group_mentioned_event: Bahset
|
9
8
|
decidim/comments/user_mentioned_event: Bahset
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -33,8 +32,6 @@ tr:
|
|
33
32
|
body:
|
34
33
|
label: Yorum
|
35
34
|
placeholder: Bunun hakkında ne düşünüyorsun?
|
36
|
-
user_group_id:
|
37
|
-
label: Olarak yorum yap
|
38
35
|
opinion:
|
39
36
|
neutral: Tarafsız
|
40
37
|
remaining_characters: "%{count} karakter kaldı"
|
@@ -85,11 +82,6 @@ tr:
|
|
85
82
|
email_outro: Bu bildirimi %{author_name} adlı yazarı takip ettiğiniz için aldınız. Bu grubu profil sayfasından takip etmeyi bırakabilirsiniz.
|
86
83
|
email_subject: '%{author_name} %{resource_title} alanında yeni bir yorum yaptı'
|
87
84
|
notification_title: <a href="%{resource_path}">%{resource_title} </a> içinde <a href="%{author_path}">%{author_name} %{author_nickname} </a> tarafından yeni bir yorum var.
|
88
|
-
comment_by_followed_user_group:
|
89
|
-
email_intro: '%{author_name} grubu %{resource_title} alanında bir yorum bıraktı. Bu sayfada okuyabilirsiniz:'
|
90
|
-
email_outro: Bu bildirimi %{author_name} adlı yazarı takip ettiğiniz için aldınız. Bu grubu profil sayfasından takip etmeyi bırakabilirsiniz.
|
91
|
-
email_subject: '%{author_name} %{resource_title} alanında yeni bir yorum yaptı'
|
92
|
-
notification_title: <a href="%{resource_path}">%{resource_title} </a> içinde <a href="%{author_path}">%{author_name} %{author_nickname} </a> tarafından yeni bir yorum var.
|
93
85
|
comment_created:
|
94
86
|
email_intro: "%{resource_title} alanında yorum yapıldı. Bu sayfadaki yorumu okuyabilirsiniz:"
|
95
87
|
email_outro: '"%{resource_title}" alanında veya yazarı takip ettiğiniz için bu bildirimi aldınız. Bunu önceki linkten takip edebilirsiniz.'
|
@@ -100,18 +92,8 @@ tr:
|
|
100
92
|
email_outro: Yorumunuz yanıtlandığı için bu bildirimi aldınız.
|
101
93
|
email_subject: "%{author_name}, yorumunuzu %{resource_title} alanında yanıtladı"
|
102
94
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a> alanında yorumunuzu yanıtladı
|
103
|
-
user_group_mentioned:
|
104
|
-
email_intro: Ait olduğunuz bir gruptan bahsedildi
|
105
|
-
email_outro: Bu bildirimi, %{resource_title} içinde adı geçen %{group_name} grubunun bir üyesi olduğunuz için aldınız.
|
106
|
-
email_subject: '%{resource_title} içinde %{group_name} üyesi olarak bahsedildiniz'
|
107
|
-
notification_title: <a href="%{resource_path}">%{resource_title} </a> ’de <a href="%{author_path}">%{author_name} %{author_nickname} </a> tarafından bir <a href="%{group_path}">%{group_name} %{group_nickname} </a> üyesi
|
108
95
|
user_mentioned:
|
109
96
|
email_intro: Sen bahsedildin
|
110
97
|
email_outro: Bu bildirimi, sizden %{resource_title} alanında bahsedildiği için aldınız.
|
111
98
|
email_subject: '%{resource_title} alanında bahsedildiniz'
|
112
99
|
notification_title: <a href="%{resource_path}">%{resource_title} </a> alanında <a href="%{author_path}">%{author_name} %{author_nickname} </a> tarafından bahsedildi
|
113
|
-
metrics:
|
114
|
-
comments:
|
115
|
-
description: Katılımcılar tarafından oluşturulan yorum sayısı
|
116
|
-
object: yorumlar
|
117
|
-
title: Yorumlar
|
data/config/locales/uk.yml
CHANGED
@@ -5,7 +5,6 @@ uk:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: Коментар
|
6
6
|
decidim/comments/comment_created_event: Коментар
|
7
7
|
decidim/comments/reply_created_event: Відповідь на коментар
|
8
|
-
decidim/comments/user_group_mentioned_event: Згадка
|
9
8
|
decidim/comments/user_mentioned_event: Згадка
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -30,8 +29,6 @@ uk:
|
|
30
29
|
body:
|
31
30
|
label: Коментар
|
32
31
|
placeholder: Що ви думаєте з цього приводу?
|
33
|
-
user_group_id:
|
34
|
-
label: Коментувати як
|
35
32
|
opinion:
|
36
33
|
neutral: Безсторонньо
|
37
34
|
remaining_characters: "Залишилось %{count} символів"
|
@@ -68,9 +65,6 @@ uk:
|
|
68
65
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{author_name}. Ви можете припинити стежити за ним на сторінці його профілю.
|
69
66
|
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
|
70
67
|
notification_title: У <a href="%{resource_path}">%{resource_title}</a> з'явився новий коментар від <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
71
|
-
comment_by_followed_user_group:
|
72
|
-
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
|
73
|
-
notification_title: У <a href="%{resource_path}">%{resource_title}</a> з'явився новий коментар від <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
74
68
|
comment_created:
|
75
69
|
email_intro: "%{resource_title} прокоментували. Ви можете прочитати коментар на сторінці:"
|
76
70
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
|
data/config/locales/zh-CN.yml
CHANGED
@@ -5,7 +5,6 @@ zh-CN:
|
|
5
5
|
decidim/comments/comment_by_followed_user_event: 评论
|
6
6
|
decidim/comments/comment_created_event: 评论
|
7
7
|
decidim/comments/reply_created_event: 评论回复
|
8
|
-
decidim/comments/user_group_mentioned_event: 提到了
|
9
8
|
decidim/comments/user_mentioned_event: 提到了
|
10
9
|
activerecord:
|
11
10
|
models:
|
@@ -28,8 +27,6 @@ zh-CN:
|
|
28
27
|
body:
|
29
28
|
label: 评论
|
30
29
|
placeholder: 你对此有什么看法?
|
31
|
-
user_group_id:
|
32
|
-
label: 评论为
|
33
30
|
opinion:
|
34
31
|
neutral: 中性的
|
35
32
|
remaining_characters: "剩余 %{count} 个字符"
|
@@ -74,11 +71,6 @@ zh-CN:
|
|
74
71
|
email_outro: 您收到此通知是因为您正在关注 %{author_name}。您可以从其个人资料页面取消关注此用户。
|
75
72
|
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
|
76
73
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 有新的评论。
|
77
|
-
comment_by_followed_user_group:
|
78
|
-
email_intro: '组 %{author_name} 在 %{resource_title}留下了一个评论。您可以在这个页面阅读它:'
|
79
|
-
email_outro: 您收到此通知是因为您正在关注 %{author_name}。您可以从其个人资料页面取消关注此组。
|
80
|
-
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
|
81
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 有新的评论。
|
82
74
|
comment_created:
|
83
75
|
email_intro: "%{resource_title} 已被评论。您可以阅读此页面中的评论:"
|
84
76
|
email_outro: 您收到此通知是因为您正在关注"%{resource_title}"或其作者。您可以从上一个链接取消关注它。
|
@@ -89,18 +81,8 @@ zh-CN:
|
|
89
81
|
email_outro: 您收到此通知是因为您的评论已被回复。
|
90
82
|
email_subject: "%{author_name} 在 %{resource_title} 回复了您的评论"
|
91
83
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 回复了您在 <a href="%{resource_path}">%{resource_title}</a>
|
92
|
-
user_group_mentioned:
|
93
|
-
email_intro: 已经提到您所属的组
|
94
|
-
email_outro: 您收到此通知是因为您是在 %{group_name} 中提及的组 %{resource_title} 的成员。
|
95
|
-
email_subject: 您已在 %{resource_title} 中被提及为 %{group_name} 的成员
|
96
|
-
notification_title: 您在 <a href="%{resource_path}">%{resource_title}中提到</a> <a href="%{author_path}">%{author_name} %{author_nickname}</a> 作为 <a href="%{group_path}">%{group_name} %{group_nickname}</a>
|
97
84
|
user_mentioned:
|
98
85
|
email_intro: 您已被提到。
|
99
86
|
email_outro: 您收到此通知是因为您已在 %{resource_title} 中被提及。
|
100
87
|
email_subject: 您已在 %{resource_title} 中被提及了
|
101
88
|
notification_title: 您在 <a href="%{resource_path}">%{resource_title}中提到</a> <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
102
|
-
metrics:
|
103
|
-
comments:
|
104
|
-
description: 与会者生成的评论数
|
105
|
-
object: 评论
|
106
|
-
title: 评论
|
data/config/locales/zh-TW.yml
CHANGED
@@ -6,7 +6,6 @@ zh-TW:
|
|
6
6
|
decidim/comments/comment_created_event: 評論
|
7
7
|
decidim/comments/comment_upvoted_event: 評論已獲得讚同
|
8
8
|
decidim/comments/reply_created_event: 評論回覆
|
9
|
-
decidim/comments/user_group_mentioned_event: 提及
|
10
9
|
decidim/comments/user_mentioned_event: 提及
|
11
10
|
activerecord:
|
12
11
|
models:
|
@@ -44,8 +43,6 @@ zh-TW:
|
|
44
43
|
label: 評論
|
45
44
|
placeholder: 你有什麼想法?
|
46
45
|
form_error: 文字為必填欄位,且不可超過 %{length} 個字元。
|
47
|
-
user_group_id:
|
48
|
-
label: 評論者:
|
49
46
|
opinion:
|
50
47
|
label: 關於此議題,您的意見
|
51
48
|
negative: 負面
|
@@ -118,11 +115,6 @@ zh-TW:
|
|
118
115
|
email_outro: 您收到此通知是因為您正在關注%{author_name}。您可以從他們的個人資料頁面取消關注該用戶。
|
119
116
|
email_subject: '%{author_name} 在%{resource_title} 發表了一則新的評論'
|
120
117
|
notification_title: 在<a href="%{resource_path}">%{resource_title}</a>中,<a href="%{author_path}">%{author_name} %{author_nickname}</a>有了一個新的評論。
|
121
|
-
comment_by_followed_user_group:
|
122
|
-
email_intro: '%{author_name} 群組在%{resource_title} 中留下了一則評論。您可以在此頁面中閱讀它:'
|
123
|
-
email_outro: 您收到此通知是因為您正在關注%{author_name}。您可以從其個人資料頁面取消關注此群組。
|
124
|
-
email_subject: '%{author_name} 在%{resource_title} 發表了一則新的評論'
|
125
|
-
notification_title: 在<a href="%{resource_path}">%{resource_title}</a>中,<a href="%{author_path}">%{author_name} %{author_nickname}</a>有了一個新的評論。
|
126
118
|
comment_created:
|
127
119
|
email_intro: "%{resource_title} 已被評論。您可以在此頁面中閱讀評論:"
|
128
120
|
email_outro: 您收到此通知是因為您正在關注「%{resource_title}」或其作者。您可以從上面的連結取消關注。
|
@@ -143,21 +135,11 @@ zh-TW:
|
|
143
135
|
email_outro: 你收到此通知是因為有人回覆了你的評論。
|
144
136
|
email_subject: "%{author_name} 回覆了你在 %{resource_title} 中的評論。"
|
145
137
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 中回覆了你的評論。
|
146
|
-
user_group_mentioned:
|
147
|
-
email_intro: 你所屬的群組被提及了
|
148
|
-
email_outro: 你收到了這個通知,因為你是 %{group_name} 的成員,而該小組在 %{resource_title} 中被提及。
|
149
|
-
email_subject: 你作為 %{group_name} 的成員在 %{resource_title} 中被提及
|
150
|
-
notification_title: 你作為<a href="%{group_path}">%{group_name} %{group_nickname}</a>的成員,被<a href="%{author_path}">%{author_name} %{author_nickname}</a>在<a href="%{resource_path}">%{resource_title}</a>中提及
|
151
138
|
user_mentioned:
|
152
139
|
email_intro: 您已被提及
|
153
140
|
email_outro: 您收到了此通知,因為您被提及在 %{resource_title} 中。
|
154
141
|
email_subject: 您被提及在 %{resource_title} 中
|
155
142
|
notification_title: 您被 <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 中提及。
|
156
|
-
metrics:
|
157
|
-
comments:
|
158
|
-
description: 參與者產生的評論數量
|
159
|
-
object: 評論
|
160
|
-
title: 評論
|
161
143
|
errors:
|
162
144
|
messages:
|
163
145
|
cannot_have_comments: 無法評論
|
@@ -1,9 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class FixUserGroupsIdsInComments < ActiveRecord::Migration[5.2]
|
4
|
+
class UserGroup < ApplicationRecord
|
5
|
+
self.table_name = :decidim_users
|
6
|
+
self.inheritance_column = nil # disable the default inheritance
|
7
|
+
|
8
|
+
default_scope { where(type: "Decidim::UserGroup") }
|
9
|
+
end
|
10
|
+
|
4
11
|
# rubocop:disable Rails/SkipsModelValidations
|
5
12
|
def change
|
6
|
-
|
13
|
+
UserGroup.find_each do |group|
|
7
14
|
old_id = group.extended_data["old_user_group_id"]
|
8
15
|
next unless old_id
|
9
16
|
|
@@ -22,12 +22,9 @@ module Decidim
|
|
22
22
|
field :sgid, GraphQL::Types::String, "The Comment's signed global id", null: false
|
23
23
|
field :up_voted, GraphQL::Types::Boolean, "Check if the current user has upvoted the comment", null: false
|
24
24
|
field :up_votes, GraphQL::Types::Int, "The number of comment's upVotes", null: false, method: :up_votes_count
|
25
|
+
field :url, GraphQL::Types::String, "The URL for this meeting", null: false, method: :reported_content_url
|
25
26
|
field :user_allowed_to_comment, GraphQL::Types::Boolean, "Check if the current user can comment", null: false
|
26
27
|
|
27
|
-
def author
|
28
|
-
object.user_group || object.author
|
29
|
-
end
|
30
|
-
|
31
28
|
def sgid
|
32
29
|
object.to_sgid.to_s
|
33
30
|
end
|
@@ -7,29 +7,23 @@ module Decidim
|
|
7
7
|
include Decidim::Api::Types::BaseInterface
|
8
8
|
description "A commentable interface"
|
9
9
|
|
10
|
-
field :id, GraphQL::Types::ID, "The commentable's ID", null: false
|
11
|
-
field :type, GraphQL::Types::String, "The commentable's class name. i.e. `Decidim::ParticipatoryProcess`", method: :commentable_type, null: false
|
12
10
|
field :accepts_new_comments, GraphQL::Types::Boolean, "Whether the object can have new comments or not", method: :accepts_new_comments?, null: false
|
13
|
-
field :comments_have_alignment, GraphQL::Types::Boolean, "Whether the object comments have alignment or not", method: :comments_have_alignment?, null: false
|
14
|
-
field :comments_have_votes, GraphQL::Types::Boolean, "Whether the object comments have votes or not", method: :comments_have_votes?, null: false
|
15
|
-
field :total_comments_count, GraphQL::Types::Int, description: "The number of comments in all levels this resource holds", method: :comments_count, null: false
|
16
|
-
field :has_comments, GraphQL::Types::Boolean, "Check if the commentable has comments", null: false
|
17
|
-
field :user_allowed_to_comment, GraphQL::Types::Boolean, "Check if the current user can comment", null: false
|
18
11
|
field :comments, [Decidim::Comments::CommentType, { null: false }], "The list of replies in this comment", null: false do
|
19
12
|
argument :order_by, GraphQL::Types::String, "Order the comments", required: false
|
20
13
|
argument :single_comment_id, GraphQL::Types::String, "ID of the single comment to look at", required: false
|
21
14
|
end
|
15
|
+
field :comments_have_alignment, GraphQL::Types::Boolean, "Whether the object comments have alignment or not", method: :comments_have_alignment?, null: false
|
16
|
+
field :comments_have_votes, GraphQL::Types::Boolean, "Whether the object comments have votes or not", method: :comments_have_votes?, null: false
|
17
|
+
field :has_comments, GraphQL::Types::Boolean, "Check if the commentable has comments", method: :has_comments?, null: false
|
18
|
+
field :id, GraphQL::Types::ID, "The commentable's ID", null: false
|
19
|
+
field :total_comments_count, GraphQL::Types::Int, description: "The number of comments in all levels this resource holds", method: :comments_count, null: false
|
20
|
+
field :type, GraphQL::Types::String, "The commentable's class name. i.e. `Decidim::ParticipatoryProcess`", method: :commentable_type, null: false
|
21
|
+
field :user_allowed_to_comment, GraphQL::Types::Boolean, "Check if the current user can comment", null: false
|
22
22
|
|
23
23
|
def comments(order_by: nil, single_comment_id: nil)
|
24
24
|
SortedComments.for(object, order_by:, id: single_comment_id).not_hidden
|
25
25
|
end
|
26
26
|
|
27
|
-
# rubocop:disable Naming/PredicateName
|
28
|
-
def has_comments
|
29
|
-
object.comment_threads.not_hidden.size.positive?
|
30
|
-
end
|
31
|
-
# rubocop:enable Naming/PredicateName
|
32
|
-
|
33
27
|
def user_allowed_to_comment
|
34
28
|
object.commentable? && object.user_allowed_to_comment?(context[:current_user])
|
35
29
|
end
|