decidim-comments 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +7 -0
  3. data/app/assets/javascripts/decidim/comments/bundle.js +115 -111
  4. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  5. data/app/commands/decidim/comments/create_comment.rb +24 -2
  6. data/app/events/decidim/comments/comment_created_event.rb +13 -30
  7. data/app/events/decidim/comments/user_mentioned_event.rb +39 -0
  8. data/app/frontend/application/apollo_client.ts +10 -6
  9. data/app/frontend/application/application.component.test.tsx +0 -13
  10. data/app/frontend/application/application.component.tsx +0 -2
  11. data/app/frontend/comments/add_comment_form.component.tsx +23 -21
  12. data/app/frontend/comments/comment.component.test.tsx +9 -4
  13. data/app/frontend/comments/comment.component.tsx +80 -22
  14. data/app/frontend/comments/comments.component.test.tsx +1 -0
  15. data/app/frontend/comments/comments.component.tsx +2 -2
  16. data/app/frontend/comments/down_vote_button.component.tsx +48 -50
  17. data/app/frontend/comments/up_vote_button.component.tsx +13 -11
  18. data/app/frontend/fragments/comment_data.fragment.graphql +5 -2
  19. data/app/frontend/queries/comments.query.graphql +2 -0
  20. data/app/frontend/support/generate_comments_data.ts +10 -4
  21. data/app/frontend/support/generate_user_data.ts +2 -1
  22. data/app/frontend/support/schema.ts +419 -216
  23. data/app/models/decidim/comments/comment.rb +11 -0
  24. data/app/queries/decidim/comments/sorted_comments.rb +2 -2
  25. data/app/types/decidim/comments/commentable_interface.rb +10 -1
  26. data/config/locales/ca.yml +20 -16
  27. data/config/locales/en.yml +18 -13
  28. data/config/locales/es.yml +22 -18
  29. data/config/locales/eu.yml +18 -13
  30. data/config/locales/fi.yml +19 -14
  31. data/config/locales/fr.yml +18 -13
  32. data/config/locales/gl.yml +75 -0
  33. data/config/locales/it.yml +18 -13
  34. data/config/locales/nl.yml +18 -13
  35. data/config/locales/pl.yml +18 -13
  36. data/config/locales/pt-BR.yml +75 -0
  37. data/config/locales/pt.yml +18 -13
  38. data/config/locales/ru.yml +1 -14
  39. data/config/locales/sv.yml +75 -0
  40. data/config/locales/uk.yml +0 -13
  41. data/lib/decidim/comments/api/comment_type.rb +5 -1
  42. data/lib/decidim/comments/commentable.rb +2 -1
  43. data/lib/decidim/comments/version.rb +1 -1
  44. metadata +15 -11
@@ -9,6 +9,7 @@ module Decidim
9
9
  include Decidim::Reportable
10
10
  include Decidim::Authorable
11
11
  include Decidim::Comments::Commentable
12
+ include Decidim::FriendlyDates
12
13
 
13
14
  # Limit the max depth of a comment tree. If C is a comment and R is a reply:
14
15
  # C (depth 0)
@@ -62,6 +63,11 @@ module Decidim
62
63
  ResourceLocatorPresenter.new(root_commentable).url(anchor: "comment_#{id}")
63
64
  end
64
65
 
66
+ # Public: Returns the comment message ready to display (it is expected to include HTML)
67
+ def formatted_body
68
+ @formatted_body ||= Decidim::ContentProcessor.render(sanitized_body)
69
+ end
70
+
65
71
  private
66
72
 
67
73
  # Private: Check if commentable can have comments and if not adds
@@ -74,6 +80,11 @@ module Decidim
74
80
  def compute_depth
75
81
  self.depth = commentable.depth + 1 if commentable.respond_to?(:depth)
76
82
  end
83
+
84
+ # Private: Returns the comment body sanitized, stripping HTML tags
85
+ def sanitized_body
86
+ Rails::Html::Sanitizer.full_sanitizer.new.sanitize(body)
87
+ end
77
88
  end
78
89
  end
79
90
  end
@@ -74,8 +74,8 @@ module Decidim
74
74
  end
75
75
 
76
76
  def count_replies(comment)
77
- if comment.comments.size.positive?
78
- comment.comments.size + comment.comments.sum { |reply| count_replies(reply) }
77
+ if comment.comment_threads.size.positive?
78
+ comment.comment_threads.size + comment.comment_threads.sum { |reply| count_replies(reply) }
79
79
  else
80
80
  0
81
81
  end
@@ -35,9 +35,18 @@ module Decidim
35
35
  }
36
36
  end
37
37
 
38
+ field :totalCommentsCount do
39
+ type !types.Int
40
+ description "The number of comments in all levels this resource holds"
41
+
42
+ resolve lambda { |obj, _args, _ctx|
43
+ obj.comments.count
44
+ }
45
+ end
46
+
38
47
  field :hasComments, !types.Boolean, "Check if the commentable has comments" do
39
48
  resolve lambda { |obj, _args, _ctx|
40
- obj.comments.size.positive?
49
+ obj.comment_threads.size.positive?
41
50
  }
42
51
  end
43
52
  end
@@ -1,19 +1,6 @@
1
- ---
2
1
  ca:
3
2
  decidim:
4
3
  comments:
5
- events:
6
- comment_created:
7
- comment:
8
- email_intro: 'S''ha comentat "%{resource_title}". Pots llegir-lo en aquesta pàgina:'
9
- email_outro: Has rebut aquesta notificació perquè que segueixes "%{resource_title}". El pots deixar de seguir al link anterior.
10
- email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
11
- notification_title: Hi ha un nou comentari de %{author_name} a <a href="%{resource_path}">%{resource_title}</a>
12
- reply:
13
- email_intro: S'ha comentat "%{resource_title}"
14
- email_outro: Has rebut aquesta notificació perquè que segueixes "%{resource_title}". El pots deixar de seguir al link anterior.
15
- email_subject: Hi ha una nova resposta del vostre comentari de %{author_name} a <a href="%{resource_url}">%{resource_title}</a>
16
- notification_title: Hi ha una nova resposta del teu comentari de %{author_name} a <a href="%{resource_path}">%{resource_title}</a>
17
4
  votes:
18
5
  create:
19
6
  error: Hi ha hagut errors en votar el comentari.
@@ -30,8 +17,8 @@ ca:
30
17
  label: Comentar com a
31
18
  opinion:
32
19
  neutral: Neutral
33
- remaining_characters: Queden %{count} caràcters
34
- remaining_characters_1: Queda %{count} caràcter
20
+ remaining_characters: "Queden %{count} caràcters"
21
+ remaining_characters_1: "Queda %{count} caràcter"
35
22
  title: Deixa el teu comentari
36
23
  comment:
37
24
  alignment:
@@ -50,7 +37,6 @@ ca:
50
37
  offensive: Conté racisme, sexisme, insults, atacs personals, amenaces de mort, peticions de suïcidi o qualsevol forma de discurs d'odi.
51
38
  spam: Conté "clickbait", publicitat o estafes.
52
39
  title: Denuncia un problema
53
- verified_user_group: Organització verificada
54
40
  comment_order_selector:
55
41
  order:
56
42
  best_rated: Més ben valorats
@@ -66,6 +52,24 @@ ca:
66
52
  title: "%{count} comentaris"
67
53
  featured_comment:
68
54
  title: Comentari destacat
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: 'S''ha comentat "%{resource_title}". Podeu llegir el comentari d''aquesta pàgina:'
60
+ email_outro: Has rebut aquesta notificació perquè que segueixes "%{resource_title}" or el seu autor/a. El pots deixar de seguir al link anterior.
61
+ email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
62
+ notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>
63
+ reply:
64
+ email_intro: S'ha comentat "%{resource_title}"
65
+ email_outro: Has rebut aquesta notificació perquè que segueixes "%{resource_title}" o el seu autor/a. El pots deixar de seguir al link anterior.
66
+ email_subject: Hi ha una nova resposta del teu comentari d'en/na %{author_name} a <a href="%{resource_url}">%{resource_title}</a>
67
+ notification_title: Hi ha una nova resposta al teu comentari d'en/na <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>
68
+ user_mentioned:
69
+ email_intro: Has estat esmentat
70
+ email_outro: Has rebut aquesta notificació perquè has estat esmentat a "%{resource_title}".
71
+ email_subject: Has estat esmentat a %{resource_title}
72
+ notification_title: Has estat esmentat a <a href="%{resource_path}">%{resource_title}</a> per <a href="%{author_path}">%{author_name} %{author_nickname}</a>
69
73
  errors:
70
74
  messages:
71
75
  cannot_have_comments: no pot tenir comentaris
@@ -2,18 +2,6 @@
2
2
  en:
3
3
  decidim:
4
4
  comments:
5
- events:
6
- comment_created:
7
- comment:
8
- email_intro: '"%{resource_title}" has been commented. You can read the comment in this page:'
9
- email_outro: You have received this notification because you are following "%{resource_title}". You can unfollow it from the previous link.
10
- email_subject: There is a new comment from %{author_name} in %{resource_title}
11
- notification_title: There is a new comment from %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
12
- reply:
13
- email_intro: The "%{resource_title}" has been commented
14
- email_outro: You have received this notification because you are following "%{resource_title}". You can unfollow it from the previous link.
15
- email_subject: There is a new reply of your comment from %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
16
- notification_title: There is a new reply of your comment from %{author_name} in <a href="%{resource_path}">%{resource_title}</a>
17
5
  votes:
18
6
  create:
19
7
  error: There's been errors when voting the comment.
@@ -50,7 +38,6 @@ en:
50
38
  offensive: Contains racism, sexism, slurs, personal attacks, death threats, suicide requests or any form of hate speech.
51
39
  spam: Contains clickbait, advertising, scams or script bots.
52
40
  title: Report a problem
53
- verified_user_group: Verified organization
54
41
  comment_order_selector:
55
42
  order:
56
43
  best_rated: Best rated
@@ -66,6 +53,24 @@ en:
66
53
  title: "%{count} comments"
67
54
  featured_comment:
68
55
  title: Featured comment
56
+ events:
57
+ comments:
58
+ comment_created:
59
+ comment:
60
+ email_intro: '"%{resource_title}" has been commented. You can read the comment in this page:'
61
+ email_outro: You have received this notification because you are following "%{resource_title}" or its author. You can unfollow it from the previous link.
62
+ email_subject: There is a new comment from %{author_name} in %{resource_title}
63
+ notification_title: There is a new comment from <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
64
+ reply:
65
+ email_intro: The "%{resource_title}" has been commented
66
+ email_outro: You have received this notification because you are following "%{resource_title}" or its author. You can unfollow it from the previous link.
67
+ email_subject: There is a new reply of your comment from %{author_name} in <a href="%{resource_url}">%{resource_title}</a>
68
+ notification_title: There is a new reply of your comment from <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
69
+ user_mentioned:
70
+ email_intro: You have been mentioned
71
+ email_outro: You have received this notification because you have been mentioned in "%{resource_title}".
72
+ email_subject: You have been mentioned in %{resource_title}
73
+ notification_title: You have been mentioned in <a href="%{resource_path}">%{resource_title}</a> by <a href="%{author_path}">%{author_name} %{author_nickname}</a>
69
74
  errors:
70
75
  messages:
71
76
  cannot_have_comments: can't have comments
@@ -1,19 +1,6 @@
1
- ---
2
1
  es:
3
2
  decidim:
4
3
  comments:
5
- events:
6
- comment_created:
7
- comment:
8
- email_intro: '"%{resource_title}" ha sido comentado. Puedes leer el comentario en esta página:'
9
- email_outro: Has recibido esta notificación porque sigues "%{resource_title}". Puedes dejar de seguirlo en el enlace anterior.
10
- email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
11
- notification_title: Hay un nuevo comentario de %{author_name} en <a href="%{resource_path}">%{resource_title}</a>
12
- reply:
13
- email_intro: Se ha comentado en "%{resource_title}"
14
- email_outro: Has recibido esta notificación porque sigues "%{resource_title}". Puedes dejar de seguirlo en el enlace anterior.
15
- email_subject: Hay una nueva respuesta a tu comentario de %{author_name} en <a href="%{resource_url}">%{resource_title}</a>
16
- notification_title: Hay una nueva respuesta a su comentario de %{author_name} en <a href="%{resource_path}">%{resource_title}</a>
17
4
  votes:
18
5
  create:
19
6
  error: Ha habido errores al votar el comentario.
@@ -23,15 +10,15 @@ es:
23
10
  form:
24
11
  body:
25
12
  label: Comentario
26
- placeholder: "¿Qué piensas sobre esto?"
13
+ placeholder: '¿Qué piensas sobre esto?'
27
14
  form_error: El texto es necesario y no puede ser más de caracteres %{length}.
28
15
  submit: Enviar
29
16
  user_group_id:
30
17
  label: Comentar como
31
18
  opinion:
32
19
  neutral: Neutral
33
- remaining_characters: Quedan %{count} caracteres
34
- remaining_characters_1: Queda %{count} carácter
20
+ remaining_characters: "Quedan %{count} caracteres"
21
+ remaining_characters_1: "Queda %{count} carácter"
35
22
  title: Deje su comentario
36
23
  comment:
37
24
  alignment:
@@ -43,14 +30,13 @@ es:
43
30
  action: Denunciar
44
31
  already_reported: Este contenido ya fue denunciado y será revisado por un administrador.
45
32
  close: Cerrar
46
- description: "¿Es inapropiado este contenido?"
33
+ description: '¿Es inapropiado este contenido?'
47
34
  details: Comentarios adicionales
48
35
  reasons:
49
36
  does_not_belong: Contiene actividad ilegal, amenazas de suicidio, información personal o cualquier otra cosa que usted piense que no pertenece en %{organization_name}.
50
37
  offensive: Contiene racismo, sexismo, insultos, ataques personales, amenazas de muerte, solicitudes de suicidio o cualquier forma de discurso de odio.
51
38
  spam: Contiene clickbait, publicidad o estafas.
52
39
  title: Denunciar un problema
53
- verified_user_group: Organización verificada
54
40
  comment_order_selector:
55
41
  order:
56
42
  best_rated: Mejor valoración
@@ -66,6 +52,24 @@ es:
66
52
  title: "%{count} comentarios"
67
53
  featured_comment:
68
54
  title: Comentario destacado
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: '"%{resource_title}" ha sido comentado. Puedes leer el comentario en esta página:'
60
+ email_outro: Has recibido esta notificación porque sigues "%{resource_title}". Puedes dejar de seguirlo en el enlace anterior.
61
+ email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
62
+ notification_title: Hay un nuevo comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
63
+ reply:
64
+ email_intro: Se ha comentado en "%{resource_title}"
65
+ email_outro: Has recibido esta notificación porque sigues "%{resource_title}" o su autor/a. Puedes dejar de seguirlo en el enlace anterior.
66
+ email_subject: Hay una nueva respuesta de tu comentario de %{author_name} en <a href="%{resource_url}">%{resource_title}</a>
67
+ notification_title: Hay una nueva respuesta de tu comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
68
+ user_mentioned:
69
+ email_intro: Has sido mencionado
70
+ email_outro: Has recibido esta notificación porque has sido mencionado en "%{resource_title}".
71
+ email_subject: Has sido mencionado en %{resource_title}
72
+ notification_title: Has sido mencionado en <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
69
73
  errors:
70
74
  messages:
71
75
  cannot_have_comments: no puede tener comentarios
@@ -1,18 +1,6 @@
1
1
  eu:
2
2
  decidim:
3
3
  comments:
4
- events:
5
- comment_created:
6
- comment:
7
- email_intro: '"%{resource_title}" iruzkindu da. Orri honetan iruzkina irakur dezakezu:'
8
- email_outro: Jakinarazpena jaso duzu "%{resource_title}" jarraitzen ari zarenagatik. Aurreko esteka estekan jarrai dezakezu.
9
- email_subject: 'Iruzkin berri bat dago, %{author_name} iruzkingilearena, hemen: %{resource_title}'
10
- notification_title: '%{author_name}-en iruzkin berri bat dago <a href="%{resource_path}">%{resource_title}</a>'
11
- reply:
12
- email_intro: '"%{resource_title}" iruzkindu da'
13
- email_outro: Jakinarazpena jaso duzu "%{resource_title}" jarraitzen ari zarenagatik. Aurreko esteka estekan jarrai dezakezu.
14
- email_subject: Zure iruzkina erantzun berria da %{author_name} <a href="%{resource_url}">%{resource_title}</a>-n.
15
- notification_title: Zure iruzkina erantzun berria da %{author_name} <a href="%{resource_path}">%{resource_title}</a>-tik
16
4
  votes:
17
5
  create:
18
6
  error: Erroreak gertatu dira iruzkina bozkatzean.
@@ -49,7 +37,6 @@ eu:
49
37
  offensive: Ertan badago arrazakeriarik, sexismorik, irainik, eraso pertsonalik, heriotza-mehatxurik, suizidio-eskaerarik edo beste edozein eratako gorroto-diskurtsorik.
50
38
  spam: Bertan badago clickbait-ik, publizitaterik edo iruzurrik.
51
39
  title: Salatu arazo bat
52
- verified_user_group: Egiaztatutako erakundea
53
40
  comment_order_selector:
54
41
  order:
55
42
  best_rated: Balorazio hoberenak
@@ -65,6 +52,24 @@ eu:
65
52
  title: "%{count} iruzkin"
66
53
  featured_comment:
67
54
  title: Iruzkin nabarmendua
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: '"%{resource_title}" iruzkindu da. Orri honetan iruzkina irakur dezakezu:'
60
+ email_outro: Jakinarazpena jaso duzu "%{resource_title}" jarraitzen ari zaren edo bere egileak direlako. Aurreko esteka estekan jarrai dezakezu.
61
+ email_subject: '%{author_name} helbidean %{resource_title} iruzkin berri bat dago'
62
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a>-en iruzkin berri bat dago.
63
+ reply:
64
+ email_intro: '"%{resource_title}" iruzkindu da'
65
+ email_outro: Jakinarazpena jaso duzu "%{resource_title}" jarraitzen ari zaren edo bere egileak direlako. Aurreko esteka estekan jarrai dezakezu.
66
+ email_subject: Zure iruzkina erantzun berria da %{author_name} <a href="%{resource_url}">%{resource_title}</a>-n.
67
+ notification_title: Zure iruzkinaren erantzun berria dago <a href="%{author_path}">%{author_name} %{author_nickname}</a> <a href="%{resource_path}">%{resource_title}</a>
68
+ user_mentioned:
69
+ email_intro: Esan zaizu
70
+ email_outro: Jakinarazpen hau jaso duzu "%{resource_title}" aipatu duzulako.
71
+ email_subject: '%{resource_title} aipatu zaituzte'
72
+ notification_title: <a href="%{resource_path}">%{resource_title}</a> <a href="%{author_path}">%{author_name} %{author_nickname}</a> bidez aipatu zaituzte.
68
73
  errors:
69
74
  messages:
70
75
  cannot_have_comments: ezin zaio iruzkinik egin
@@ -1,18 +1,6 @@
1
1
  fi:
2
2
  decidim:
3
3
  comments:
4
- events:
5
- comment_created:
6
- comment:
7
- email_intro: '"%{resource_title}" on kommentoinut. Voit lukea kommentin tällä sivulla:'
8
- email_outro: Olet saanut tämän ilmoituksen, koska seuraat kohdetta "%{resource_title}". Voit lopettaa seurannan edellisestä linkistä.
9
- email_subject: Uusi kommentti henkilöltä %{author_name} kohteeseen %{resource_title}
10
- notification_title: Uusi kommentti henkilöltä %{author_name} kohteeseen <a href="%{resource_path}">%{resource_title}</a>
11
- reply:
12
- email_intro: Kohdetta "%{resource_title}" on kommentoitu
13
- email_outro: Olet saanut tämän ilmoituksen, koska seuraat kohdetta "%{resource_title}". Voit lopettaa seuraamisen edellisestä linkistä.
14
- email_subject: '%{author_name} on vastannut kommenttiisi kohteessa <a href="%{resource_url}">%{resource_title}</a>'
15
- notification_title: '%{author_name} on vastannut kommenttiisi kohteessa <a href="%{resource_path}">%{resource_title}</a>'
16
4
  votes:
17
5
  create:
18
6
  error: Äänestettäessä kommenttia tapahtui virhe.
@@ -49,7 +37,6 @@ fi:
49
37
  offensive: Sisältää rasismia, seksismiä, haukkumista, henkilökohtaisia hyökkäyksiä, tappouhkauksia, itsemurhapyyntöjä tai muuta vihapuhetta.
50
38
  spam: Sisältää klikkihoukutteita, mainostusta, huijauksia tai bottiskriptejä.
51
39
  title: Raportoi ongelmasta
52
- verified_user_group: Vahvistettu organisaatio
53
40
  comment_order_selector:
54
41
  order:
55
42
  best_rated: Parhaiksi arvioidut
@@ -60,11 +47,29 @@ fi:
60
47
  comment_thread:
61
48
  title: Keskustelu henkilön %{authorName} kanssa
62
49
  comments:
63
- blocked_comments_warning: Kommentit on poistettu käytöstä tällä hetkellä, mutta voit lukea edelliset.
50
+ blocked_comments_warning: Kommentit on poistettu käytöstä tällä hetkellä, mutta voit lukea aikaisempia kommentteja.
64
51
  loading: Ladataan kommentteja ...
65
52
  title: "%{count} kommenttia"
66
53
  featured_comment:
67
54
  title: Esille nostettu kommentti
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: '"%{resource_title}" on kommentoinut. Voit lukea kommentin tällä sivulla:'
60
+ email_outro: Olet saanut tämän ilmoituksen, koska seuraat "%{resource_title}" tai sen kirjoittajaa. Voit purkaa sen edellisestä linkistä.
61
+ email_subject: 'Uusi kommentti %{author_name}: sta %{resource_title}: ssa'
62
+ notification_title: Uusi kommentti <a href="%{author_path}">%{author_name} %{author_nickname}</a> kohteessa <a href="%{resource_path}">%{resource_title}</a>
63
+ reply:
64
+ email_intro: Kommentoi "%{resource_title}"
65
+ email_outro: Olet saanut tämän ilmoituksen, koska seuraat "%{resource_title}" tai sen kirjoittajaa. Voit purkaa sen edellisestä linkistä.
66
+ email_subject: 'Kommenttisi on uusi vastaus %{author_name}: sta <a href="%{resource_url}">%{resource_title}</a>'
67
+ notification_title: 'Kommenttisi on uusi vastaus <a href="%{author_path}">%{author_name} %{author_nickname}</a>: sta <a href="%{resource_path}">%{resource_title}</a>'
68
+ user_mentioned:
69
+ email_intro: Sinut on mainittu
70
+ email_outro: Olet saanut tämän ilmoituksen, koska sinut on mainittu kohdassa "%{resource_title}".
71
+ email_subject: Olet maininnut %{resource_title}
72
+ notification_title: Olet maininnut <a href="%{resource_path}">%{resource_title}</a> mennessä <a href="%{author_path}">%{author_name} %{author_nickname}</a>
68
73
  errors:
69
74
  messages:
70
75
  cannot_have_comments: ei voi sisältää kommentteja
@@ -1,18 +1,6 @@
1
1
  fr:
2
2
  decidim:
3
3
  comments:
4
- events:
5
- comment_created:
6
- comment:
7
- email_intro: '"%{resource_title}" a été commenté. Vous pouvez lire le commentaire de cette page:'
8
- email_outro: Vous recevez cet notification car vous suivez « %{resource_title} ». Vous pouvez cesser de le suivre en allant sur le lien précédent.
9
- email_subject: Un nouveau commentaire a été publié par %{author_name} dans %{resource_title}
10
- notification_title: Nouveau commentaire de %{author_name} dans <a href="%{resource_path}">%{resource_title}</a>
11
- reply:
12
- email_intro: '"%{resource_title}" a reçu un commentaire'
13
- email_outro: Vous recevez cet notification car vous suivez « %{resource_title} ». Vous pouvez cesser de le suivre en allant sur le lien précédent.
14
- email_subject: Votre commentaire a reçu une réponse de %{author_name} dans <a href="%{resource_url}">%{resource_title}</a>
15
- notification_title: Votre commentaire a reçu une réponse de %{author_name} dans <a href="%{resource_path}">%{resource_title}</a>
16
4
  votes:
17
5
  create:
18
6
  error: Une erreur s'est produite lors du vote sur le commentaire.
@@ -49,7 +37,6 @@ fr:
49
37
  offensive: Contient des propos racistes, sexistes, des insultes, des attaques personnelles, des menaces de mort, des incitations au suicide ou toute forme de discours de haine.
50
38
  spam: Contient des piège-à-clic (clickbait), des publicités, des escroqueries ou des robots fonctionnant au script (script bots).
51
39
  title: Signaler un problème
52
- verified_user_group: Organisation vérifiée
53
40
  comment_order_selector:
54
41
  order:
55
42
  best_rated: Les mieux notés
@@ -65,6 +52,24 @@ fr:
65
52
  title: "%{count} commentaires"
66
53
  featured_comment:
67
54
  title: Commentaire vedette
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: '"%{resource_title}" a été commenté. Vous pouvez lire le commentaire sur cette page:'
60
+ email_outro: Vous avez reçu cette notification parce que vous suivez "%{resource_title}" ou son auteur. Vous pouvez annuler ces notifications à partir du lien précédent.
61
+ email_subject: Un nouveau commentaire a été publié par %{author_name} dans %{resource_title}
62
+ notification_title: Un nouveau commentaire a été publié par <a href="%{author_path}">%{author_name} %{author_nickname}</a> dans <a href="%{resource_path}">%{resource_title}</a>
63
+ reply:
64
+ email_intro: '"%{resource_title}" a été commenté'
65
+ email_outro: Vous avez reçu cette notification parce que vous suivez "%{resource_title}" ou son auteur. Vous pouvez annuler ces notifications à partir du lien précédent.
66
+ email_subject: Il y a une nouvelle réponse à votre commentaire de %{author_name} dans <a href="%{resource_url}">%{resource_title}</a>
67
+ notification_title: Il y a une nouvelle réponse de votre commentaire de <a href="%{author_path}">%{author_name} %{author_nickname}</a> dans <a href="%{resource_path}">%{resource_title}</a>
68
+ user_mentioned:
69
+ email_intro: Vous avez été mentionné
70
+ email_outro: Vous avez reçu cette notification parce que vous avez été mentionné dans "%{resource_title}".
71
+ email_subject: Vous avez été mentionné dans %{resource_title}
72
+ notification_title: Vous avez été mentionné dans <a href="%{resource_path}">%{resource_title}</a> par <a href="%{author_path}">%{author_name} %{author_nickname}</a>
68
73
  errors:
69
74
  messages:
70
75
  cannot_have_comments: ne peut pas être commenté
@@ -0,0 +1,75 @@
1
+ gl:
2
+ decidim:
3
+ comments:
4
+ votes:
5
+ create:
6
+ error: Houbo erros ao votar o comentario.
7
+ components:
8
+ add_comment_form:
9
+ account_message: <a href="%{sign_in_url}">Inicia sesión coa túa conta</a> ou <a href="%{sign_up_url}">iniciar</a> para engadir o teu comentario.
10
+ form:
11
+ body:
12
+ label: Comentario
13
+ placeholder: Que vos parece?
14
+ form_error: Requírese o texto e non pode ter máis de %{length} caracteres.
15
+ submit: Enviar
16
+ user_group_id:
17
+ label: Comentar como
18
+ opinion:
19
+ neutral: Neutro
20
+ remaining_characters: "Faltan %{count} caracteres"
21
+ remaining_characters_1: "Faltou o personaxe %{count}"
22
+ title: Engade o teu comentario
23
+ comment:
24
+ alignment:
25
+ against: Contra
26
+ in_favor: A favor
27
+ deleted_user: Usuario eliminado
28
+ reply: Responder
29
+ report:
30
+ action: Informe
31
+ already_reported: Este contido xa se informou e será revisado por un administrador.
32
+ close: Pechar
33
+ description: Este contido é inapropiado?
34
+ details: Comentarios adicionais
35
+ reasons:
36
+ does_not_belong: Contén actividades ilegais, ameazas de suicidio, información persoal ou outra cousa que pensas que non pertence a %{organization_name}.
37
+ offensive: Contén racismo, sexismo, abuso, ataques persoais, ameazas de morte, solicitudes de suicidio ou calquera tipo de discurso de odio.
38
+ spam: Contén clic, publicidade, fraudes ou bots de script.
39
+ title: Informar dun problema
40
+ comment_order_selector:
41
+ order:
42
+ best_rated: Mellor valorado
43
+ most_discussed: A maioría discutida
44
+ older: Máis vello
45
+ recent: Recentes
46
+ title: 'Ordenar por:'
47
+ comment_thread:
48
+ title: Conversa con %{authorName}
49
+ comments:
50
+ blocked_comments_warning: Os comentarios están desactivados neste momento, pero podes ler os anteriores.
51
+ loading: Cargando comentarios ...
52
+ title: "%{count} comentarios"
53
+ featured_comment:
54
+ title: Comentario destacado
55
+ events:
56
+ comments:
57
+ comment_created:
58
+ comment:
59
+ email_intro: 'Comentouse "%{resource_title}". Podes ler o comentario nesta páxina:'
60
+ email_outro: Recibiches esta notificación porque estás seguindo "%{resource_title}" ou o seu autor. Podes deixar de seguir desde a ligazón anterior.
61
+ email_subject: Hai un novo comentario de %{author_name} en %{resource_title}
62
+ notification_title: Hai un novo comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
63
+ reply:
64
+ email_intro: Comentouse o "%{resource_title}"
65
+ email_outro: Recibiches esta notificación porque estás seguindo "%{resource_title}" ou o seu autor. Podes deixar de seguir desde a ligazón anterior.
66
+ email_subject: Hai unha nova resposta do teu comentario de %{author_name} en <a href="%{resource_url}">%{resource_title}</a>.
67
+ notification_title: Hai unha nova resposta do teu comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
68
+ user_mentioned:
69
+ email_intro: Foi mencionado
70
+ email_outro: Recibiches esta notificación porque foi mencionado en "%{resource_title}".
71
+ email_subject: Foi mencionado en %{resource_title}
72
+ notification_title: Foi mencionado en <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
73
+ errors:
74
+ messages:
75
+ cannot_have_comments: Non podo ter comentarios