decidim-comments 0.29.2 → 0.30.0.rc1
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 +0 -8
- data/app/cells/decidim/comments/comment/show.erb +41 -5
- data/app/cells/decidim/comments/comment_cell.rb +44 -0
- data/app/cells/decidim/comments/comment_form/comment_as.erb +24 -6
- data/app/cells/decidim/comments/comment_form/opinion.erb +0 -4
- data/app/cells/decidim/comments/comment_form/show.erb +31 -29
- data/app/cells/decidim/comments/comment_form_cell.rb +7 -2
- data/app/cells/decidim/comments/comment_thread/show.erb +1 -1
- data/app/cells/decidim/comments/comments/add_comment.erb +12 -14
- data/app/cells/decidim/comments/comments/comments_in_single_column.erb +6 -0
- data/app/cells/decidim/comments/comments/order_control.erb +32 -9
- data/app/cells/decidim/comments/comments/show.erb +7 -7
- data/app/cells/decidim/comments/comments_cell.rb +56 -12
- data/app/cells/decidim/comments/two_columns_comments/column.erb +20 -0
- data/app/cells/decidim/comments/two_columns_comments/show.erb +11 -0
- data/app/cells/decidim/comments/two_columns_comments_cell.rb +86 -0
- data/app/forms/decidim/comments/comment_form.rb +14 -0
- data/app/models/decidim/comments/comment.rb +9 -7
- data/app/packs/entrypoints/decidim_comments.js +1 -0
- data/app/packs/src/decidim/comments/comments.component.js +151 -24
- data/app/packs/src/decidim/comments/comments.component.test.js +2 -1
- data/app/packs/src/decidim/comments/comments.js +95 -12
- data/app/packs/src/decidim/comments/comments_dropdown.js +57 -0
- data/app/packs/src/decidim/comments/comments_mobile_modal.js +46 -0
- data/app/packs/stylesheets/comments.scss +203 -50
- data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +1 -1
- data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +22 -17
- data/app/views/decidim/comments/comments/create.js.erb +9 -1
- data/config/locales/ar.yml +0 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +35 -2
- data/config/locales/cs.yml +37 -2
- data/config/locales/de.yml +35 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +35 -2
- data/config/locales/es-MX.yml +35 -2
- data/config/locales/es-PY.yml +35 -2
- data/config/locales/es.yml +35 -2
- data/config/locales/eu.yml +37 -4
- data/config/locales/fi-plain.yml +35 -2
- data/config/locales/fi.yml +35 -2
- data/config/locales/fr-CA.yml +8 -2
- data/config/locales/fr.yml +8 -2
- data/config/locales/gl.yml +0 -1
- data/config/locales/hu.yml +0 -1
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/is-IS.yml +0 -1
- data/config/locales/it.yml +1 -1
- data/config/locales/ja.yml +34 -2
- data/config/locales/lb.yml +0 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +0 -2
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +1 -2
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk.yml +0 -1
- data/config/locales/sv.yml +19 -2
- data/config/locales/tr-TR.yml +0 -1
- data/config/locales/uk.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +0 -1
- data/decidim-comments.gemspec +1 -1
- data/lib/decidim/api/comment_mutation_type.rb +2 -2
- data/lib/decidim/api/comment_type.rb +12 -45
- data/lib/decidim/api/commentable_interface.rb +4 -16
- data/lib/decidim/api/commentable_mutation_type.rb +2 -3
- data/lib/decidim/comments/commentable.rb +11 -0
- data/lib/decidim/comments/engine.rb +7 -1
- data/lib/decidim/comments/test/factories.rb +8 -0
- data/lib/decidim/comments/test/shared_examples/comment_event.rb +1 -1
- data/lib/decidim/comments/test/shared_examples/comment_voted_event.rb +2 -2
- data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +1 -1
- data/lib/decidim/comments/test/shared_examples/translatable_comment.rb +2 -2
- data/lib/decidim/comments/version.rb +1 -1
- metadata +16 -10
data/config/locales/fi.yml
CHANGED
@@ -17,6 +17,10 @@ fi:
|
|
17
17
|
one: Ääni
|
18
18
|
other: Äänet
|
19
19
|
decidim:
|
20
|
+
admin:
|
21
|
+
admin_log:
|
22
|
+
changeset:
|
23
|
+
comments: Kommentit
|
20
24
|
comments:
|
21
25
|
admin:
|
22
26
|
shared:
|
@@ -39,7 +43,8 @@ fi:
|
|
39
43
|
error: Kommentin äänestys epäonnistui.
|
40
44
|
components:
|
41
45
|
add_comment_form:
|
42
|
-
account_message:
|
46
|
+
account_message: Kirjaudu sisään tai luo tili kommentoidaksesi.
|
47
|
+
add_comment: Lisää kommentti
|
43
48
|
form:
|
44
49
|
body:
|
45
50
|
label: Kommentti
|
@@ -49,6 +54,7 @@ fi:
|
|
49
54
|
submit_root_comment: Julkaise kommentti
|
50
55
|
user_group_id:
|
51
56
|
label: Kommentoi käyttäjänä
|
57
|
+
your_profile: Oma profiilisi
|
52
58
|
opinion:
|
53
59
|
label: Mielipiteesi tästä aiheesta
|
54
60
|
negative: Negatiivinen
|
@@ -64,6 +70,9 @@ fi:
|
|
64
70
|
alignment:
|
65
71
|
against: Vastaan
|
66
72
|
in_favor: Puolesta
|
73
|
+
answers:
|
74
|
+
one: "%{count} vastaus"
|
75
|
+
other: "%{count} vastausta"
|
67
76
|
cancel_reply: Peruuta vastaus
|
68
77
|
comment_label: Kommentti %{comment_id}
|
69
78
|
comment_label_reply: Kommentti %{comment_id} (vastauksena kommenttiin %{parent_comment_id})
|
@@ -94,6 +103,7 @@ fi:
|
|
94
103
|
one: Näytä vastaus
|
95
104
|
other: Näytä %{count} vastausta
|
96
105
|
single_comment_link_title: Linkki kommenttiin
|
106
|
+
sort_by: 'Järjestä: '
|
97
107
|
comment_order_selector:
|
98
108
|
order:
|
99
109
|
best_rated: Parhaiksi arvioidut
|
@@ -102,16 +112,19 @@ fi:
|
|
102
112
|
recent: Uusimmat
|
103
113
|
title: 'Järjestä tulokset:'
|
104
114
|
comments:
|
115
|
+
against: Vastaan
|
105
116
|
blocked_comments_for_unauthorized_user_warning: Tilisi tulee olla vahvistettu, jotta voit kommentoida tällä hetkellä. Voit kuitenkin lukea muiden jättämiä kommentteja.
|
106
117
|
blocked_comments_for_user_warning: Et voi kommentoida tällä hetkellä, mutta voit lukea aikaisempia kommentteja.
|
107
|
-
blocked_comments_warning: Kommentit on
|
118
|
+
blocked_comments_warning: Kommentit on tällä hetkellä pois käytöstä, vain hallintakäyttäjät voivat vastata tai lähettää uusia kommentteja.
|
108
119
|
comment_details_title: Kommentin yksityiskohdat
|
120
|
+
in_favor: Puolesta
|
109
121
|
loading: Ladataan kommentteja ...
|
110
122
|
single_comment_warning: <a href="%{url}">Näytä kaikki kommentit</a>
|
111
123
|
single_comment_warning_title: Näet yhden kommentin
|
112
124
|
title:
|
113
125
|
one: "%{count} kommentti"
|
114
126
|
other: "%{count} kommenttia"
|
127
|
+
top_comment_label: Eniten ääniä saaneet ensin
|
115
128
|
down_vote_button:
|
116
129
|
text: Olen eri mieltä tämän kommentin kanssa
|
117
130
|
edit_comment_modal_form:
|
@@ -124,6 +137,26 @@ fi:
|
|
124
137
|
title: Muokkaa kommenttiasi
|
125
138
|
up_vote_button:
|
126
139
|
text: Olen samaa mieltä tämän kommentin kanssa
|
140
|
+
download_your_data:
|
141
|
+
help:
|
142
|
+
comment_votes:
|
143
|
+
comment: Äänestetyn kommentin yksilöivä tunniste (ID)
|
144
|
+
created_at: Äänen antamisen ajankohta
|
145
|
+
id: Äänen yksilöivä tunniste (ID)
|
146
|
+
updated_at: Äänen viimeisimmän päivityksen ajankohta
|
147
|
+
weight: Äänen painoarvo (1 puolesta, -1 vastaan)
|
148
|
+
comments:
|
149
|
+
alignment: Kertoo, oliko tämä kommentti puolesta, vastaan vai neutraali
|
150
|
+
author: Kommentin laatijan nimi
|
151
|
+
body: Kommentin teksti
|
152
|
+
commentable_id: Kommentoitavan asian yksilöivä tunniste
|
153
|
+
commentable_type: Kommentoitavan asian tyyppi (tulos, ehdotus, jne.)
|
154
|
+
created_at: Kommentin laatimisaika
|
155
|
+
depth: Kommentin paikka keskusteluketjussa, eli millä tasolla kommentti oli (oliko se vastaus vai vastauksen vastaus)
|
156
|
+
id: Kommentin yksilöivä tunniste
|
157
|
+
locale: Kommentoijan valitsema kieliasetus sivustolla
|
158
|
+
root_commentable_url: URL-osoite kommentoitavaan asiaan, eli millä sivulla kommentti luotiin
|
159
|
+
user_group: Kommentin laatijan käyttäjäryhmä, mikäli kommentti laadittiin ryhmän puolesta
|
127
160
|
events:
|
128
161
|
comments:
|
129
162
|
comment_by_followed_user:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -39,7 +39,8 @@ fr-CA:
|
|
39
39
|
error: Une erreur s'est produite lors du vote sur le commentaire.
|
40
40
|
components:
|
41
41
|
add_comment_form:
|
42
|
-
account_message:
|
42
|
+
account_message: Connectez-vous ou créez un compte pour ajouter votre commentaire.
|
43
|
+
add_comment: Ajouter un commentaire
|
43
44
|
form:
|
44
45
|
body:
|
45
46
|
label: Commentaire
|
@@ -49,6 +50,7 @@ fr-CA:
|
|
49
50
|
submit_root_comment: Publier le commentaire
|
50
51
|
user_group_id:
|
51
52
|
label: Commenter en tant que
|
53
|
+
your_profile: Votre profil
|
52
54
|
opinion:
|
53
55
|
label: Votre avis sur ce sujet
|
54
56
|
negative: Négatif
|
@@ -64,6 +66,9 @@ fr-CA:
|
|
64
66
|
alignment:
|
65
67
|
against: Contre
|
66
68
|
in_favor: Pour
|
69
|
+
answers:
|
70
|
+
one: "%{count} réponse"
|
71
|
+
other: "%{count} réponses"
|
67
72
|
cancel_reply: Annuler la réponse
|
68
73
|
comment_label: Commentaire %{comment_id}
|
69
74
|
comment_label_reply: Commentaire %{comment_id} (réponse au commentaire %{parent_comment_id})
|
@@ -94,6 +99,7 @@ fr-CA:
|
|
94
99
|
one: Afficher la réponse
|
95
100
|
other: Afficher %{count} réponses
|
96
101
|
single_comment_link_title: Obtenir le lien
|
102
|
+
sort_by: 'Trier par : '
|
97
103
|
comment_order_selector:
|
98
104
|
order:
|
99
105
|
best_rated: Les mieux notés
|
@@ -104,7 +110,7 @@ fr-CA:
|
|
104
110
|
comments:
|
105
111
|
blocked_comments_for_unauthorized_user_warning: Vous devez valider votre inscription pour commenter maintenant, mais vous pouvez lire les commentaires précédents.
|
106
112
|
blocked_comments_for_user_warning: Vous n'êtes pas en mesure de commenter pour le moment, mais vous pouvez lire les précédents.
|
107
|
-
blocked_comments_warning: Les commentaires sont actuellement désactivés,
|
113
|
+
blocked_comments_warning: Les commentaires sont actuellement désactivés, seuls les administrateurs peuvent répondre ou en poster de nouveaux.
|
108
114
|
comment_details_title: Détails du commentaire
|
109
115
|
loading: Chargement des commentaires ...
|
110
116
|
single_comment_warning: <a href="%{url}">Voir tous les commentaires</a>
|
data/config/locales/fr.yml
CHANGED
@@ -39,7 +39,8 @@ fr:
|
|
39
39
|
error: Une erreur s'est produite lors du vote sur le commentaire.
|
40
40
|
components:
|
41
41
|
add_comment_form:
|
42
|
-
account_message:
|
42
|
+
account_message: Connectez-vous ou créez un compte pour ajouter votre commentaire.
|
43
|
+
add_comment: Ajouter un commentaire
|
43
44
|
form:
|
44
45
|
body:
|
45
46
|
label: Commentaire
|
@@ -49,6 +50,7 @@ fr:
|
|
49
50
|
submit_root_comment: Publier le commentaire
|
50
51
|
user_group_id:
|
51
52
|
label: Commenter en tant que
|
53
|
+
your_profile: Votre profil
|
52
54
|
opinion:
|
53
55
|
label: Que pensez-vous de cela ?
|
54
56
|
negative: Négatif
|
@@ -64,6 +66,9 @@ fr:
|
|
64
66
|
alignment:
|
65
67
|
against: Contre
|
66
68
|
in_favor: Pour
|
69
|
+
answers:
|
70
|
+
one: "%{count} réponse"
|
71
|
+
other: "%{count} réponses"
|
67
72
|
cancel_reply: Annuler la réponse
|
68
73
|
comment_label: Commentaire %{comment_id}
|
69
74
|
comment_label_reply: Commentaire %{comment_id} (réponse au commentaire %{parent_comment_id})
|
@@ -94,6 +99,7 @@ fr:
|
|
94
99
|
one: Afficher la réponse
|
95
100
|
other: Afficher %{count} réponses
|
96
101
|
single_comment_link_title: Obtenir le lien
|
102
|
+
sort_by: 'Trier par : '
|
97
103
|
comment_order_selector:
|
98
104
|
order:
|
99
105
|
best_rated: Les mieux notés
|
@@ -104,7 +110,7 @@ fr:
|
|
104
110
|
comments:
|
105
111
|
blocked_comments_for_unauthorized_user_warning: Vous devez faire vérifier votre compte pour commenter, mais vous pouvez lire les commentaires précédents.
|
106
112
|
blocked_comments_for_user_warning: Vous n'êtes pas en mesure de commenter pour le moment, mais vous pouvez lire les précédents.
|
107
|
-
blocked_comments_warning: Les commentaires sont actuellement désactivés,
|
113
|
+
blocked_comments_warning: Les commentaires sont actuellement désactivés, seuls les administrateurs peuvent répondre ou en poster de nouveaux.
|
108
114
|
comment_details_title: Détails du commentaire
|
109
115
|
loading: Chargement des commentaires ...
|
110
116
|
single_comment_warning: <a href="%{url}">Voir tous les commentaires</a>
|
data/config/locales/gl.yml
CHANGED
@@ -83,7 +83,6 @@ gl:
|
|
83
83
|
comments:
|
84
84
|
blocked_comments_for_unauthorized_user_warning: Tes de estar verificado para poder comentar neste intre, porén podes ler os comentarios anteriores.
|
85
85
|
blocked_comments_for_user_warning: Non podes comentar neste momento, pero podes ler os anteriores.
|
86
|
-
blocked_comments_warning: Os comentarios están desactivados neste momento, pero podes ler os anteriores.
|
87
86
|
comment_details_title: Detalles do comentario
|
88
87
|
loading: Cargando comentarios ...
|
89
88
|
single_comment_warning: <a href="%{url}">Ver todos os comentarios</a>
|
data/config/locales/hu.yml
CHANGED
@@ -94,7 +94,6 @@ hu:
|
|
94
94
|
comments:
|
95
95
|
blocked_comments_for_unauthorized_user_warning: Ebben a pillanatban nem tud megjegyzéseket tenni, de elolvashatja az előzőeket.
|
96
96
|
blocked_comments_for_user_warning: Ebben a pillanatban nem tud megjegyzéseket tenni, de elolvashatja az előzőeket.
|
97
|
-
blocked_comments_warning: A megjegyzések jelenleg le vannak tiltva, de a korábbiakat elolvashatod.
|
98
97
|
comment_details_title: Megjegyzés részletei
|
99
98
|
loading: Hozzászólások betöltése ...
|
100
99
|
single_comment_warning: <a href="%{url}"><a href="%{url}">Minden hozzászólás megtekintése</a>
|
data/config/locales/id-ID.yml
CHANGED
@@ -55,7 +55,6 @@ id:
|
|
55
55
|
title: 'Dipesan oleh:'
|
56
56
|
comments:
|
57
57
|
blocked_comments_for_user_warning: Anda tidak dapat berkomentar saat ini, tetapi Anda dapat membaca yang sebelumnya.
|
58
|
-
blocked_comments_warning: Komentar dinonaktifkan saat ini, tetapi Anda dapat membaca yang sebelumnya.
|
59
58
|
loading: Memuat komentar ...
|
60
59
|
events:
|
61
60
|
comments:
|
data/config/locales/is-IS.yml
CHANGED
data/config/locales/it.yml
CHANGED
@@ -82,7 +82,7 @@ it:
|
|
82
82
|
comments:
|
83
83
|
blocked_comments_for_unauthorized_user_warning: Devi essere verificato prima di poter commentare, ma puoi leggere i commenti precedenti.
|
84
84
|
blocked_comments_for_user_warning: Non sei in grado di commentare in questo momento, ma puoi leggere quelli precedenti.
|
85
|
-
blocked_comments_warning: I commenti sono disabilitati
|
85
|
+
blocked_comments_warning: I commenti sono attualmente disabilitati, solo gli amministratori possono rispondere o pubblicarne di nuovi.
|
86
86
|
comment_details_title: Dettagli commento
|
87
87
|
loading: Sto caricando i commenti ...
|
88
88
|
single_comment_warning: <a href="%{url}">Visualizza tutti i commenti</a>
|
data/config/locales/ja.yml
CHANGED
@@ -15,6 +15,10 @@ ja:
|
|
15
15
|
decidim/comments/comment_vote:
|
16
16
|
other: 投票
|
17
17
|
decidim:
|
18
|
+
admin:
|
19
|
+
admin_log:
|
20
|
+
changeset:
|
21
|
+
comments: コメント
|
18
22
|
comments:
|
19
23
|
admin:
|
20
24
|
shared:
|
@@ -37,7 +41,8 @@ ja:
|
|
37
41
|
error: コメントに投票中に問題がありました。
|
38
42
|
components:
|
39
43
|
add_comment_form:
|
40
|
-
account_message:
|
44
|
+
account_message: コメントを追加するにはログインするかアカウントを作成してください
|
45
|
+
add_comment: コメントを追加
|
41
46
|
form:
|
42
47
|
body:
|
43
48
|
label: コメント
|
@@ -47,6 +52,7 @@ ja:
|
|
47
52
|
submit_root_comment: コメントを公開
|
48
53
|
user_group_id:
|
49
54
|
label: 'コメント:'
|
55
|
+
your_profile: あなたのプロフィール
|
50
56
|
opinion:
|
51
57
|
label: このトピックに関するあなたの意見
|
52
58
|
negative: 否定的
|
@@ -62,6 +68,8 @@ ja:
|
|
62
68
|
alignment:
|
63
69
|
against: 反対
|
64
70
|
in_favor: 賛成
|
71
|
+
answers:
|
72
|
+
other: "%{count} 件の回答"
|
65
73
|
cancel_reply: 返信をキャンセル
|
66
74
|
comment_label: コメント %{comment_id}
|
67
75
|
comment_label_reply: コメント %{comment_id} (コメント %{parent_comment_id} への返信)
|
@@ -90,6 +98,7 @@ ja:
|
|
90
98
|
show_replies:
|
91
99
|
other: '%{count} 件の返信を表示'
|
92
100
|
single_comment_link_title: リンク取得
|
101
|
+
sort_by: '並べ替え: '
|
93
102
|
comment_order_selector:
|
94
103
|
order:
|
95
104
|
best_rated: 評価の高い順
|
@@ -98,15 +107,18 @@ ja:
|
|
98
107
|
recent: 新しい順
|
99
108
|
title: '並び順:'
|
100
109
|
comments:
|
110
|
+
against: 反対
|
101
111
|
blocked_comments_for_unauthorized_user_warning: 現在、コメントできるのは検証済アカウントのみになりますが、以前のコメントを読むことはできます。
|
102
112
|
blocked_comments_for_user_warning: 現時点ではコメントできませんが、以前のコメントを読むことができます。
|
103
|
-
blocked_comments_warning:
|
113
|
+
blocked_comments_warning: コメントは現在無効になっています。管理者のみが新しいコメントを返信または投稿できます。
|
104
114
|
comment_details_title: コメントの詳細
|
115
|
+
in_favor: 賛成
|
105
116
|
loading: コメントを読み込んでいます...
|
106
117
|
single_comment_warning: <a href="%{url}">すべてのコメントを表示</a>
|
107
118
|
single_comment_warning_title: コメントを1件のみ表示しています
|
108
119
|
title:
|
109
120
|
other: "%{count} 件のコメント"
|
121
|
+
top_comment_label: Upvoteの多い順
|
110
122
|
down_vote_button:
|
111
123
|
text: このコメントに同意しません
|
112
124
|
edit_comment_modal_form:
|
@@ -119,6 +131,26 @@ ja:
|
|
119
131
|
title: コメントを編集
|
120
132
|
up_vote_button:
|
121
133
|
text: このコメントに同意します
|
134
|
+
download_your_data:
|
135
|
+
help:
|
136
|
+
comment_votes:
|
137
|
+
comment: 投票されたコメントの ID
|
138
|
+
created_at: 投票の作成日時
|
139
|
+
id: 投票のID
|
140
|
+
updated_at: 投票の最終更新日時
|
141
|
+
weight: 投票の重みづけ(upvoteは1、downvoteは-1)
|
142
|
+
comments:
|
143
|
+
alignment: このコメントが好意的、反対的、中立的であった場合
|
144
|
+
author: このコメントを作成した参加者の名前
|
145
|
+
body: コメントそのもの
|
146
|
+
commentable_id: コメント対象の固有ID
|
147
|
+
commentable_type: コメント対象の種別 (結果、提案など)
|
148
|
+
created_at: コメントの作成日時
|
149
|
+
depth: コメントがコメントツリーのどこに位置しているか(回答、または回答の回答である場合)
|
150
|
+
id: コメントのID
|
151
|
+
locale: コメントを残した参加者の使っていたロケール(言語)
|
152
|
+
root_commentable_url: コメントに関連するリソースの URL
|
153
|
+
user_group: コメントを作成したユーザーグループの名前 (もしあれば)
|
122
154
|
events:
|
123
155
|
comments:
|
124
156
|
comment_by_followed_user:
|
data/config/locales/lb.yml
CHANGED
@@ -76,7 +76,6 @@ lb:
|
|
76
76
|
comments:
|
77
77
|
blocked_comments_for_unauthorized_user_warning: Sie müssen aktuell verifiziert sein um zu kommentieren, aber Sie können die bisherigen Kommentare lesen.
|
78
78
|
blocked_comments_for_user_warning: Sie können momentan nichts kommentieren, aber Sie können die vorherigen lesen.
|
79
|
-
blocked_comments_warning: Kommentare sind zu diesem Zeitpunkt deaktiviert, aber Sie können die vorherigen lesen.
|
80
79
|
comment_details_title: Kommentarinformationen
|
81
80
|
loading: Kommentare werden geladen ...
|
82
81
|
single_comment_warning_title: Ihnen wird ein einzelner Kommentar angezeigt
|
data/config/locales/lt.yml
CHANGED
@@ -103,7 +103,6 @@ lt:
|
|
103
103
|
comments:
|
104
104
|
blocked_comments_for_unauthorized_user_warning: Norėdami komentuoti turite būti patvirtintas(-a), tačiau galite skaityti egzistuojančius komentarus.
|
105
105
|
blocked_comments_for_user_warning: Šiuo metu komentarų pateikti negalite, tačiau galite perskaityti ankstesnius komentarus.
|
106
|
-
blocked_comments_warning: Komentarai šiuo metu išjungti, tačiau galite perskaityti ankstesnius komentarus.
|
107
106
|
comment_details_title: Komentaro detalės
|
108
107
|
loading: Komentarai įkeliami...
|
109
108
|
single_comment_warning: <a href="%{url}">Peržiūrėti visus komentarus</a>
|
data/config/locales/lv.yml
CHANGED
@@ -59,7 +59,6 @@ lv:
|
|
59
59
|
title: 'Sakārtot pēc:'
|
60
60
|
comments:
|
61
61
|
blocked_comments_for_user_warning: Pašlaik jūs nevarat komentēt, bet jūs varat izlasīt iepriekšējos komentārus.
|
62
|
-
blocked_comments_warning: Komentāri šobrīd ir atspējoti, bet jūs varat lasīt iepriekšējos komentārus.
|
63
62
|
comment_details_title: Komentāra informācija
|
64
63
|
loading: Notiek komentāru ielāde ...
|
65
64
|
single_comment_warning_title: Jūs redzat vienu komentāru
|
data/config/locales/nl.yml
CHANGED
@@ -84,7 +84,6 @@ nl:
|
|
84
84
|
comments:
|
85
85
|
blocked_comments_for_unauthorized_user_warning: Je kan op dit moment geen opmerkingen toevoegen, maar je kunt de eerdere opmerkingen wel lezen.
|
86
86
|
blocked_comments_for_user_warning: Je kunt op dit moment geen opmerkingen toevoegen, maar je kunt eerdere reacties wel lezen.
|
87
|
-
blocked_comments_warning: Reacties zijn op dit moment uitgeschakeld, maar je kan de vorige berichten lezen.
|
88
87
|
comment_details_title: Reactieonderdelen
|
89
88
|
loading: Reacties laden...
|
90
89
|
single_comment_warning: <a href="%{url}">Bekijk alle reacties</a>
|
data/config/locales/no.yml
CHANGED
@@ -82,7 +82,6 @@
|
|
82
82
|
comments:
|
83
83
|
blocked_comments_for_unauthorized_user_warning: Du må verifiseres for å kommentere, men du kan lese de forrige.
|
84
84
|
blocked_comments_for_user_warning: Du kan ikke kommentere for øyeblikket, men du kan lese de forrige.
|
85
|
-
blocked_comments_warning: Kommenterer er deaktivert på dette tidspunktet, men du kan lese de forrige.
|
86
85
|
comment_details_title: Kommenter detaljer
|
87
86
|
loading: Laster inn kommenterer ...
|
88
87
|
single_comment_warning: <a href="%{url}">Se alle kommentarer</a>
|
data/config/locales/pl.yml
CHANGED
@@ -43,7 +43,6 @@ pl:
|
|
43
43
|
error: Podczas dodawania komentarza wystąpił błąd.
|
44
44
|
components:
|
45
45
|
add_comment_form:
|
46
|
-
account_message: <a href="%{sign_in_url}">Zaloguj się</a> lub <a href="%{sign_up_url}">utwórz konto</a>, aby dodać swój komentarz.
|
47
46
|
form:
|
48
47
|
body:
|
49
48
|
label: Komentarz
|
@@ -107,7 +106,6 @@ pl:
|
|
107
106
|
comments:
|
108
107
|
blocked_comments_for_unauthorized_user_warning: Musisz być zweryfikowany żeby teraz komentować, ale możesz przeczytać poprzednie komentarze.
|
109
108
|
blocked_comments_for_user_warning: Nie możesz teraz komentować, ale możesz przeczytać poprzednie komentarze.
|
110
|
-
blocked_comments_warning: Komentarze są w tej chwili wyłączone, ale możesz przeczytać poprzednie.
|
111
109
|
comment_details_title: Szczegóły komentarza
|
112
110
|
loading: Ładowanie komentarzy ...
|
113
111
|
single_comment_warning: <a href="%{url}">Zobacz wszystkie komentarze</a>
|
data/config/locales/pt-BR.yml
CHANGED
@@ -81,7 +81,6 @@ pt-BR:
|
|
81
81
|
comments:
|
82
82
|
blocked_comments_for_unauthorized_user_warning: Você precisa ser verificado para comentar neste momento, mas pode ler os anteriores.
|
83
83
|
blocked_comments_for_user_warning: Você não pode comentar neste momento, mas pode ler os anteriores.
|
84
|
-
blocked_comments_warning: Os comentários estão desativados neste momento, mas você pode ler os anteriores.
|
85
84
|
comment_details_title: Detalhes do comentário
|
86
85
|
loading: Carregando comentários ...
|
87
86
|
single_comment_warning_title: Você está vendo um único comentário
|
data/config/locales/pt.yml
CHANGED
@@ -82,7 +82,6 @@ pt:
|
|
82
82
|
comments:
|
83
83
|
blocked_comments_for_unauthorized_user_warning: Precisa de estar verificado para comentar neste momento, mas pode ler os precedentes.
|
84
84
|
blocked_comments_for_user_warning: Não pode comentar neste momento, mas pode ler os anteriores.
|
85
|
-
blocked_comments_warning: Os comentários estão desativados neste momento, mas pode ler os anteriores.
|
86
85
|
comment_details_title: Detalhes do comentário
|
87
86
|
loading: A carregar comentários ...
|
88
87
|
single_comment_warning: <a href="%{url}">Ver todos os comentários</a>
|
data/config/locales/ro-RO.yml
CHANGED
@@ -41,7 +41,6 @@ ro:
|
|
41
41
|
error: A apărut o problemă la votarea comentariului.
|
42
42
|
components:
|
43
43
|
add_comment_form:
|
44
|
-
account_message: <a href="%{sign_in_url}">Autentificați-vă cu</a> sau <a href="%{sign_up_url}">creați un cont</a> pentru a adăuga comentariul dumneavoastră.
|
45
44
|
form:
|
46
45
|
body:
|
47
46
|
label: Comentariu
|
@@ -108,7 +107,7 @@ ro:
|
|
108
107
|
comments:
|
109
108
|
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.
|
110
109
|
blocked_comments_for_user_warning: Nu poți comenta în acest moment, dar le poți citi pe cele anterioare.
|
111
|
-
blocked_comments_warning: Comentariile sunt dezactivate
|
110
|
+
blocked_comments_warning: Comentariile sunt momentan dezactivate, doar administratorii pot răspunde sau publica altele noi.
|
112
111
|
comment_details_title: Detaliile comentariului
|
113
112
|
loading: Se încarcă comentariile...
|
114
113
|
single_comment_warning: <a href="%{url}">Vezi toate comentariile</a>
|
data/config/locales/ru.yml
CHANGED
@@ -61,7 +61,6 @@ ru:
|
|
61
61
|
title: 'Упорядочить по:'
|
62
62
|
comments:
|
63
63
|
blocked_comments_for_user_warning: Сейчас вам недоступно комментирование, но вы можете прочесть предыдущие комментарии.
|
64
|
-
blocked_comments_warning: Комментарии сейчас отключены, но вы можете прочитать предыдущие.
|
65
64
|
loading: Загрузка комментариев ...
|
66
65
|
events:
|
67
66
|
comments:
|
data/config/locales/sk.yml
CHANGED
@@ -61,7 +61,6 @@ sk:
|
|
61
61
|
title: 'Zoradiť podľa:'
|
62
62
|
comments:
|
63
63
|
blocked_comments_for_user_warning: V súčasnosti nemôžete komentovať, ale môžete si prečítať predchádzajúce komentáre.
|
64
|
-
blocked_comments_warning: Komentáre nie sú v súčasnosti povolené, ale môžete si prečítať predchádzajúce komentáre.
|
65
64
|
comment_details_title: Podrobnosti komentára
|
66
65
|
loading: Nahrávanie komentárov...
|
67
66
|
single_comment_warning_title: Zobrazujete jeden komentár
|
data/config/locales/sv.yml
CHANGED
@@ -17,6 +17,10 @@ sv:
|
|
17
17
|
one: Röst
|
18
18
|
other: Röster
|
19
19
|
decidim:
|
20
|
+
admin:
|
21
|
+
admin_log:
|
22
|
+
changeset:
|
23
|
+
comments: Kommentarer
|
20
24
|
comments:
|
21
25
|
admin:
|
22
26
|
shared:
|
@@ -39,7 +43,8 @@ sv:
|
|
39
43
|
error: Det gick inte att rösta om kommentaren.
|
40
44
|
components:
|
41
45
|
add_comment_form:
|
42
|
-
account_message:
|
46
|
+
account_message: Logga in eller skapa ett konto för kommentera.
|
47
|
+
add_comment: Kommentera
|
43
48
|
form:
|
44
49
|
body:
|
45
50
|
label: Kommentera
|
@@ -49,6 +54,7 @@ sv:
|
|
49
54
|
submit_root_comment: Publicera kommentar
|
50
55
|
user_group_id:
|
51
56
|
label: Kommentera som
|
57
|
+
your_profile: Din profil
|
52
58
|
opinion:
|
53
59
|
label: Din åsikt om frågan
|
54
60
|
negative: Negativ
|
@@ -64,6 +70,9 @@ sv:
|
|
64
70
|
alignment:
|
65
71
|
against: Mot
|
66
72
|
in_favor: För
|
73
|
+
answers:
|
74
|
+
one: "%{count} svar"
|
75
|
+
other: "%{count} svar"
|
67
76
|
cancel_reply: Avbryt svar
|
68
77
|
comment_label: Kommentar %{comment_id}
|
69
78
|
comment_label_reply: Kommentar %{comment_id} (svar på kommentar %{parent_comment_id})
|
@@ -94,6 +103,7 @@ sv:
|
|
94
103
|
one: Visa svar
|
95
104
|
other: Visa %{count} svar
|
96
105
|
single_comment_link_title: Hämta länk
|
106
|
+
sort_by: 'Sortera efter: '
|
97
107
|
comment_order_selector:
|
98
108
|
order:
|
99
109
|
best_rated: Bästa betyg
|
@@ -102,16 +112,19 @@ sv:
|
|
102
112
|
recent: Senaste
|
103
113
|
title: 'Sortera efter:'
|
104
114
|
comments:
|
115
|
+
against: Mot
|
105
116
|
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.
|
106
117
|
blocked_comments_for_user_warning: Du kan inte kommentera just nu, men du kan läsa tidigare kommentarer.
|
107
|
-
blocked_comments_warning: Kommentarer är inaktiverade
|
118
|
+
blocked_comments_warning: Kommentarer är inaktiverade, endast administratörer kan svara eller skriva nya.
|
108
119
|
comment_details_title: Kommentarsdetaljer
|
120
|
+
in_favor: För
|
109
121
|
loading: Laddar kommentarer...
|
110
122
|
single_comment_warning: <a href="%{url}">Visa alla kommentarer</a>
|
111
123
|
single_comment_warning_title: Du visar en enda kommentar
|
112
124
|
title:
|
113
125
|
one: "%{count} kommentar"
|
114
126
|
other: "%{count} kommentarer"
|
127
|
+
top_comment_label: Mest stöd
|
115
128
|
down_vote_button:
|
116
129
|
text: Jag instämmer inte i denna kommentar
|
117
130
|
edit_comment_modal_form:
|
@@ -124,6 +137,10 @@ sv:
|
|
124
137
|
title: Redigera din kommentar
|
125
138
|
up_vote_button:
|
126
139
|
text: Jag instämmer i denna kommentar
|
140
|
+
download_your_data:
|
141
|
+
help:
|
142
|
+
comment_votes:
|
143
|
+
comment: Id för kommentaren som gillades
|
127
144
|
events:
|
128
145
|
comments:
|
129
146
|
comment_by_followed_user:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -64,7 +64,6 @@ tr:
|
|
64
64
|
title: 'Tarafından sipariş:'
|
65
65
|
comments:
|
66
66
|
blocked_comments_for_user_warning: Şu anda yorum yapamıyorsunuz, ancak öncekileri okuyabilirsiniz.
|
67
|
-
blocked_comments_warning: Yorumlar şu anda devre dışı, ancak öncekileri okuyabilirsiniz.
|
68
67
|
comment_details_title: Yorum ayrıntıları
|
69
68
|
loading: Yorumlar yükleniyor ...
|
70
69
|
single_comment_warning_title: Tek bir yorum görüyorsunuz
|
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -89,7 +89,6 @@ zh-TW:
|
|
89
89
|
comments:
|
90
90
|
blocked_comments_for_unauthorized_user_warning: 目前需要驗證您的身份才能發表評論,但您可以閱讀先前的評論。
|
91
91
|
blocked_comments_for_user_warning: 目前您無法發表評論,但您可以閱讀先前的評論。
|
92
|
-
blocked_comments_warning: 目前無法發表評論,但您可以閱讀先前的評論。
|
93
92
|
comment_details_title: 評論詳細資料
|
94
93
|
loading: 正在加載評論…
|
95
94
|
single_comment_warning: <a href="%{url}">查看所有評論</a>
|
data/decidim-comments.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
"homepage_uri" => "https://decidim.org",
|
20
20
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
21
21
|
}
|
22
|
-
s.required_ruby_version = "~> 3.
|
22
|
+
s.required_ruby_version = "~> 3.3.0"
|
23
23
|
|
24
24
|
s.name = "decidim-comments"
|
25
25
|
s.summary = "Decidim comments module"
|
@@ -6,14 +6,14 @@ module Decidim
|
|
6
6
|
graphql_name "CommentMutation"
|
7
7
|
description "A comment which includes its available mutations"
|
8
8
|
|
9
|
+
field :down_vote, Decidim::Comments::CommentType, "The comment that is downvoted", null: true
|
9
10
|
field :id, GraphQL::Types::ID, "The Comment's unique ID", null: false
|
11
|
+
field :up_vote, Decidim::Comments::CommentType, "The comment that is upvoted", null: true
|
10
12
|
|
11
|
-
field :up_vote, Decidim::Comments::CommentType, null: true
|
12
13
|
def up_vote(args: {})
|
13
14
|
VoteCommentResolver.new(weight: 1).call(object, args, context)
|
14
15
|
end
|
15
16
|
|
16
|
-
field :down_vote, Decidim::Comments::CommentType, null: true
|
17
17
|
def down_vote(args: {})
|
18
18
|
VoteCommentResolver.new(weight: -1).call(object, args, context)
|
19
19
|
end
|