decidim-comments 0.21.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/comments/bundle.js +67 -67
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/cells/decidim/comments/comment_activity_cell.rb +2 -22
- data/app/cells/decidim/comments/comment_cell.rb +22 -0
- data/app/cells/decidim/comments/comment_m/footer.erb +5 -0
- data/app/cells/decidim/comments/comment_m/top.erb +7 -0
- data/app/cells/decidim/comments/comment_m_cell.rb +29 -0
- data/app/commands/decidim/comments/create_comment.rb +8 -8
- data/app/events/decidim/comments/comment_by_followed_user_group_event.rb +9 -0
- data/app/events/decidim/comments/comment_event.rb +14 -9
- data/app/events/decidim/comments/user_group_mentioned_event.rb +10 -0
- data/app/forms/decidim/comments/comment_form.rb +17 -1
- data/app/frontend/application/icon.component.tsx +16 -4
- data/app/frontend/comments/add_comment_form.component.test.tsx +31 -29
- data/app/frontend/comments/add_comment_form.component.tsx +34 -18
- data/app/frontend/comments/comment.component.test.tsx +36 -5
- data/app/frontend/comments/comment.component.tsx +218 -88
- data/app/frontend/comments/comment_order_selector.component.tsx +26 -7
- data/app/frontend/comments/comment_thread.component.test.tsx +9 -8
- data/app/frontend/comments/comment_thread.component.tsx +3 -1
- data/app/frontend/comments/comments.component.test.tsx +17 -14
- data/app/frontend/comments/comments.component.tsx +28 -4
- data/app/frontend/comments/down_vote_button.component.tsx +27 -9
- data/app/frontend/comments/up_vote_button.component.tsx +27 -9
- data/app/frontend/comments/vote_button.component.tsx +4 -0
- data/app/frontend/comments/vote_button_component.test.tsx +14 -8
- data/app/frontend/mutations/add_comment.mutation.graphql +2 -2
- data/app/frontend/mutations/down_vote.mutation.graphql +2 -2
- data/app/frontend/mutations/up_vote.mutation.graphql +2 -2
- data/app/frontend/queries/comments.query.graphql +2 -2
- data/app/frontend/support/schema.ts +1060 -735
- data/app/helpers/decidim/comments/comment_cells_helper.rb +33 -0
- data/app/models/decidim/comments/comment.rb +81 -22
- data/app/models/decidim/comments/seed.rb +1 -1
- data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +1 -6
- data/app/services/decidim/comments/new_comment_notification_creator.rb +28 -3
- data/app/types/decidim/comments/commentable_interface.rb +1 -1
- data/app/types/decidim/comments/commentable_mutation_type.rb +6 -3
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +4 -1
- data/config/locales/bg-BG.yml +6 -0
- data/config/locales/bg.yml +6 -0
- data/config/locales/ca.yml +19 -2
- data/config/locales/cs.yml +31 -14
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +47 -24
- data/config/locales/el.yml +121 -0
- data/config/locales/en.yml +18 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +18 -1
- data/config/locales/es-PY.yml +18 -1
- data/config/locales/es.yml +18 -1
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +4 -1
- data/config/locales/fi-plain.yml +18 -1
- data/config/locales/fi.yml +25 -8
- data/config/locales/fr-CA.yml +123 -0
- data/config/locales/fr.yml +25 -2
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +17 -1
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +12 -2
- data/config/locales/id-ID.yml +4 -1
- data/config/locales/is-IS.yml +3 -3
- data/config/locales/is.yml +76 -0
- data/config/locales/it.yml +21 -1
- data/config/locales/ja-JP.yml +120 -0
- data/config/locales/ja.yml +121 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +118 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +27 -8
- data/config/locales/no.yml +18 -2
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +63 -40
- data/config/locales/pt-BR.yml +5 -2
- data/config/locales/pt.yml +47 -25
- data/config/locales/ro-RO.yml +124 -0
- data/config/locales/ru.yml +4 -1
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk-SK.yml +116 -0
- data/config/locales/sk.yml +120 -0
- data/config/locales/sl.yml +4 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +20 -0
- data/config/locales/sv.yml +26 -3
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +54 -31
- data/config/locales/uk.yml +4 -2
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +121 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200320105911_index_foreign_keys_in_decidim_comments_comments.rb +7 -0
- data/db/migrate/20200706123136_make_comments_handle_i18n.rb +41 -0
- data/db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb +9 -0
- data/lib/decidim/comments/api/comment_type.rb +5 -1
- data/lib/decidim/comments/comment_serializer.rb +7 -2
- data/lib/decidim/comments/comment_vote_serializer.rb +5 -1
- data/lib/decidim/comments/commentable.rb +11 -0
- data/lib/decidim/comments/comments_helper.rb +28 -4
- data/lib/decidim/comments/engine.rb +13 -0
- data/lib/decidim/comments/mutation_extensions.rb +8 -0
- data/lib/decidim/comments/query_extensions.rb +4 -0
- data/lib/decidim/comments/test/factories.rb +10 -1
- data/lib/decidim/comments/test/shared_examples/comment_event.rb +12 -2
- data/lib/decidim/comments/test/shared_examples/create_comment_context.rb +3 -2
- data/lib/decidim/comments/version.rb +1 -1
- metadata +59 -13
@@ -0,0 +1 @@
|
|
1
|
+
so:
|
@@ -0,0 +1,20 @@
|
|
1
|
+
sr:
|
2
|
+
decidim:
|
3
|
+
components:
|
4
|
+
comment:
|
5
|
+
hide_replies: Sakrij odgovore
|
6
|
+
show_replies: Prikaži %{replies_count} odgovora
|
7
|
+
single_comment_link_title: Nabavi vezu ka jednom komentaru
|
8
|
+
comments:
|
9
|
+
comment_details_title: Detalji o komentaru
|
10
|
+
single_comment_warning: Možete videti ostale komentare <a href="%{url}">ovde</a>.
|
11
|
+
single_comment_warning_title: Vidite samo jedan komentar
|
12
|
+
events:
|
13
|
+
comments:
|
14
|
+
comment_by_followed_user_group:
|
15
|
+
email_intro: 'Grupa %{author_name} je ostavila komentar na %{resource_title}. Možete ga pročitati na ovoj strani:'
|
16
|
+
user_group_mentioned:
|
17
|
+
email_intro: Grupa kojoj pripadate je pomenuta
|
18
|
+
email_outro: Dobili ste ovo obaveštenje jer ste član grupe %{group_name} koja je pomenuta u %{resource_title}.
|
19
|
+
email_subject: Pomenuti ste u %{resource_title} kao član grupe %{group_name}
|
20
|
+
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
@@ -3,7 +3,8 @@ sv:
|
|
3
3
|
models:
|
4
4
|
decidim/comments/comment_by_followed_user_event: Kommentar
|
5
5
|
decidim/comments/comment_created_event: Kommentar
|
6
|
-
decidim/comments/reply_created_event:
|
6
|
+
decidim/comments/reply_created_event: Svar till en kommentar
|
7
|
+
decidim/comments/user_group_mentioned_event: Nämn
|
7
8
|
decidim/comments/user_mentioned_event: Nämn
|
8
9
|
activerecord:
|
9
10
|
models:
|
@@ -16,8 +17,10 @@ sv:
|
|
16
17
|
decidim:
|
17
18
|
comments:
|
18
19
|
comments: Kommentarer
|
20
|
+
comments_count: Antal kommentarer
|
19
21
|
last_activity:
|
20
22
|
new_comment_at_html: "<span>Ny kommentar på %{link}</span>"
|
23
|
+
view: Visa
|
21
24
|
votes:
|
22
25
|
create:
|
23
26
|
error: Det gick inte att rösta om kommentaren.
|
@@ -42,6 +45,7 @@ sv:
|
|
42
45
|
against: Mot
|
43
46
|
in_favor: För
|
44
47
|
deleted_user: Raderad deltagare
|
48
|
+
hide_replies: Göm svar
|
45
49
|
reply: Svara
|
46
50
|
report:
|
47
51
|
action: Rapportera
|
@@ -53,7 +57,9 @@ sv:
|
|
53
57
|
does_not_belong: Innehåller olaglig aktivitet, självmordshot, personlig information eller något annat du tycker inte hör hemma på %{organization_name}.
|
54
58
|
offensive: Innehåller rasism, sexism, skällsord, personliga attacker, dödshot, uppmaningar att begå självmord eller någon form av hatpropaganda.
|
55
59
|
spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
|
56
|
-
title: Rapportera
|
60
|
+
title: Rapportera olämpligt innehåll
|
61
|
+
show_replies: Visa %{replies_count} svar
|
62
|
+
single_comment_link_title: Få länk till enstaka kommentar
|
57
63
|
comment_order_selector:
|
58
64
|
order:
|
59
65
|
best_rated: Bästa betyg
|
@@ -66,8 +72,15 @@ sv:
|
|
66
72
|
comments:
|
67
73
|
blocked_comments_for_user_warning: Du kan inte kommentera just nu, men du kan läsa tidigare kommentarer.
|
68
74
|
blocked_comments_warning: Kommentarer är inaktiverade just nu, men du kan läsa de föregående.
|
75
|
+
comment_details_title: Kommentarsdetaljer
|
69
76
|
loading: Laddar kommentarer...
|
77
|
+
single_comment_warning: Läs återstående <a href="%{url}">kommentarer</a>.
|
78
|
+
single_comment_warning_title: Du visar en enda kommentar
|
70
79
|
title: "%{count} kommentarer"
|
80
|
+
down_vote_button:
|
81
|
+
text: Jag håller inte med om denna kommentar
|
82
|
+
up_vote_button:
|
83
|
+
text: Jag instämmer i denna kommentar
|
71
84
|
events:
|
72
85
|
comments:
|
73
86
|
comment_by_followed_user:
|
@@ -75,9 +88,14 @@ sv:
|
|
75
88
|
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.
|
76
89
|
email_subject: Det finns en ny kommentar av %{author_name} i %{resource_title}
|
77
90
|
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>.
|
91
|
+
comment_by_followed_user_group:
|
92
|
+
email_intro: 'Gruppen %{author_name} har lämnat en kommentar i %{resource_title}. Du kan läsa den på denna sida:'
|
93
|
+
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.
|
94
|
+
email_subject: Det finns en ny kommentar av %{author_name} i %{resource_title}
|
95
|
+
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>.
|
78
96
|
comment_created:
|
79
97
|
email_intro: "%{resource_title} har kommenterats. Du kan läsa kommentaren på den här sidan:"
|
80
|
-
email_outro: Du har fått
|
98
|
+
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.
|
81
99
|
email_subject: Det finns en ny kommentar från %{author_name} i %{resource_title}
|
82
100
|
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>
|
83
101
|
reply_created:
|
@@ -85,6 +103,11 @@ sv:
|
|
85
103
|
email_outro: Du har fått denna notis eftersom din kommentar blev besvarad.
|
86
104
|
email_subject: "%{author_name} har svarat din kommentar i %{resource_title}"
|
87
105
|
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> har svarat din kommentar i <a href="%{resource_path}">%{resource_title}</a>
|
106
|
+
user_group_mentioned:
|
107
|
+
email_intro: En grupp som du tillhör har nämnts
|
108
|
+
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}.
|
109
|
+
email_subject: Du har nämnts i %{resource_title} som en medlem i %{group_name}
|
110
|
+
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>
|
88
111
|
user_mentioned:
|
89
112
|
email_intro: Du har nämnts
|
90
113
|
email_outro: Du har fått denna notis eftersom du har nämnts i %{resource_title}.
|
@@ -0,0 +1 @@
|
|
1
|
+
sw:
|
@@ -0,0 +1 @@
|
|
1
|
+
ti:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -1,48 +1,52 @@
|
|
1
1
|
tr:
|
2
2
|
activemodel:
|
3
3
|
models:
|
4
|
-
decidim/comments/comment_by_followed_user_event: Yorum
|
5
|
-
decidim/comments/comment_created_event: Yorum
|
4
|
+
decidim/comments/comment_by_followed_user_event: Yorum
|
5
|
+
decidim/comments/comment_created_event: Yorum
|
6
6
|
decidim/comments/reply_created_event: Yorum cevabı
|
7
|
-
decidim/comments/
|
7
|
+
decidim/comments/user_group_mentioned_event: Bahset
|
8
|
+
decidim/comments/user_mentioned_event: Bahset
|
8
9
|
activerecord:
|
9
10
|
models:
|
10
11
|
decidim/comments/comment:
|
11
|
-
one: Yorum
|
12
|
+
one: Yorum
|
12
13
|
other: Yorumlar
|
13
14
|
decidim/comments/comment_vote:
|
14
|
-
one: Oy
|
15
|
+
one: Oy ver
|
15
16
|
other: oy
|
16
17
|
decidim:
|
17
18
|
comments:
|
18
19
|
comments: Yorumlar
|
20
|
+
comments_count: Yorum sayısı
|
19
21
|
last_activity:
|
20
|
-
new_comment_at_html: "<span> %{link}</span>yeni yorum"
|
22
|
+
new_comment_at_html: "<span> %{link}</span> yeni yorum"
|
23
|
+
view: Görünüm
|
21
24
|
votes:
|
22
25
|
create:
|
23
26
|
error: Yorum oylanırken bir sorun oluştu.
|
24
27
|
components:
|
25
28
|
add_comment_form:
|
26
|
-
account_message: <a href="%{sign_in_url}">
|
29
|
+
account_message: Yorumunuzu eklemek için <a href="%{sign_in_url}"> hesabınızla oturum açın </a> veya <a href="%{sign_up_url}"> kaydolun </a>.
|
27
30
|
form:
|
28
31
|
body:
|
29
|
-
label: Yorum
|
32
|
+
label: Yorum
|
30
33
|
placeholder: Bunun hakkında ne düşünüyorsun?
|
31
|
-
form_error: Metin
|
32
|
-
submit:
|
34
|
+
form_error: Metin zorunludur ve %{length} karakterden uzun olamaz.
|
35
|
+
submit: Gönder
|
33
36
|
user_group_id:
|
34
37
|
label: Olarak yorum yap
|
35
38
|
opinion:
|
36
|
-
neutral:
|
39
|
+
neutral: Tarafsız
|
37
40
|
remaining_characters: "%{count} karakter kaldı"
|
38
41
|
remaining_characters_1: "%{count} karakter kaldı"
|
39
|
-
title:
|
42
|
+
title: Yorum Ekle
|
40
43
|
comment:
|
41
44
|
alignment:
|
42
45
|
against: Karşısında
|
43
46
|
in_favor: Lehine
|
44
47
|
deleted_user: Silinmiş katılımcı
|
45
|
-
|
48
|
+
hide_replies: Yanıtları gizle
|
49
|
+
reply: Cevapla
|
46
50
|
report:
|
47
51
|
action: Rapor
|
48
52
|
already_reported: Bu içerik zaten bildirildi ve bir yönetici tarafından incelenecek.
|
@@ -50,10 +54,12 @@ tr:
|
|
50
54
|
description: Bu içerik uygunsuz mu?
|
51
55
|
details: Ek Yorumlar
|
52
56
|
reasons:
|
53
|
-
does_not_belong: Yasadışı faaliyet, intihar tehditleri, kişisel bilgiler veya %{organization_name}ait olmadığını düşündüğünüz başka bir şey
|
57
|
+
does_not_belong: Yasadışı faaliyet, intihar tehditleri, kişisel bilgiler veya %{organization_name} kuruluşuna ait olmadığını düşündüğünüz başka bir şey içeriyor.
|
54
58
|
offensive: Irkçılık, cinsiyetçilik, hakaretler, kişisel saldırılar, ölüm tehditleri, intihar talepleri veya herhangi bir nefret söylemi içerir.
|
55
59
|
spam: Clickbait, reklam, dolandırıcılık veya script botları içerir.
|
56
|
-
title:
|
60
|
+
title: Uygunsuz içerik bildir
|
61
|
+
show_replies: '%{replies_count} yanıtı göster'
|
62
|
+
single_comment_link_title: Tek yorumun bağlantısını al
|
57
63
|
comment_order_selector:
|
58
64
|
order:
|
59
65
|
best_rated: En çok oy alan
|
@@ -66,30 +72,47 @@ tr:
|
|
66
72
|
comments:
|
67
73
|
blocked_comments_for_user_warning: Şu anda yorum yapamıyorsunuz, ancak öncekileri okuyabilirsiniz.
|
68
74
|
blocked_comments_warning: Yorumlar şu anda devre dışı, ancak öncekileri okuyabilirsiniz.
|
75
|
+
comment_details_title: Yorum ayrıntıları
|
69
76
|
loading: Yorumlar yükleniyor ...
|
77
|
+
single_comment_warning: Yorumların geri kalanını <a href="%{url}"> buradan </a> kontrol edebilirsiniz.
|
78
|
+
single_comment_warning_title: Tek bir yorum görüyorsunuz
|
70
79
|
title: "%{count} yorum"
|
80
|
+
down_vote_button:
|
81
|
+
text: Bu yoruma katılmıyorum
|
82
|
+
up_vote_button:
|
83
|
+
text: Bu yoruma katılıyorum
|
71
84
|
events:
|
72
85
|
comments:
|
73
86
|
comment_by_followed_user:
|
74
|
-
email_intro: "%{author_name}
|
75
|
-
email_outro:
|
76
|
-
email_subject: '%{author_name} %{resource_title}
|
77
|
-
notification_title: <a href="%{
|
87
|
+
email_intro: "%{author_name} grubu %{resource_title} alanında bir yorum bıraktı. Bu sayfada okuyabilirsiniz:"
|
88
|
+
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.
|
89
|
+
email_subject: '%{author_name} %{resource_title} alanında yeni bir yorum yaptı'
|
90
|
+
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.
|
91
|
+
comment_by_followed_user_group:
|
92
|
+
email_intro: '%{author_name} grubu %{resource_title} alanında bir yorum bıraktı. Bu sayfada okuyabilirsiniz:'
|
93
|
+
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.
|
94
|
+
email_subject: '%{author_name}, %{resource_title} alanında yeni bir yorum yaptı'
|
95
|
+
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.
|
78
96
|
comment_created:
|
79
|
-
email_intro: "%{resource_title} yorum yapıldı. Bu sayfadaki yorumu okuyabilirsiniz:"
|
80
|
-
email_outro: '"%{resource_title}" veya yazarı takip ettiğiniz için bu bildirimi aldınız. Bunu önceki linkten takip edebilirsiniz.'
|
81
|
-
email_subject: '%{author_name} %{resource_title}yeni bir yorum
|
82
|
-
notification_title: <a href="%{
|
97
|
+
email_intro: "%{resource_title} alanında yorum yapıldı. Bu sayfadaki yorumu okuyabilirsiniz:"
|
98
|
+
email_outro: '"%{resource_title}" alanında veya yazarı takip ettiğiniz için bu bildirimi aldınız. Bunu önceki linkten takip edebilirsiniz.'
|
99
|
+
email_subject: '%{author_name}, %{resource_title} alanında yeni bir yorum yaptı'
|
100
|
+
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
|
83
101
|
reply_created:
|
84
|
-
email_intro: "%{author_name}
|
102
|
+
email_intro: "%{author_name}, yorumunuzu %{resource_title} alanında yanıtladı. Bu sayfada okuyabilirsiniz:"
|
85
103
|
email_outro: Yorumunuz yanıtlandığı için bu bildirimi aldınız.
|
86
|
-
email_subject: "%{author_name}
|
87
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a>yorumunuzu
|
104
|
+
email_subject: "%{author_name}, yorumunuzu %{resource_title} alanında yanıtladı"
|
105
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a> alanında yorumunuzu yanıtladı
|
106
|
+
user_group_mentioned:
|
107
|
+
email_intro: Ait olduğunuz bir gruptan bahsedildi
|
108
|
+
email_outro: Bu bildirimi, %{resource_title} içinde adı geçen %{group_name} grubunun bir üyesi olduğunuz için aldınız.
|
109
|
+
email_subject: '%{resource_title} içinde %{group_name} üyesi olarak bahsedildiniz'
|
110
|
+
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
|
88
111
|
user_mentioned:
|
89
|
-
email_intro: Sen
|
90
|
-
email_outro: Bu bildirimi, %{resource_title}
|
91
|
-
email_subject: '%{resource_title}
|
92
|
-
notification_title: <a href="%{resource_path}">%{resource_title}</a>
|
112
|
+
email_intro: Sen bahsedildin
|
113
|
+
email_outro: Bu bildirimi, sizden %{resource_title} alanında bahsedildiği için aldınız.
|
114
|
+
email_subject: '%{resource_title} alanında bahsedildiniz'
|
115
|
+
notification_title: <a href="%{resource_path}">%{resource_title} </a> alanında <a href="%{author_path}">%{author_name} %{author_nickname} </a> tarafından bahsedildi
|
93
116
|
metrics:
|
94
117
|
comments:
|
95
118
|
description: Katılımcılar tarafından oluşturulan yorum sayısı
|
@@ -97,4 +120,4 @@ tr:
|
|
97
120
|
title: Yorumlar
|
98
121
|
errors:
|
99
122
|
messages:
|
100
|
-
cannot_have_comments: yorum
|
123
|
+
cannot_have_comments: yorum alamaz
|
data/config/locales/uk.yml
CHANGED
@@ -4,6 +4,7 @@ uk:
|
|
4
4
|
decidim/comments/comment_by_followed_user_event: Коментар
|
5
5
|
decidim/comments/comment_created_event: Коментар
|
6
6
|
decidim/comments/reply_created_event: Відповідь на коментар
|
7
|
+
decidim/comments/user_group_mentioned_event: Згадка
|
7
8
|
decidim/comments/user_mentioned_event: Згадка
|
8
9
|
activerecord:
|
9
10
|
models:
|
@@ -19,7 +20,6 @@ uk:
|
|
19
20
|
other: Голосів
|
20
21
|
decidim:
|
21
22
|
comments:
|
22
|
-
comments: Коментарі
|
23
23
|
votes:
|
24
24
|
create:
|
25
25
|
error: При голосуванні щодо коментаря сталися помилки.
|
@@ -55,7 +55,6 @@ uk:
|
|
55
55
|
does_not_belong: Містить незаконну діяльність, загрози самогубства, особисті відомості чи ще щось, неприпустиме, на вашу думку, для %{organization_name}.
|
56
56
|
offensive: Містить расизм, сексизм, образи, особисті напади, погрози вбивства, заяви про самогубство або будь-які ненависницькі висловлювання.
|
57
57
|
spam: Містить клацоловки (маніпулятивно-сенсаційні заголовки), рекламу, афери або лохотрони.
|
58
|
-
title: Поскаржитись на ускладнення
|
59
58
|
comment_order_selector:
|
60
59
|
order:
|
61
60
|
best_rated: З найкращим рейтингом
|
@@ -76,6 +75,9 @@ uk:
|
|
76
75
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{author_name}. Ви можете припинити стежити за ним на сторінці його профілю.
|
77
76
|
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
|
78
77
|
notification_title: У <a href="%{resource_path}">%{resource_title}</a> з'явився новий коментар від <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
78
|
+
comment_by_followed_user_group:
|
79
|
+
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
|
80
|
+
notification_title: У <a href="%{resource_path}">%{resource_title}</a> з'явився новий коментар від <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
|
79
81
|
comment_created:
|
80
82
|
email_intro: "%{resource_title} прокоментували. Ви можете прочитати коментар на сторінці:"
|
81
83
|
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1 @@
|
|
1
|
+
vi:
|
@@ -0,0 +1,121 @@
|
|
1
|
+
zh-CN:
|
2
|
+
activemodel:
|
3
|
+
models:
|
4
|
+
decidim/comments/comment_by_followed_user_event: 评论
|
5
|
+
decidim/comments/comment_created_event: 评论
|
6
|
+
decidim/comments/reply_created_event: 评论回复
|
7
|
+
decidim/comments/user_group_mentioned_event: 提到了
|
8
|
+
decidim/comments/user_mentioned_event: 提到了
|
9
|
+
activerecord:
|
10
|
+
models:
|
11
|
+
decidim/comments/comment:
|
12
|
+
other: 评论
|
13
|
+
decidim/comments/comment_vote:
|
14
|
+
other: 所得票数
|
15
|
+
decidim:
|
16
|
+
comments:
|
17
|
+
comments: 评论
|
18
|
+
comments_count: 评论计数
|
19
|
+
last_activity:
|
20
|
+
new_comment_at_html: "<span>在 %{link}的新评论</span>"
|
21
|
+
view: 查看
|
22
|
+
votes:
|
23
|
+
create:
|
24
|
+
error: 在表决该评论时出现问题。
|
25
|
+
components:
|
26
|
+
add_comment_form:
|
27
|
+
account_message: <a href="%{sign_in_url}">使用您的帐户</a> 或 <a href="%{sign_up_url}">注册</a> 来添加您的评论。
|
28
|
+
form:
|
29
|
+
body:
|
30
|
+
label: 评论
|
31
|
+
placeholder: 你对此有什么看法?
|
32
|
+
form_error: 文本是必需的,不能超过 %{length} 个字符。
|
33
|
+
submit: 发送
|
34
|
+
user_group_id:
|
35
|
+
label: 评论为
|
36
|
+
opinion:
|
37
|
+
neutral: 中性的
|
38
|
+
remaining_characters: "剩余 %{count} 个字符"
|
39
|
+
remaining_characters_1: "剩余 %{count} 个字符"
|
40
|
+
title: 添加您的评论
|
41
|
+
comment:
|
42
|
+
alignment:
|
43
|
+
against: 反对的
|
44
|
+
in_favor: 优惠的
|
45
|
+
deleted_user: 删除参与者
|
46
|
+
hide_replies: 隐藏回复
|
47
|
+
reply: 答复
|
48
|
+
report:
|
49
|
+
action: 报告
|
50
|
+
already_reported: 此内容已经被报告,将由管理员审核。
|
51
|
+
close: 关闭
|
52
|
+
description: 这个内容是否不适当?
|
53
|
+
details: 其他评论
|
54
|
+
reasons:
|
55
|
+
does_not_belong: 包含非法活动、自杀威胁、个人信息或你认为不属于 %{organization_name} 的其他东西。
|
56
|
+
offensive: 包括种族主义、性别主义、污泥、个人攻击、死亡威胁、自杀请求或任何形式的仇恨言论。
|
57
|
+
spam: 包含点击、广告、骗子或脚本机器人。
|
58
|
+
title: 报告不恰当的内容
|
59
|
+
show_replies: 显示 %{replies_count} 个回复
|
60
|
+
single_comment_link_title: 获取单个评论的链接
|
61
|
+
comment_order_selector:
|
62
|
+
order:
|
63
|
+
best_rated: 最佳评分
|
64
|
+
most_discussed: 最多讨论
|
65
|
+
older: 更旧的
|
66
|
+
recent: 最近的
|
67
|
+
title: '排序方式:'
|
68
|
+
comment_thread:
|
69
|
+
title: 与 %{authorName} 的对话
|
70
|
+
comments:
|
71
|
+
blocked_comments_for_user_warning: 您此时无法评论,但您可以阅读前面的评论。
|
72
|
+
blocked_comments_warning: 评论此时被禁用,但您可以阅读前面的评论。
|
73
|
+
comment_details_title: 评论详情
|
74
|
+
loading: 正在加载评论...
|
75
|
+
single_comment_warning: 您可以在这里查看 <a href="%{url}">的其余评论</a>。
|
76
|
+
single_comment_warning_title: 您正在看到一个评论
|
77
|
+
title: "%{count} 条评论"
|
78
|
+
down_vote_button:
|
79
|
+
text: 我不同意这个评论
|
80
|
+
up_vote_button:
|
81
|
+
text: 我同意这个评论
|
82
|
+
events:
|
83
|
+
comments:
|
84
|
+
comment_by_followed_user:
|
85
|
+
email_intro: "%{author_name} 在 %{resource_title}留下了一条评论。您可以在这个页面阅读:"
|
86
|
+
email_outro: 您收到此通知是因为您正在关注 %{author_name}。您可以从其个人资料页面取消关注此用户。
|
87
|
+
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
|
88
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 有新的评论。
|
89
|
+
comment_by_followed_user_group:
|
90
|
+
email_intro: '组 %{author_name} 在 %{resource_title}留下了一个评论。您可以在这个页面阅读它:'
|
91
|
+
email_outro: 您收到此通知是因为您正在关注 %{author_name}。您可以从其个人资料页面取消关注此组。
|
92
|
+
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
|
93
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 有新的评论。
|
94
|
+
comment_created:
|
95
|
+
email_intro: "%{resource_title} 已被评论。您可以阅读此页面中的评论:"
|
96
|
+
email_outro: 您收到此通知是因为您正在关注"%{resource_title}"或其作者。您可以从上一个链接取消关注它。
|
97
|
+
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
|
98
|
+
notification_title: 来自 <a href="%{author_path}">%{author_name} %{author_nickname}</a> 的新评论 <a href="%{resource_path}">%{resource_title}</a>
|
99
|
+
reply_created:
|
100
|
+
email_intro: "%{author_name} 在 %{resource_title}回复了您的评论。您可以在这个页面阅读:"
|
101
|
+
email_outro: 您收到此通知是因为您的评论已被回复。
|
102
|
+
email_subject: "%{author_name} 在 %{resource_title} 回复了您的评论"
|
103
|
+
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 回复了您在 <a href="%{resource_path}">%{resource_title}</a>
|
104
|
+
user_group_mentioned:
|
105
|
+
email_intro: 已经提到您所属的组
|
106
|
+
email_outro: 您收到此通知是因为您是在 %{group_name} 中提及的组 %{resource_title} 的成员。
|
107
|
+
email_subject: 您已在 %{resource_title} 中被提及为 %{group_name} 的成员
|
108
|
+
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>
|
109
|
+
user_mentioned:
|
110
|
+
email_intro: 您已被提到。
|
111
|
+
email_outro: 您收到此通知是因为您已在 %{resource_title} 中被提及。
|
112
|
+
email_subject: 您已在 %{resource_title} 中被提及了
|
113
|
+
notification_title: 您在 <a href="%{resource_path}">%{resource_title}中提到</a> <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
114
|
+
metrics:
|
115
|
+
comments:
|
116
|
+
description: 与会者生成的评论数
|
117
|
+
object: 评论
|
118
|
+
title: 评论
|
119
|
+
errors:
|
120
|
+
messages:
|
121
|
+
cannot_have_comments: 不能有评论
|
@@ -0,0 +1 @@
|
|
1
|
+
zh-TW:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MakeCommentsHandleI18n < ActiveRecord::Migration[5.2]
|
4
|
+
class User < ApplicationRecord
|
5
|
+
self.table_name = :decidim_users
|
6
|
+
end
|
7
|
+
|
8
|
+
class Comment < ApplicationRecord
|
9
|
+
self.table_name = :decidim_comments_comments
|
10
|
+
end
|
11
|
+
|
12
|
+
class Organization < ApplicationRecord
|
13
|
+
self.table_name = :decidim_organizations
|
14
|
+
end
|
15
|
+
|
16
|
+
def change
|
17
|
+
add_column :decidim_comments_comments, :new_body, :jsonb
|
18
|
+
|
19
|
+
User.reset_column_information
|
20
|
+
Comment.reset_column_information
|
21
|
+
Organization.reset_column_information
|
22
|
+
|
23
|
+
Comment.find_each do |comment|
|
24
|
+
locale, org_id = User.where(id: comment.decidim_author_id).pluck(:locale, :decidim_organization_id).first
|
25
|
+
locale = locale.presence || Organization.find(org_id).default_locale
|
26
|
+
|
27
|
+
comment.new_body = {
|
28
|
+
locale => comment.body
|
29
|
+
}
|
30
|
+
|
31
|
+
comment.save!
|
32
|
+
end
|
33
|
+
|
34
|
+
remove_column :decidim_comments_comments, :body
|
35
|
+
rename_column :decidim_comments_comments, :new_body, :body
|
36
|
+
|
37
|
+
User.reset_column_information
|
38
|
+
Comment.reset_column_information
|
39
|
+
Organization.reset_column_information
|
40
|
+
end
|
41
|
+
end
|