decidim-comments 0.26.3 → 0.26.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e65e556105c975a512cf38512249fa956e3d3cf26c3e78b5cda7af52b98383e3
4
- data.tar.gz: 03d678132d3530bdbf4ee57633da83cfd245c31e6bac7b1a131baa5ca7466fb6
3
+ metadata.gz: a3adbf8d666c112916e4b0ebe2ffe1c3fe06ac01003fc1c880440dacc217cc0e
4
+ data.tar.gz: f43fbf0243eaac9be33b516fd141435a320d260d6c53f81be9fb3b6df06aea32
5
5
  SHA512:
6
- metadata.gz: 0e9b996fe98034ccf8c532c285b418e13fbd83ddb5be3e6f6000215d298138442c43f4e0461b47dbcb27bfad2e64cb63b330a08583baa915578e1d5908224120
7
- data.tar.gz: 62c58afe19b0d2afc75f1d0771cc5d484c250ea94e3dd242a8a6897f0f8dd0c92b654972311a0e58e12e2c2a75c9e267d40a7bb85c612eab964ee77ba37f85b3
6
+ metadata.gz: 750aac563961013cc21d9cfe281d48b467ee72302b1b8e790feb09ac6ec16de01693dd0bf6939a4013af5153e2cdd7a4b9fd55fac7224653355626df1f5453b2
7
+ data.tar.gz: b3ef5198c3a5a8de79f14e5503646b8d61b63e070af9bc0f53b05661fd4e4dbe54e9e0e736ed227c53adbcbdfcdeb181c56d82cd10b23fbfbb99427b43777740
@@ -53,8 +53,6 @@ module Decidim
53
53
  validate :body_length
54
54
  validate :commentable_can_have_comments
55
55
 
56
- delegate :organization, to: :commentable
57
-
58
56
  scope :not_deleted, -> { where(deleted_at: nil) }
59
57
 
60
58
  translatable_fields :body
@@ -78,6 +76,10 @@ module Decidim
78
76
  where(alignment: -1)
79
77
  end
80
78
 
79
+ def organization
80
+ commentable&.organization || participatory_space&.organization
81
+ end
82
+
81
83
  def visible?
82
84
  participatory_space.try(:visible?) && component.try(:published?)
83
85
  end
@@ -128,6 +130,8 @@ module Decidim
128
130
 
129
131
  # Public: Overrides the `reported_content_url` Reportable concern method.
130
132
  def reported_content_url
133
+ return unless root_commentable
134
+
131
135
  url_params = { anchor: "comment_#{id}" }
132
136
 
133
137
  if root_commentable&.respond_to?(:polymorphic_resource_url)
@@ -3,14 +3,15 @@ eu:
3
3
  models:
4
4
  decidim/comments/comment_by_followed_user_event: Iruzkina
5
5
  decidim/comments/comment_created_event: Iruzkina
6
+ decidim/comments/comment_upvoted_event: Iruzkina bozkatu da
6
7
  decidim/comments/reply_created_event: Iruzkinaren erantzuna
7
- decidim/comments/user_group_mentioned_event: Aipatu
8
- decidim/comments/user_mentioned_event: Aipatu
8
+ decidim/comments/user_group_mentioned_event: Aipamena
9
+ decidim/comments/user_mentioned_event: Aipamena
9
10
  activerecord:
10
11
  models:
11
12
  decidim/comments/comment:
12
13
  one: Iruzkina
13
- other: Oharrak
14
+ other: Iruzkinak
14
15
  decidim/comments/comment_vote:
15
16
  one: Bozkatu
16
17
  other: Botoak
@@ -20,7 +21,7 @@ eu:
20
21
  shared:
21
22
  availability_fields:
22
23
  enabled: Iruzkinak gaituta
23
- end_time: Iruzkinak noiz arte aktibatuta
24
+ end_time: Iruzkinak gaituta daude
24
25
  start_time: Iruzkinak noiztik aktibatuta
25
26
  comments:
26
27
  create:
@@ -36,7 +37,7 @@ eu:
36
37
  view: Bistaratu
37
38
  votes:
38
39
  create:
39
- error: Erroreak gertatu dira iruzkina bozkatzean.
40
+ error: Arazo bat dago iruzkina bozkatzeko.
40
41
  components:
41
42
  add_comment_form:
42
43
  account_message: <a href="%{sign_in_url}">Hasi saioa zure kontuarekin</a> o <a href="%{sign_up_url}">erregistratu</a> zure iruzkina txertatzeko.
@@ -66,10 +67,11 @@ eu:
66
67
  confirm_destroy: Ziur zaude iruzkin hau ezabatu nahi duzula?
67
68
  delete: Ezabatu
68
69
  deleted_at: Iruzkina ezabatu da data honetan %{date}
69
- deleted_user: Erabiltzaile ezabatua
70
+ deleted_user: Parte hartzaile ezabatua
70
71
  edit: Editatu
71
72
  edited: Editatuta
72
73
  hide_replies: Ezkutatu erantzunak
74
+ moderated_at: Iruzkina %{date}-an moderatu egin da
73
75
  reply: Erantzuna
74
76
  report:
75
77
  action: Salatu
@@ -83,7 +85,7 @@ eu:
83
85
  spam: Bertan badago clickbait-ik, publizitaterik edo iruzurrik.
84
86
  title: Jakinarazi eduki desegokia
85
87
  show_replies: Erakutsi %{replies_count} erantzun
86
- single_comment_link_title: Lortu lotura
88
+ single_comment_link_title: Lortu esteka
87
89
  comment_order_selector:
88
90
  order:
89
91
  best_rated: Balorazio hoberenak
@@ -101,6 +103,9 @@ eu:
101
103
  loading: Iruzkinak kargatzen...
102
104
  single_comment_warning: <a href="%{url}">k erakusten ditu iruzkin guztiak</a>
103
105
  single_comment_warning_title: Iruzkin bakar bat ikusten ari zara
106
+ title:
107
+ one: "%{count} iruzkin"
108
+ other: "%{count} iruzkin"
104
109
  down_vote_button:
105
110
  text: Ez nago ados iruzkin honekin
106
111
  edit_comment_modal_form:
@@ -116,15 +121,15 @@ eu:
116
121
  events:
117
122
  comments:
118
123
  comment_by_followed_user:
119
- email_intro: "%{author_name} iruzkin bat utzi du %{resource_title}helbidean. Orri honetan irakur dezakezu:"
120
- email_outro: Jakinarazpena jaso duzu %{author_name}jarraituz gero. Erabiltzaile hau bere profileko orrialdetik jarrai dezakezu.
124
+ email_intro: "%{author_name} egileak iruzkin bat utzi du %{resource_title} helbidean. Orri honetan irakur dezakezu:"
125
+ email_outro: Jakinarazpen hau jaso duzu %{author_name} erabiltzailea jarraitzen duzulako. Erabiltzaile horri profil-orrialdetik ez jarraitu.
121
126
  email_subject: '%{author_name} %{resource_title} iruzkin berri bat dago'
122
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a> </a> iruzkin berri bat dago.
127
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a>-en iruzkin berri bat dagon <a href="%{resource_path}">%{resource_title}</a>-an.
123
128
  comment_by_followed_user_group:
124
129
  email_intro: '%{author_name} k iruzkin bat utzi du hemen %{resource_title}. Orrialde honetan irakur dezakezu:'
125
130
  email_outro: Jakinarazpena jaso duzu "%{author_name}" jarraitzen ari zarelako. Jarraitzeari utzi ahal diozu bere perfileko orrialdetik.
126
- email_subject: '%{author_name} %{resource_title} iruzkin berri bat dago'
127
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a> </a> iruzkin berri bat dago.
131
+ email_subject: '%{author_name} egileak iruzkin berri bat utzi du %{resource_title}-an'
132
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a>egileak iruzkin berri bat utzi du <a href="%{resource_path}">%{resource_title}</a>-an.
128
133
  comment_created:
129
134
  email_intro: "%{resource_title} iruzkindu da. Orri honetan iruzkina irakur dezakezu:"
130
135
  email_outro: Jakinarazpen hau jaso duzu "%{resource_title}" edo bere egilea jarraitzen duzulako. Aurreko esteka estekan jarrai dezakezu.
@@ -134,26 +139,26 @@ eu:
134
139
  email_intro: Zure iruzkina hemen "%{resource_title}" negatiboki bozkatu da. Orain %{upvotes} boto positibo eta %{downvotes} boto negatibo dituzu guztira.
135
140
  email_outro: Jakinarazpen hau jaso duzu iruzkin honen egilea zarelako.
136
141
  email_subject: Zure iruzkina hemen "%{resource_title}" negatiboki bozkatu da.
137
- notification_title: Zure iruzkina <a href="%{resource_path}">comentario</a> hemen "%{resource_title}" negatiboki bozkatu da. Orain guztira %{upvotes} boto positibo eta %{downvotes} boto negatibo dituzu.
142
+ notification_title: Zure <a href="%{resource_path}">iruzkina</a> hemen "%{resource_title}" negatiboki bozkatu da. Orain guztira %{upvotes} boto positibo eta %{downvotes} boto negatibo dituzu.
138
143
  comment_upvoted:
139
144
  email_intro: Zure iruzkina hemen "%{resource_title}" positiboki bozkatu da. Orain guztira %{upvotes} boto positibo eta %{downvotes} boto negatibo dituzu.
140
145
  email_outro: Jakinarazpen hau jaso duzu iruzkin honen egilea zarelako.
141
146
  email_subject: Zure iruzkina hemen "%{resource_title}" positiboki bozkatu da.
142
- notification_title: Zure iruzkina hemen <a href="%{resource_path}">comentario</a> en "%{resource_title}" positiboki bozkatu da. Orain guztira %{upvotes} botos positibo eta %{downvotes} boto negatibo dituzu.
147
+ notification_title: Zure <a href="%{resource_path}">iruzkina </a> "%{resource_title}"-an positiboki bozkatu da. Orain guztira %{upvotes} botos positibo eta %{downvotes} boto negatibo dituzu.
143
148
  reply_created:
144
149
  email_intro: "%{author_name} zure iruzkina erantzun du %{resource_title}zenbakian. Orri honetan irakur dezakezu:"
145
150
  email_outro: Jakinarazpen hau jaso duzu zure iruzkina erantzun delako.
146
- email_subject: "%{author_name} zure iruzkina erantzun du %{resource_title} zenbakian"
151
+ email_subject: "%{author_name}-k zure iruzkina erantzun du %{resource_title} zenbakian"
147
152
  notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> -k zure iruzkinari erantzun dio <a href="%{resource_path}">%{resource_title}</a>
148
153
  user_group_mentioned:
149
- email_intro: Zu barne zauden talde bat aipatu da
150
- email_outro: Jakinarazpen hau jaso duzu hemen %{resource_title} aipatu den %{group_name} taldearen kidea zarelako.
154
+ email_intro: Zure talde bat aipatu dute
155
+ email_outro: '%{resource_title}-an aipatutako %{group_name} taldeko kidea zarelako jaso duzu jakinarazpen hau.'
151
156
  email_subject: Hemen %{resource_title} aipatu zaituzte %{group_name} taldearen kide gisa
152
157
  notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> k aipatu zaitu hemen <a href="%{resource_path}">%{resource_title}</a> <a href="%{group_path}">%{group_name} %{group_nickname}</a> taldearen kide gisa
153
158
  user_mentioned:
154
- email_intro: Esan zaizu
159
+ email_intro: Aipatu zaituzte
155
160
  email_outro: Jakinarazpena jaso duzu %{resource_title} delakoan aipatu duzulako.
156
- email_subject: '%{resource_title} aipatu zaituzte'
161
+ email_subject: '%{resource_title} delakoan aipatu zaituzte'
157
162
  notification_title: <a href="%{resource_path}">%{resource_title}</a> <a href="%{author_path}">%{author_name} %{author_nickname}</a> bidez aipatu zaituzte.
158
163
  metrics:
159
164
  comments:
@@ -0,0 +1 @@
1
+ gn:
@@ -0,0 +1 @@
1
+ ka:
@@ -0,0 +1 @@
1
+ lo:
@@ -20,6 +20,10 @@ pl:
20
20
  other: Głosy
21
21
  decidim:
22
22
  comments:
23
+ admin:
24
+ shared:
25
+ availability_fields:
26
+ start_time: Komentowanie możliwe od
23
27
  comments:
24
28
  create:
25
29
  error: Wystąpił błąd podczas tworzenia komentarza.
@@ -3,6 +3,7 @@ ro:
3
3
  models:
4
4
  decidim/comments/comment_by_followed_user_event: Comentariu
5
5
  decidim/comments/comment_created_event: Comentează
6
+ decidim/comments/comment_upvoted_event: Comentariu votat
6
7
  decidim/comments/reply_created_event: Răspuns la comentariu
7
8
  decidim/comments/user_group_mentioned_event: Menționează
8
9
  decidim/comments/user_mentioned_event: Menționează
@@ -72,6 +73,7 @@ ro:
72
73
  edit: Editează
73
74
  edited: Editat
74
75
  hide_replies: Ascunde răspunsurile
76
+ moderated_at: Comentariu moderat pe %{date}
75
77
  reply: Răspunde
76
78
  report:
77
79
  action: Raportează
@@ -3,6 +3,7 @@ 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/comment_upvoted_event: Kommentar uppröstad
6
7
  decidim/comments/reply_created_event: Svar till en kommentar
7
8
  decidim/comments/user_group_mentioned_event: Nämn
8
9
  decidim/comments/user_mentioned_event: Nämn
@@ -70,6 +71,7 @@ sv:
70
71
  edit: Redigera
71
72
  edited: Redigerad
72
73
  hide_replies: Göm svar
74
+ moderated_at: Kommentar modererad den %{date}
73
75
  reply: Svara
74
76
  report:
75
77
  action: Rapportera
@@ -50,6 +50,18 @@ 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
53
65
  end
54
66
  end
55
67
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.26.3"
7
+ "0.26.5"
8
8
  end
9
9
  end
10
10
  end
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.26.3
4
+ version: 0.26.5
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: 2022-09-29 00:00:00.000000000 Z
13
+ date: 2023-02-13 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.26.3
21
+ version: 0.26.5
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.26.3
28
+ version: 0.26.5
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.26.3
55
+ version: 0.26.5
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.26.3
62
+ version: 0.26.5
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.26.3
69
+ version: 0.26.5
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.26.3
76
+ version: 0.26.5
77
77
  description: Pluggable comments system for some components.
78
78
  email:
79
79
  - josepjaume@gmail.com
@@ -196,6 +196,7 @@ files:
196
196
  - config/locales/fr.yml
197
197
  - config/locales/ga-IE.yml
198
198
  - config/locales/gl.yml
199
+ - config/locales/gn-PY.yml
199
200
  - config/locales/hr-HR.yml
200
201
  - config/locales/hr.yml
201
202
  - config/locales/hu.yml
@@ -204,10 +205,12 @@ files:
204
205
  - config/locales/is.yml
205
206
  - config/locales/it.yml
206
207
  - config/locales/ja.yml
208
+ - config/locales/ka-GE.yml
207
209
  - config/locales/ko-KR.yml
208
210
  - config/locales/ko.yml
209
211
  - config/locales/lb-LU.yml
210
212
  - config/locales/lb.yml
213
+ - config/locales/lo-LA.yml
211
214
  - config/locales/lt-LT.yml
212
215
  - config/locales/lt.yml
213
216
  - config/locales/lv.yml