decidim-comments 0.26.10 → 0.27.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 -5
- data/app/cells/decidim/comments/comment/show.erb +3 -3
- data/app/cells/decidim/comments/comment_cell.rb +2 -2
- data/app/cells/decidim/comments/comments/comments_loading.erb +3 -0
- data/app/cells/decidim/comments/comments/show.erb +1 -0
- data/app/cells/decidim/comments/comments_cell.rb +7 -12
- data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +1 -1
- data/app/commands/decidim/comments/create_comment.rb +1 -1
- data/app/commands/decidim/comments/delete_comment.rb +1 -1
- data/app/commands/decidim/comments/update_comment.rb +8 -1
- data/app/commands/decidim/comments/vote_comment.rb +1 -1
- data/app/controllers/decidim/comments/comments_controller.rb +9 -11
- data/app/helpers/decidim/comments/comment_cells_helper.rb +1 -1
- data/app/models/decidim/comments/comment.rb +9 -10
- data/app/models/decidim/comments/comment_vote.rb +1 -1
- data/app/packs/src/decidim/comments/comments.component.js +32 -13
- data/app/packs/src/decidim/comments/comments.component.test.js +9 -5
- data/app/permissions/decidim/comments/permissions.rb +5 -7
- data/app/queries/decidim/comments/sorted_comments.rb +1 -3
- data/app/services/decidim/comments/new_comment_notification_creator.rb +1 -1
- data/app/views/decidim/comments/comments/create.js.erb +0 -4
- data/app/views/decidim/comments/comments/index.js.erb +1 -0
- data/app/views/decidim/comments/comments/reload.js.erb +1 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +3 -65
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +2 -3
- data/config/locales/cs.yml +2 -5
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +4 -5
- data/config/locales/el.yml +3 -13
- data/config/locales/en.yml +1 -3
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +2 -3
- data/config/locales/es-PY.yml +2 -3
- data/config/locales/es.yml +2 -3
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +35 -41
- data/config/locales/fi-plain.yml +2 -3
- data/config/locales/fi.yml +2 -3
- data/config/locales/fr-CA.yml +4 -5
- data/config/locales/fr.yml +4 -5
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +3 -56
- data/config/locales/id-ID.yml +2 -1
- data/config/locales/is-IS.yml +3 -1
- data/config/locales/it.yml +2 -0
- data/config/locales/ja.yml +6 -6
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +3 -1
- data/config/locales/lt.yml +1 -179
- data/config/locales/lv.yml +3 -1
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +2 -18
- data/config/locales/no.yml +2 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +2 -13
- data/config/locales/pt-BR.yml +3 -3
- data/config/locales/pt.yml +2 -0
- data/config/locales/ro-RO.yml +2 -6
- data/config/locales/ru.yml +2 -1
- data/config/locales/si-LK.yml +4 -0
- data/config/locales/sk.yml +3 -1
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +2 -0
- data/config/locales/sv.yml +2 -5
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +3 -0
- data/config/locales/uk.yml +2 -0
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +3 -1
- data/config/locales/zh-TW.yml +1 -167
- data/db/migrate/20181016142511_make_authors_polymorphic_for_comments.rb +1 -0
- data/db/migrate/20181019092928_make_author_polymorphic_for_comment_votes.rb +1 -0
- data/lib/decidim/comments/comment_serializer.rb +1 -1
- data/lib/decidim/comments/comment_vote_serializer.rb +1 -1
- data/lib/decidim/comments/export.rb +0 -2
- data/lib/decidim/comments/markdown.rb +0 -12
- data/lib/decidim/comments/test/shared_examples/translatable_comment.rb +1 -1
- data/lib/decidim/comments/version.rb +1 -1
- metadata +13 -21
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/th-TH.yml +0 -1
data/config/locales/ru.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ru:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -20,7 +21,6 @@ ru:
|
|
20
21
|
other: Голосов
|
21
22
|
decidim:
|
22
23
|
comments:
|
23
|
-
comments_title: Комментарии
|
24
24
|
last_activity:
|
25
25
|
new_comment_at_html: "<span>Новый комментарий в %{link}</span>"
|
26
26
|
votes:
|
@@ -34,6 +34,7 @@ ru:
|
|
34
34
|
label: Комментарий
|
35
35
|
placeholder: Что вы думаете об этом?
|
36
36
|
form_error: Тут обязательно нужно ввести текст, но не больше %{length} символов.
|
37
|
+
submit: Отправить
|
37
38
|
user_group_id:
|
38
39
|
label: Комментировать как
|
39
40
|
opinion:
|
data/config/locales/si-LK.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
si:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -9,10 +10,13 @@ si:
|
|
9
10
|
one: අදහස
|
10
11
|
other: අදහස්
|
11
12
|
decidim:
|
13
|
+
comments:
|
14
|
+
comments_title: අදහස්
|
12
15
|
components:
|
13
16
|
add_comment_form:
|
14
17
|
form:
|
15
18
|
body:
|
16
19
|
label: අදහස
|
20
|
+
submit: යවන්න
|
17
21
|
user_group_id:
|
18
22
|
label: ලෙස අදහස් දක්වන්න
|
data/config/locales/sk.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sk:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -20,7 +21,6 @@ sk:
|
|
20
21
|
other: Hlasy
|
21
22
|
decidim:
|
22
23
|
comments:
|
23
|
-
comments_title: Komentáre
|
24
24
|
last_activity:
|
25
25
|
new_comment_at_html: "<span>Nový komentár na %{link}</span>"
|
26
26
|
votes:
|
@@ -34,6 +34,7 @@ sk:
|
|
34
34
|
label: Komentár
|
35
35
|
placeholder: Čo si myslíte o tomto?
|
36
36
|
form_error: Tento text je požadovaný a nesmie byť dlhší, než %{length} znakov.
|
37
|
+
submit: Odoslať
|
37
38
|
user_group_id:
|
38
39
|
label: Komentovať ako
|
39
40
|
opinion:
|
@@ -58,6 +59,7 @@ sk:
|
|
58
59
|
does_not_belong: Obsahuje ilegálnu činnosť, vyhrážky, osobné informácie, alebo niečo ďalšie, o čom si myslíte, že nepatrí na %{organization_name}.
|
59
60
|
offensive: Obsahuje rasizmus, sexizmus, urážky, osobné útoky, vyhrážky alebo inú podobu nenávistného prejavu.
|
60
61
|
spam: Obsahuje clickbait, reklamy, scam alebo je to skriptovací robot.
|
62
|
+
show_replies: Zobraziť %{replies_count} odpovedí
|
61
63
|
comment_order_selector:
|
62
64
|
order:
|
63
65
|
best_rated: Najlepšie hodnotené
|
data/config/locales/sl.yml
CHANGED
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
models:
|
4
5
|
decidim/comments/comment_by_followed_user_event: Kommentar
|
5
6
|
decidim/comments/comment_created_event: Kommentar
|
6
|
-
decidim/comments/comment_upvoted_event: Kommentar uppröstad
|
7
7
|
decidim/comments/reply_created_event: Svar till en kommentar
|
8
8
|
decidim/comments/user_group_mentioned_event: Nämn
|
9
9
|
decidim/comments/user_mentioned_event: Nämn
|
@@ -71,7 +71,6 @@ sv:
|
|
71
71
|
edit: Redigera
|
72
72
|
edited: Redigerad
|
73
73
|
hide_replies: Göm svar
|
74
|
-
moderated_at: Kommentar modererad den %{date}
|
75
74
|
reply: Svara
|
76
75
|
report:
|
77
76
|
action: Rapportera
|
@@ -84,9 +83,7 @@ sv:
|
|
84
83
|
offensive: Innehåller rasism, sexism, skällsord, personliga attacker, dödshot, uppmaningar att begå självmord eller någon form av hatpropaganda.
|
85
84
|
spam: Innehåller clickbait, reklam, bedrägerier eller skriptrobotar.
|
86
85
|
title: Rapportera olämpligt innehåll
|
87
|
-
show_replies:
|
88
|
-
one: Visa svar
|
89
|
-
other: Visa %{count} svar
|
86
|
+
show_replies: Visa %{replies_count} svar
|
90
87
|
single_comment_link_title: Hämta länk
|
91
88
|
comment_order_selector:
|
92
89
|
order:
|
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
tr:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -35,6 +36,7 @@ tr:
|
|
35
36
|
label: Yorum
|
36
37
|
placeholder: Bunun hakkında ne düşünüyorsun?
|
37
38
|
form_error: Metin zorunludur ve %{length} karakterden uzun olamaz.
|
39
|
+
submit: Gönder
|
38
40
|
user_group_id:
|
39
41
|
label: Olarak yorum yap
|
40
42
|
opinion:
|
@@ -60,6 +62,7 @@ tr:
|
|
60
62
|
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.
|
61
63
|
spam: Clickbait, reklam, dolandırıcılık veya script botları içerir.
|
62
64
|
title: Uygunsuz içerik bildir
|
65
|
+
show_replies: '%{replies_count} yanıtı göster'
|
63
66
|
comment_order_selector:
|
64
67
|
order:
|
65
68
|
best_rated: En çok oy alan
|
data/config/locales/uk.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
uk:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -31,6 +32,7 @@ uk:
|
|
31
32
|
label: Коментар
|
32
33
|
placeholder: Що ви думаєте з цього приводу?
|
33
34
|
form_error: Тут обов'язково потрібно ввести текст, але не більше, ніж %{length} символів.
|
35
|
+
submit: Надіслати
|
34
36
|
user_group_id:
|
35
37
|
label: Коментувати як
|
36
38
|
opinion:
|
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
zh-CN:
|
2
3
|
activemodel:
|
3
4
|
models:
|
@@ -15,7 +16,6 @@ zh-CN:
|
|
15
16
|
decidim:
|
16
17
|
comments:
|
17
18
|
comments_count: 评论计数
|
18
|
-
comments_title: 评论
|
19
19
|
last_activity:
|
20
20
|
new_comment_at_html: "<span>在 %{link}的新评论</span>"
|
21
21
|
view: 查看
|
@@ -30,6 +30,7 @@ zh-CN:
|
|
30
30
|
label: 评论
|
31
31
|
placeholder: 你对此有什么看法?
|
32
32
|
form_error: 文本是必需的,不能超过 %{length} 个字符。
|
33
|
+
submit: 发送
|
33
34
|
user_group_id:
|
34
35
|
label: 评论为
|
35
36
|
opinion:
|
@@ -55,6 +56,7 @@ zh-CN:
|
|
55
56
|
offensive: 包括种族主义、性别主义、污泥、个人攻击、死亡威胁、自杀请求或任何形式的仇恨言论。
|
56
57
|
spam: 包含点击、广告、骗子或脚本机器人。
|
57
58
|
title: 报告不恰当的内容
|
59
|
+
show_replies: 显示 %{replies_count} 个回复
|
58
60
|
comment_order_selector:
|
59
61
|
order:
|
60
62
|
best_rated: 最佳评分
|
data/config/locales/zh-TW.yml
CHANGED
@@ -1,168 +1,2 @@
|
|
1
|
+
---
|
1
2
|
zh-TW:
|
2
|
-
activemodel:
|
3
|
-
models:
|
4
|
-
decidim/comments/comment_by_followed_user_event: 評論
|
5
|
-
decidim/comments/comment_created_event: 評論
|
6
|
-
decidim/comments/comment_upvoted_event: 評論已獲得讚同
|
7
|
-
decidim/comments/reply_created_event: 評論回覆
|
8
|
-
decidim/comments/user_group_mentioned_event: 提及
|
9
|
-
decidim/comments/user_mentioned_event: 提及
|
10
|
-
activerecord:
|
11
|
-
models:
|
12
|
-
decidim/comments/comment:
|
13
|
-
other: 評論
|
14
|
-
decidim/comments/comment_vote:
|
15
|
-
other: 投票
|
16
|
-
decidim:
|
17
|
-
comments:
|
18
|
-
admin:
|
19
|
-
shared:
|
20
|
-
availability_fields:
|
21
|
-
enabled: 啟用評論功能
|
22
|
-
end_time: 留言可用至
|
23
|
-
start_time: 留言可用自
|
24
|
-
comments:
|
25
|
-
create:
|
26
|
-
error: 創建評論時出現問題。
|
27
|
-
delete:
|
28
|
-
error: 該評論無法被刪除。
|
29
|
-
update:
|
30
|
-
error: 更新評論時出現問題。
|
31
|
-
comments_count: 評論次數
|
32
|
-
comments_title: 評論
|
33
|
-
last_activity:
|
34
|
-
new_comment_at_html: "<span>在 %{link} 上發布了新評論</span>"
|
35
|
-
view: 檢視
|
36
|
-
votes:
|
37
|
-
create:
|
38
|
-
error: 投票評論時發生問題。
|
39
|
-
components:
|
40
|
-
add_comment_form:
|
41
|
-
account_message: <a href="%{sign_in_url}">登入您的帳戶</a>或<a href="%{sign_up_url}">註冊</a>以新增您的評論。
|
42
|
-
form:
|
43
|
-
body:
|
44
|
-
label: 評論
|
45
|
-
placeholder: 你有什麼想法?
|
46
|
-
form_error: 文字為必填欄位,且不可超過 %{length} 個字元。
|
47
|
-
submit: 發送
|
48
|
-
user_group_id:
|
49
|
-
label: 評論者:
|
50
|
-
opinion:
|
51
|
-
label: 關於此議題,您的意見
|
52
|
-
negative: 負面
|
53
|
-
negative_selected: 您對此主題的看法為負面
|
54
|
-
neutral: 中性
|
55
|
-
neutral_selected: 您對此主題的看法是中立的
|
56
|
-
positive: 正面
|
57
|
-
positive_selected: 您對此主題的看法是正面的
|
58
|
-
remaining_characters: "剩餘%{count} 個字元"
|
59
|
-
remaining_characters_1: "剩餘%{count} 個字元"
|
60
|
-
title: 新增您的評論
|
61
|
-
comment:
|
62
|
-
alignment:
|
63
|
-
against: 反對
|
64
|
-
in_favor: 贊成
|
65
|
-
confirm_destroy: 你確定要刪除此評論?
|
66
|
-
delete: 刪除
|
67
|
-
deleted_at: 評論已在 %{date} 刪除
|
68
|
-
deleted_user: 已刪除的參與者
|
69
|
-
edit: 編輯
|
70
|
-
edited: 已編輯
|
71
|
-
hide_replies: 隱藏答覆
|
72
|
-
moderated_at: 評論在%{date} 被審核
|
73
|
-
reply: 回覆
|
74
|
-
report:
|
75
|
-
action: 報告
|
76
|
-
already_reported: 此內容已被舉報,將由管理員進行審查。
|
77
|
-
close: 關閉
|
78
|
-
description: 評論於 %{date} 被審核
|
79
|
-
details: 附加評論
|
80
|
-
reasons:
|
81
|
-
does_not_belong: 包含非法活動、自殺威脅、個人資訊或其他您認為不適合在%{organization_name} 上的內容。
|
82
|
-
offensive: 包含種族主義、性別歧視、辱罵、人身攻擊、死亡威脅、自殺要求或任何形式的仇恨言論
|
83
|
-
spam: 包含點閱率誘導、廣告、詐騙或自動腳本。
|
84
|
-
title: 檢舉不當內容
|
85
|
-
show_replies:
|
86
|
-
other: 顯示 %{count} 則回覆
|
87
|
-
single_comment_link_title: 取得連結
|
88
|
-
comment_order_selector:
|
89
|
-
order:
|
90
|
-
best_rated: 最佳評分
|
91
|
-
most_discussed: 最多討論
|
92
|
-
older: 較早的
|
93
|
-
recent: 最近
|
94
|
-
title: '排序方式:'
|
95
|
-
comment_thread:
|
96
|
-
title: 與 %{authorName} 的對話
|
97
|
-
comments:
|
98
|
-
blocked_comments_for_unauthorized_user_warning: 目前需要驗證您的身份才能發表評論,但您可以閱讀先前的評論。
|
99
|
-
blocked_comments_for_user_warning: 目前您無法發表評論,但您可以閱讀先前的評論。
|
100
|
-
blocked_comments_warning: 目前無法發表評論,但您可以閱讀先前的評論。
|
101
|
-
comment_details_title: 評論詳細資料
|
102
|
-
loading: 正在加載評論…
|
103
|
-
single_comment_warning: <a href="%{url}">查看所有評論</a>
|
104
|
-
single_comment_warning_title: 您正在查看單一評論
|
105
|
-
title:
|
106
|
-
other: "%{count} 則評論"
|
107
|
-
down_vote_button:
|
108
|
-
text: 我不同意此評論
|
109
|
-
edit_comment_modal_form:
|
110
|
-
close: 關閉
|
111
|
-
form:
|
112
|
-
body:
|
113
|
-
label: 評論
|
114
|
-
placeholder: 你有什麼想法?
|
115
|
-
submit: 發送
|
116
|
-
title: 編輯您的評論
|
117
|
-
up_vote_button:
|
118
|
-
text: 我同意此評論
|
119
|
-
events:
|
120
|
-
comments:
|
121
|
-
comment_by_followed_user:
|
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
|
-
comment_by_followed_user_group:
|
127
|
-
email_intro: '%{author_name} 群組在%{resource_title} 中留下了一則評論。您可以在此頁面中閱讀它:'
|
128
|
-
email_outro: 您收到此通知是因為您正在關注%{author_name}。您可以從其個人資料頁面取消關注此群組。
|
129
|
-
email_subject: '%{author_name} 在%{resource_title} 發表了一則新的評論'
|
130
|
-
notification_title: 在<a href="%{resource_path}">%{resource_title}</a>中,<a href="%{author_path}">%{author_name} %{author_nickname}</a>有了一個新的評論。
|
131
|
-
comment_created:
|
132
|
-
email_intro: "%{resource_title} 已被評論。您可以在此頁面中閱讀評論:"
|
133
|
-
email_outro: 您收到此通知是因為您正在關注「%{resource_title}」或其作者。您可以從上面的連結取消關注。
|
134
|
-
email_subject: '%{resource_title}」有新的評論來自 %{author_name}'
|
135
|
-
notification_title: 在 <a href="%{resource_path}">%{resource_title}</a>有新的評論來自 <a href="%{author_path}">%{author_name} %{author_nickname}</a>
|
136
|
-
comment_downvoted:
|
137
|
-
email_intro: 您在「%{resource_title}」的評論已經倒讚。它現在的評分是 %{upvotes} 個讚和 %{downvotes} 個倒讚。
|
138
|
-
email_outro: 您收到此通知是因為您是此評論的作者。
|
139
|
-
email_subject: 您在「%{resource_title}」的評論已經被倒讚。
|
140
|
-
notification_title: 你在「%{resource_title}」的<a href="%{resource_path}">評論</a>已被負評。現在它的評分是 %{upvotes} 個讚和 %{downvotes} 個倒讚。
|
141
|
-
comment_upvoted:
|
142
|
-
email_intro: 你在「%{resource_title}」的評論已收到讚。現在它的評分是 %{upvotes} 個讚和 %{downvotes} 個倒讚。
|
143
|
-
email_outro: 您收到此通知是因為您是此評論的作者。
|
144
|
-
email_subject: 你在 "%{resource_title}" 中的評論已經收到讚。
|
145
|
-
notification_title: 你在 "<a href="%{resource_path}">resource_title</a>" 中的評論已經收到讚,現在它總共有 %{upvotes} 個讚和 %{downvotes} 個倒讚。
|
146
|
-
reply_created:
|
147
|
-
email_intro: "%{author_name} 已回覆你在%{resource_title} 中的評論。你可以在此頁面上閱讀:"
|
148
|
-
email_outro: 你收到此通知是因為有人回覆了你的評論。
|
149
|
-
email_subject: "%{author_name} 回覆了你在 %{resource_title} 中的評論。"
|
150
|
-
notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 中回覆了你的評論。
|
151
|
-
user_group_mentioned:
|
152
|
-
email_intro: 你所屬的群組被提及了
|
153
|
-
email_outro: 你收到了這個通知,因為你是 %{group_name} 的成員,而該小組在 %{resource_title} 中被提及。
|
154
|
-
email_subject: 你作為 %{group_name} 的成員在 %{resource_title} 中被提及
|
155
|
-
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>中提及
|
156
|
-
user_mentioned:
|
157
|
-
email_intro: 您已被提及
|
158
|
-
email_outro: 您收到了此通知,因為您被提及在 %{resource_title} 中。
|
159
|
-
email_subject: 您被提及在 %{resource_title} 中
|
160
|
-
notification_title: 您被 <a href="%{author_path}">%{author_name} %{author_nickname}</a> 在 <a href="%{resource_path}">%{resource_title}</a> 中提及。
|
161
|
-
metrics:
|
162
|
-
comments:
|
163
|
-
description: 參與者產生的評論數量
|
164
|
-
object: 評論
|
165
|
-
title: 評論
|
166
|
-
errors:
|
167
|
-
messages:
|
168
|
-
cannot_have_comments: 無法留言
|
@@ -33,7 +33,7 @@ module Decidim
|
|
33
33
|
|
34
34
|
def root_commentable_url
|
35
35
|
@root_commentable_url ||= if resource.root_commentable.respond_to?(:polymorphic_resource_url)
|
36
|
-
resource.root_commentable.polymorphic_resource_url
|
36
|
+
resource.root_commentable.polymorphic_resource_url
|
37
37
|
else
|
38
38
|
ResourceLocatorPresenter.new(resource.root_commentable).url
|
39
39
|
end
|
@@ -38,7 +38,7 @@ module Decidim
|
|
38
38
|
|
39
39
|
def root_commentable_url
|
40
40
|
@root_commentable_url ||= if resource.comment.root_commentable.respond_to?(:polymorphic_resource_url)
|
41
|
-
resource.comment.root_commentable.polymorphic_resource_url
|
41
|
+
resource.comment.root_commentable.polymorphic_resource_url
|
42
42
|
else
|
43
43
|
ResourceLocatorPresenter.new(resource.comment.root_commentable).url
|
44
44
|
end
|
@@ -13,8 +13,6 @@ module Decidim
|
|
13
13
|
def comments_for_resource(resource_class, component)
|
14
14
|
Comment
|
15
15
|
.where(decidim_root_commentable_id: resource_class.where(component: component))
|
16
|
-
.not_deleted
|
17
|
-
.not_hidden
|
18
16
|
.where(decidim_root_commentable_type: resource_class.to_s)
|
19
17
|
end
|
20
18
|
|
@@ -50,18 +50,6 @@ module Decidim
|
|
50
50
|
|
51
51
|
"<p>#{text}</p>"
|
52
52
|
end
|
53
|
-
|
54
|
-
# Prevents underscores to be replaced with <em> tags in comments, such as
|
55
|
-
# https://github.com/org/module_with_underscores or within words such as
|
56
|
-
# "Look for comment_maximum_length in the code". The `no_intra_emphasis`
|
57
|
-
# option for Redcarpet does not apparently work for this renderer.
|
58
|
-
#
|
59
|
-
# Related issues:
|
60
|
-
# https://github.com/vmg/redcarpet/issues/402
|
61
|
-
# https://github.com/vmg/redcarpet/issues/427
|
62
|
-
def emphasis(text)
|
63
|
-
"_#{text}_"
|
64
|
-
end
|
65
53
|
end
|
66
54
|
end
|
67
55
|
end
|
@@ -5,7 +5,7 @@ require "spec_helper"
|
|
5
5
|
shared_examples_for "a translated comment event" do
|
6
6
|
describe "translated notifications" do
|
7
7
|
let(:en_body) { "This is Sparta!" }
|
8
|
-
let(:body) { {
|
8
|
+
let(:body) { { en: en_body, machine_translations: { ca: "C'est Sparta!" } } }
|
9
9
|
let(:participatory_process) { create :participatory_process, organization: organization }
|
10
10
|
let(:component) { create(:component, participatory_space: participatory_process) }
|
11
11
|
let(:commentable) { create(:dummy_resource, component: component) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.27.0.rc1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.27.0.rc1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: redcarpet
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,28 +52,28 @@ dependencies:
|
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.27.0.rc1
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.
|
62
|
+
version: 0.27.0.rc1
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: decidim-dev
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 0.27.0.rc1
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.27.0.rc1
|
77
77
|
description: Pluggable comments system for some components.
|
78
78
|
email:
|
79
79
|
- josepjaume@gmail.com
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- app/cells/decidim/comments/comment_thread_cell.rb
|
108
108
|
- app/cells/decidim/comments/comments/add_comment.erb
|
109
109
|
- app/cells/decidim/comments/comments/blocked_comments_warning.erb
|
110
|
+
- app/cells/decidim/comments/comments/comments_loading.erb
|
110
111
|
- app/cells/decidim/comments/comments/order_control.erb
|
111
112
|
- app/cells/decidim/comments/comments/show.erb
|
112
113
|
- app/cells/decidim/comments/comments/single_comment_warning.erb
|
@@ -166,7 +167,6 @@ files:
|
|
166
167
|
- app/views/decidim/comments/votes/create.js.erb
|
167
168
|
- app/views/decidim/comments/votes/error.js.erb
|
168
169
|
- config/assets.rb
|
169
|
-
- config/environment.rb
|
170
170
|
- config/locales/am-ET.yml
|
171
171
|
- config/locales/ar-SA.yml
|
172
172
|
- config/locales/ar.yml
|
@@ -189,7 +189,6 @@ files:
|
|
189
189
|
- config/locales/et-EE.yml
|
190
190
|
- config/locales/et.yml
|
191
191
|
- config/locales/eu.yml
|
192
|
-
- config/locales/fa-IR.yml
|
193
192
|
- config/locales/fi-pl.yml
|
194
193
|
- config/locales/fi-plain.yml
|
195
194
|
- config/locales/fi.yml
|
@@ -198,7 +197,6 @@ files:
|
|
198
197
|
- config/locales/fr.yml
|
199
198
|
- config/locales/ga-IE.yml
|
200
199
|
- config/locales/gl.yml
|
201
|
-
- config/locales/gn-PY.yml
|
202
200
|
- config/locales/hr-HR.yml
|
203
201
|
- config/locales/hr.yml
|
204
202
|
- config/locales/hu.yml
|
@@ -207,13 +205,10 @@ files:
|
|
207
205
|
- config/locales/is.yml
|
208
206
|
- config/locales/it.yml
|
209
207
|
- config/locales/ja.yml
|
210
|
-
- config/locales/ka-GE.yml
|
211
|
-
- config/locales/kaa.yml
|
212
208
|
- config/locales/ko-KR.yml
|
213
209
|
- config/locales/ko.yml
|
214
210
|
- config/locales/lb-LU.yml
|
215
211
|
- config/locales/lb.yml
|
216
|
-
- config/locales/lo-LA.yml
|
217
212
|
- config/locales/lt-LT.yml
|
218
213
|
- config/locales/lt.yml
|
219
214
|
- config/locales/lv.yml
|
@@ -221,7 +216,6 @@ files:
|
|
221
216
|
- config/locales/mt.yml
|
222
217
|
- config/locales/nl.yml
|
223
218
|
- config/locales/no.yml
|
224
|
-
- config/locales/oc-FR.yml
|
225
219
|
- config/locales/om-ET.yml
|
226
220
|
- config/locales/pl.yml
|
227
221
|
- config/locales/pt-BR.yml
|
@@ -233,11 +227,9 @@ files:
|
|
233
227
|
- config/locales/sk.yml
|
234
228
|
- config/locales/sl.yml
|
235
229
|
- config/locales/so-SO.yml
|
236
|
-
- config/locales/sq-AL.yml
|
237
230
|
- config/locales/sr-CS.yml
|
238
231
|
- config/locales/sv.yml
|
239
232
|
- config/locales/sw-KE.yml
|
240
|
-
- config/locales/th-TH.yml
|
241
233
|
- config/locales/ti-ER.yml
|
242
234
|
- config/locales/tr-TR.yml
|
243
235
|
- config/locales/uk.yml
|
@@ -305,14 +297,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
305
297
|
requirements:
|
306
298
|
- - ">="
|
307
299
|
- !ruby/object:Gem::Version
|
308
|
-
version: '
|
300
|
+
version: '3.0'
|
309
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
310
302
|
requirements:
|
311
|
-
- - "
|
303
|
+
- - ">"
|
312
304
|
- !ruby/object:Gem::Version
|
313
|
-
version:
|
305
|
+
version: 1.3.1
|
314
306
|
requirements: []
|
315
|
-
rubygems_version: 3.
|
307
|
+
rubygems_version: 3.2.22
|
316
308
|
signing_key:
|
317
309
|
specification_version: 4
|
318
310
|
summary: Decidim comments module
|
data/config/environment.rb
DELETED
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|
data/config/locales/kaa.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
kaa:
|
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|
data/config/locales/sq-AL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sq:
|
data/config/locales/th-TH.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
th:
|