decidim-comments 0.31.8 → 0.32.0.rc1

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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -16
  3. data/app/cells/decidim/comments/comment/deletion_data.erb +3 -7
  4. data/app/cells/decidim/comments/comment/replies.erb +23 -3
  5. data/app/cells/decidim/comments/comment/show.erb +5 -19
  6. data/app/cells/decidim/comments/comment_cell.rb +10 -6
  7. data/app/cells/decidim/comments/comment_form/show.erb +1 -1
  8. data/app/cells/decidim/comments/comments/inline.erb +13 -10
  9. data/app/cells/decidim/comments/comments_cell.rb +7 -2
  10. data/app/cells/decidim/comments/two_columns_comments/column.erb +7 -2
  11. data/app/cells/decidim/comments/two_columns_comments/show.erb +7 -4
  12. data/app/cells/decidim/comments/two_columns_comments_cell.rb +30 -31
  13. data/app/controllers/decidim/comments/application_controller.rb +0 -2
  14. data/app/controllers/decidim/comments/comments_controller.rb +32 -7
  15. data/app/models/decidim/comments/seed.rb +17 -7
  16. data/app/packs/entrypoints/decidim_comments.js +6 -0
  17. data/app/packs/src/decidim/comments/comments.component.js +2 -44
  18. data/app/packs/src/decidim/comments/comments.component.test.js +65 -69
  19. data/app/packs/src/decidim/comments/comments.js +1 -1
  20. data/app/packs/src/decidim/comments/controllers/load_more_comments/controller.js +201 -0
  21. data/app/packs/src/decidim/comments/controllers/show_replies/controller.js +240 -0
  22. data/app/packs/stylesheets/comments.scss +63 -2
  23. data/app/queries/decidim/comments/sorted_comments.rb +77 -33
  24. data/app/views/decidim/comments/admin/shared/_availability_fields.html.erb +1 -1
  25. data/app/views/decidim/comments/comments/_load_more_comments.html.erb +22 -0
  26. data/app/views/decidim/comments/comments/create.js.erb +38 -4
  27. data/app/views/decidim/comments/comments/index.js.erb +58 -23
  28. data/app/views/decidim/comments/comments/load_more_comments.js.erb +74 -0
  29. data/app/views/decidim/comments/comments/reload.js.erb +0 -12
  30. data/app/views/decidim/comments/comments/update.js.erb +3 -13
  31. data/config/locales/ar.yml +4 -1
  32. data/config/locales/bg.yml +4 -1
  33. data/config/locales/bs-BA.yml +0 -1
  34. data/config/locales/ca-IT.yml +10 -8
  35. data/config/locales/ca.yml +10 -8
  36. data/config/locales/cs.yml +7 -8
  37. data/config/locales/de.yml +10 -8
  38. data/config/locales/el.yml +4 -1
  39. data/config/locales/en.yml +10 -7
  40. data/config/locales/es-MX.yml +10 -8
  41. data/config/locales/es-PY.yml +10 -8
  42. data/config/locales/es.yml +10 -8
  43. data/config/locales/eu.yml +25 -23
  44. data/config/locales/fi-plain.yml +10 -8
  45. data/config/locales/fi.yml +10 -8
  46. data/config/locales/fr-CA.yml +7 -4
  47. data/config/locales/fr.yml +7 -5
  48. data/config/locales/ga-IE.yml +0 -1
  49. data/config/locales/gl.yml +7 -75
  50. data/config/locales/hu.yml +4 -1
  51. data/config/locales/id-ID.yml +4 -1
  52. data/config/locales/is-IS.yml +5 -2
  53. data/config/locales/it.yml +4 -1
  54. data/config/locales/ja.yml +9 -7
  55. data/config/locales/lb.yml +4 -1
  56. data/config/locales/lt.yml +4 -1
  57. data/config/locales/lv.yml +4 -1
  58. data/config/locales/nl.yml +4 -1
  59. data/config/locales/no.yml +4 -1
  60. data/config/locales/pl.yml +4 -1
  61. data/config/locales/pt-BR.yml +10 -4
  62. data/config/locales/pt.yml +4 -1
  63. data/config/locales/ro-RO.yml +4 -5
  64. data/config/locales/ru.yml +4 -1
  65. data/config/locales/si-LK.yml +0 -1
  66. data/config/locales/sk.yml +4 -125
  67. data/config/locales/sl.yml +0 -1
  68. data/config/locales/sq-AL.yml +0 -1
  69. data/config/locales/sr-CS.yml +0 -1
  70. data/config/locales/sv.yml +4 -8
  71. data/config/locales/tr-TR.yml +4 -1
  72. data/config/locales/uk.yml +4 -1
  73. data/config/locales/zh-CN.yml +4 -1
  74. data/config/locales/zh-TW.yml +4 -1
  75. data/db/migrate/20260208201401_remove_user_group_comments.rb +13 -0
  76. data/decidim-comments.gemspec +6 -9
  77. data/lib/decidim/api/comment_mutation_type.rb +12 -4
  78. data/lib/decidim/api/commentable_interface.rb +1 -0
  79. data/lib/decidim/api/commentable_mutation_type.rb +4 -0
  80. data/lib/decidim/comments/commentable.rb +5 -0
  81. data/lib/decidim/comments/commentable_with_component.rb +9 -0
  82. data/lib/decidim/comments/engine.rb +11 -0
  83. data/lib/decidim/comments/mutation_extensions.rb +0 -12
  84. data/lib/decidim/comments/query_extensions.rb +0 -9
  85. data/lib/decidim/comments/test/shared_examples/translatable_comment.rb +1 -0
  86. data/lib/decidim/comments/version.rb +1 -1
  87. metadata +15 -14
  88. data/app/resolvers/decidim/comments/vote_comment_resolver.rb +0 -24
@@ -0,0 +1,74 @@
1
+ (function() {
2
+ <% root_resource = commentable.is_a?(Decidim::Comments::Comment) ? commentable.root_commentable : commentable %>
3
+ <% is_loading_replies = commentable.is_a?(Decidim::Comments::Comment) %>
4
+ <% new_offset = comments_offset + @comments.size %>
5
+
6
+ var commentsContainer = document.getElementById(<%== "comments-for-#{root_resource.commentable_type.demodulize}-#{root_resource.id}".to_json %>);
7
+ var $comments = $(commentsContainer);
8
+ var component = $comments.data("comments");
9
+
10
+ <% if is_loading_replies %>
11
+ var targetContainer = document.getElementById("comment-<%= commentable.id %>-replies");
12
+ var loadMoreWrapper = null;
13
+ <% else %>
14
+ <% if alignment.present? %>
15
+ var targetContainer = commentsContainer.querySelector(<%== ".comments-section__#{alignment == 1 ? "in-favor" : "against"}".to_json %>);
16
+ <% else %>
17
+ var targetContainer = commentsContainer.querySelector("#mobileContainer") || commentsContainer.querySelector(".comment-threads");
18
+ <% end %>
19
+ var loadMoreWrapper = targetContainer ? targetContainer.querySelector("[data-load-more-comments-wrapper]") : null;
20
+ <% end %>
21
+
22
+ // Insert comments
23
+ var commentsIds = [];
24
+ <% @comments.each do |comment| %>
25
+ (function() {
26
+ var commentId = <%= comment.id.to_json %>;
27
+ var commentHtml = '<%== j(render comment).strip %>';
28
+ var inReplyTo = <%== (reply?(comment) ? comment.commentable.id : nil).to_json %>;
29
+
30
+ commentsIds.push(commentId);
31
+ var existingComment = targetContainer ? targetContainer.querySelector("#comment_" + commentId) : null;
32
+ if (!existingComment) {
33
+ if (inReplyTo) {
34
+ component.addReply(inReplyTo, commentHtml);
35
+ } else if (loadMoreWrapper) {
36
+ loadMoreWrapper.insertAdjacentHTML("beforebegin", commentHtml);
37
+ component._initializeComments($(loadMoreWrapper.previousElementSibling));
38
+ } else {
39
+ component.addThread(commentHtml, <%= alignment.presence || "null" %>);
40
+ }
41
+ }
42
+ })();
43
+ <% end %>
44
+
45
+ if (commentsIds.length) {
46
+ component.lastCommentId = <%= @comments.last&.id || 0 %>;
47
+ Rails.fire(document, "comments:loaded", { commentsIds: commentsIds });
48
+ }
49
+
50
+ <% if is_loading_replies %>
51
+ if (targetContainer) {
52
+ targetContainer.querySelectorAll(".comment-reply.hidden").forEach(function(el) {
53
+ el.classList.remove("hidden");
54
+ });
55
+ targetContainer.querySelectorAll(".show-replies-button").forEach(function(el) {
56
+ el.remove();
57
+ });
58
+ }
59
+ <% end %>
60
+
61
+ <% unless is_loading_replies %>
62
+ <% if @has_more_comments %>
63
+ if (loadMoreWrapper) {
64
+ loadMoreWrapper.setAttribute("data-load-more-comments-offset-value", <%= new_offset %>);
65
+ var btn = loadMoreWrapper.querySelector("[data-load-more-comments-target='button']");
66
+ var spin = loadMoreWrapper.querySelector("[data-load-more-comments-target='spinner']");
67
+ if (btn) { btn.disabled = false; btn.classList.remove("loading"); }
68
+ if (spin) { spin.classList.add("hidden"); }
69
+ }
70
+ <% else %>
71
+ if (loadMoreWrapper) { loadMoreWrapper.remove(); }
72
+ <% end %>
73
+ <% end %>
74
+ }());
@@ -3,10 +3,6 @@
3
3
 
4
4
  var $comments = $("#" + rootCommentableId);
5
5
  var component = $comments.data("comments");
6
-
7
- // Save the focused element id to restore focus after reload
8
- var activeElementId = document.activeElement ? document.activeElement.id : null;
9
-
10
6
  component.unmountComponent();
11
7
 
12
8
  var commentsHtml = '<%== j(inline_comments_for(commentable, order:).inline).strip %>';
@@ -20,12 +16,4 @@
20
16
  // Update the comments count
21
17
  $(".comments-count", $comments).text(<%== t("decidim.components.comments.title", count: @comments_count).to_json %>);
22
18
 
23
- // Restore focus to the previously focused element if it still exists
24
- if (activeElementId) {
25
- var newActiveElement = document.getElementById(activeElementId);
26
- if (newActiveElement) {
27
- newActiveElement.focus();
28
- }
29
- }
30
-
31
19
  }());
@@ -1,26 +1,16 @@
1
1
  document.addEventListener("turbo:load", () => {
2
- var rootCommentableId = <%== "comments-for-#{@commentable.class.name.demodulize}-#{@commentable.id}".to_json %>;
3
- var $comments = $("#" + rootCommentableId);
4
- var config = $comments.data("decidim-comments");
5
- var component = $comments.data("comments");
6
-
7
- component.unmountComponent();
8
-
9
2
  var commentHtml = '<%== j(render partial: "edited_comment", locals: { comment: @comment }).strip %>';
10
3
  var commentId = <%= @comment.id.to_json %>;
11
4
  var $comment = $("#comment_<%= @comment.id %>");
12
5
 
13
- var $edit_modal = document.getElementById(`editCommentModal${commentId}`)
6
+ var $edit_modal = document.getElementById(`editCommentModal${commentId}`);
14
7
 
15
- if ($edit_modal !== undefined) {
16
- $edit_modal.remove()
8
+ if ($edit_modal) {
9
+ $edit_modal.remove();
17
10
  }
18
11
 
19
12
  $comment.replaceWith(commentHtml);
20
13
 
21
- // Re-create the component
22
- component.mountComponent();
23
-
24
14
  Rails.fire(document, "comments:loaded", {
25
15
  commentsIds: [commentId]
26
16
  });
@@ -1,4 +1,3 @@
1
- ---
2
1
  ar:
3
2
  activemodel:
4
3
  models:
@@ -122,10 +121,12 @@ ar:
122
121
  email_intro: "%{author_name} ترك تعليق في %{resource_title}. يمكنك قراءتها في هذه الصفحة:"
123
122
  email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{author_name}. يمكنك إلغاء تتبع هذا المستخدم من صفحة ملفه الشخصي.
124
123
  email_subject: هناك تعليق جديد مِن %{author_name} على %{resource_title}
124
+ notification_title: هناك تعليق جديد مِن <a href="%{author_path}">%{author_name} %{author_nickname}</a> على <a href="%{resource_path}">%{resource_title}</a>.
125
125
  comment_created:
126
126
  email_intro: "%{resource_title} تم التعليق. يمكنك قراءة التعليق في هذه الصفحة:"
127
127
  email_outro: لقد تلقيت هذا الإشعار لأنك تتابع "%{resource_title}" أو مؤلفه. يمكنك إلغاء تتبعه من الرابط السابق.
128
128
  email_subject: هناك تعليق جديد من %{author_name} في %{resource_title}
129
+ notification_title: هناك تعليق جديد مِن <a href="%{author_path}">%{author_name} %{author_nickname}</a> على <a href="%{resource_path}">%{resource_title}</a>
129
130
  comment_downvoted:
130
131
  email_intro: تم خفض تعليقك في "%{resource_title}". الآن يحتوي على ما مجموعه %{upvotes} أصوات أعلى و %{downvotes} أصوات أدنى.
131
132
  email_outro: لقد تلقيت هذا الإشعار لأنك مؤلف هذا التعليق.
@@ -140,7 +141,9 @@ ar:
140
141
  email_intro: "%{author_name} رد على تعليقك في %{resource_title}. يمكنك قراءتها في هذه الصفحة:"
141
142
  email_outro: لقد تلقيت هذا الإشعار لأنه تم الرد على تعليقك.
142
143
  email_subject: "%{author_name} رد على تعليقك في %{resource_title}"
144
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> رد على تعليقك في <a href="%{resource_path}">%{resource_title}</a>
143
145
  user_mentioned:
144
146
  email_intro: لقد ذكرت
145
147
  email_outro: لقد تلقيت هذا الإشعار لأنك ذكرت في %{resource_title}.
146
148
  email_subject: لقد ذكرت في %{resource_title}
149
+ notification_title: لقد ذكرت في <a href="%{resource_path}">%{resource_title}</a> من <a href="%{author_path}">%{author_name} %{author_nickname}</a>
@@ -1,4 +1,3 @@
1
- ---
2
1
  bg:
3
2
  activemodel:
4
3
  models:
@@ -129,10 +128,12 @@ bg:
129
128
  email_intro: "%{author_name} остави коментар в %{resource_title}. Можете да го прочетете на тази страница:"
130
129
  email_outro: Получихте това известие, защото следвате %{author_name}. Можете да спрете да следвате този потребител от страницата на неговия профил.
131
130
  email_subject: Има нов коментар от %{author_name} в(ъв) %{resource_title}
131
+ notification_title: Има нов коментар от <a href="%{author_path}">%{author_name} %{author_nickname}</a> в(ъв) <a href="%{resource_path}">%{resource_title}</a>.
132
132
  comment_created:
133
133
  email_intro: "%{resource_title} получи коментар. Можете да прочетете коментара на тази страница:"
134
134
  email_outro: Получавате това известие, защото следвате „%{resource_title}“ или неговия автор. Можете да прекратите следването от предходната връзка.
135
135
  email_subject: Има нов коментар от %{author_name} по %{resource_title}
136
+ notification_title: Има нов коментар от <a href="%{author_path}">%{author_name} %{author_nickname}</a> по <a href="%{resource_path}">%{resource_title}</a>
136
137
  comment_downvoted:
137
138
  email_intro: Вашият коментар в „%{resource_title}“ беше гласуван против. Вече има общо %{upvotes} гласа за и %{downvotes} гласа против.
138
139
  email_outro: Получихте това известие, защото вие сте авторът на този коментар.
@@ -147,10 +148,12 @@ bg:
147
148
  email_intro: "%{author_name} отговори на вашия коментар в %{resource_title}. Можете да го прочетете на тази страница:"
148
149
  email_outro: Получавате това известие, защото някой отговори на коментара Ви.
149
150
  email_subject: "%{author_name} отговори на коментара Ви по %{resource_title}"
151
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> отговори на коментара Ви по <a href="%{resource_path}">%{resource_title}</a>
150
152
  user_mentioned:
151
153
  email_intro: Бяхте споменати
152
154
  email_outro: Получавате това известие, защото бяхте споменати в(ъв) %{resource_title}.
153
155
  email_subject: Бяхте споменати в(ъв) %{resource_title}
156
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> Ви спомена в(ъв) <a href="%{resource_path}">%{resource_title}</a>
154
157
  errors:
155
158
  messages:
156
159
  cannot_have_comments: не може да има коментари
@@ -1,4 +1,3 @@
1
- ---
2
1
  bs:
3
2
  decidim:
4
3
  components:
@@ -1,4 +1,3 @@
1
- ---
2
1
  ca-IT:
3
2
  activemodel:
4
3
  models:
@@ -68,9 +67,6 @@ ca-IT:
68
67
  alignment:
69
68
  against: En contra
70
69
  in_favor: A favor
71
- answers:
72
- one: "%{count} resposta"
73
- other: "%{count} respuestas"
74
70
  cancel_reply: Cancel·lar resposta
75
71
  comment_label: Comentari %{comment_id}
76
72
  comment_label_reply: Comentari %{comment_id} (respon al comentari %{parent_comment_id})
@@ -84,7 +80,11 @@ ca-IT:
84
80
  hide_replies:
85
81
  one: Amagar resposta
86
82
  other: Amagar %{count} respostes
83
+ load_replies: Carregar les respostes
87
84
  moderated_at: Comentari moderat el %{date}
85
+ replies_count:
86
+ one: "%{count} respuesta"
87
+ other: "%{count} respostes"
88
88
  reply: Respondre
89
89
  report:
90
90
  action: Denúncia
@@ -116,7 +116,9 @@ ca-IT:
116
116
  blocked_comments_warning: Els comentaris estan deshabilitats en aquests moments, només les administradores poden respondre o publicar-ne de nous.
117
117
  comment_details_title: Detalls del comentari
118
118
  in_favor: A favor
119
+ load_more_comments: Carregar més comentaris
119
120
  loading: Carregant els comentaris ...
121
+ no_comments_yet: Encara no hi ha comentaris
120
122
  single_comment_warning: <a href="%{url}">Mostra tots els comentaris</a>
121
123
  single_comment_warning_title: Estàs veient un sol comentari
122
124
  title:
@@ -166,12 +168,12 @@ ca-IT:
166
168
  email_intro: "%{author_name} ha deixat un comentari a %{resource_title}. Podeu llegir-lo en aquesta pàgina:"
167
169
  email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{author_name}". Pots deixar de seguir a aquesta participant des de la seva pàgina de perfil.
168
170
  email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
169
- notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name}</a> a<a href="%{resource_path}">%{resource_title}</a>.
171
+ notification_title: Hi ha un nou comentari per <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>.
170
172
  comment_created:
171
173
  email_intro: "Algú ha deixat un comentari a \"%{resource_title}\". Pots llegir el comentari a través del següent enllaç:"
172
174
  email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{resource_title}" o la seva autora. Pots deixar de seguir-la des de l'enllaç anterior.
173
175
  email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
174
- notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name}</a> a<a href="%{resource_path}">%{resource_title}</a>
176
+ notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
175
177
  comment_downvoted:
176
178
  email_intro: El teu comentari a "%{resource_title}" ha rebut un vot negatiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
177
179
  email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
@@ -186,12 +188,12 @@ ca-IT:
186
188
  email_intro: "%{author_name} ha respost el teu comentari a %{resource_title}. Pots llegir-lo en aquesta pàgina:"
187
189
  email_outro: Has rebut aquesta notificació perquè s'ha respost el teu comentari.
188
190
  email_subject: "%{author_name} ha respost el teu comentari a %{resource_title}"
189
- notification_title: <a href="%{author_path}">%{author_name}</a> ha respost el teu comentari a <a href="%{resource_path}">%{resource_title}</a>
191
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha respost el teu comentari a <a href="%{resource_path}">%{resource_title}</a>
190
192
  user_mentioned:
191
193
  email_intro: Has estat esmentada
192
194
  email_outro: Has rebut aquesta notificació perquè t'han esmentat al comentari "%{resource_title}".
193
195
  email_subject: Has estat esmentada a %{resource_title}
194
- notification_title: Has estat esmentada per <a href="%{author_path}">%{author_name}</a> a <a href="%{resource_path}">%{resource_title}</a>
196
+ notification_title: Has estat esmentada a <a href="%{resource_path}">%{resource_title}</a> per <a href="%{author_path}">%{author_name} %{author_nickname}</a>
195
197
  errors:
196
198
  messages:
197
199
  cannot_have_comments: no es poden fer comentaris
@@ -1,4 +1,3 @@
1
- ---
2
1
  ca:
3
2
  activemodel:
4
3
  models:
@@ -68,9 +67,6 @@ ca:
68
67
  alignment:
69
68
  against: En contra
70
69
  in_favor: A favor
71
- answers:
72
- one: "%{count} resposta"
73
- other: "%{count} respuestas"
74
70
  cancel_reply: Cancel·lar resposta
75
71
  comment_label: Comentari %{comment_id}
76
72
  comment_label_reply: Comentari %{comment_id} (respon al comentari %{parent_comment_id})
@@ -84,7 +80,11 @@ ca:
84
80
  hide_replies:
85
81
  one: Amagar resposta
86
82
  other: Amagar %{count} respostes
83
+ load_replies: Carregar les respostes
87
84
  moderated_at: Comentari moderat el %{date}
85
+ replies_count:
86
+ one: "%{count} respuesta"
87
+ other: "%{count} respostes"
88
88
  reply: Respondre
89
89
  report:
90
90
  action: Denúncia
@@ -116,7 +116,9 @@ ca:
116
116
  blocked_comments_warning: Els comentaris estan deshabilitats en aquests moments, només les administradores poden respondre o publicar-ne de nous.
117
117
  comment_details_title: Detalls del comentari
118
118
  in_favor: A favor
119
+ load_more_comments: Carregar més comentaris
119
120
  loading: Carregant els comentaris ...
121
+ no_comments_yet: Encara no hi ha comentaris
120
122
  single_comment_warning: <a href="%{url}">Mostra tots els comentaris</a>
121
123
  single_comment_warning_title: Estàs veient un sol comentari
122
124
  title:
@@ -166,12 +168,12 @@ ca:
166
168
  email_intro: "%{author_name} ha deixat un comentari a %{resource_title}. Podeu llegir-lo en aquesta pàgina:"
167
169
  email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{author_name}". Pots deixar de seguir a aquesta participant des de la seva pàgina de perfil.
168
170
  email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
169
- notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name}</a> a <a href="%{resource_path}">%{resource_title}</a>.
171
+ notification_title: Hi ha un nou comentari per <a href="%{author_path}">%{author_name} %{author_nickname}</a> a <a href="%{resource_path}">%{resource_title}</a>.
170
172
  comment_created:
171
173
  email_intro: "Algú ha deixat un comentari a \"%{resource_title}\". Pots llegir el comentari a través del següent enllaç:"
172
174
  email_outro: Has rebut aquesta notificació perquè estàs seguint el comentari "%{resource_title}" o la seva autora. Pots deixar de seguir-la des de l'enllaç anterior.
173
175
  email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
174
- notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name}</a> a <a href="%{resource_path}">%{resource_title}</a>
176
+ notification_title: Hi ha un nou comentari de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
175
177
  comment_downvoted:
176
178
  email_intro: El teu comentari a "%{resource_title}" ha rebut un vot negatiu. Ara té un total de %{upvotes} vots positius i %{downvotes} vots negatius.
177
179
  email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
@@ -186,12 +188,12 @@ ca:
186
188
  email_intro: "%{author_name} ha respost el teu comentari a %{resource_title}. Pots llegir-lo en aquesta pàgina:"
187
189
  email_outro: Has rebut aquesta notificació perquè s'ha respost el teu comentari.
188
190
  email_subject: "%{author_name} ha respost el teu comentari a %{resource_title}"
189
- notification_title: <a href="%{author_path}">%{author_name}</a> ha respost el teu comentari a <a href="%{resource_path}">%{resource_title}</a>
191
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha respost el teu comentari a <a href="%{resource_path}">%{resource_title}</a>
190
192
  user_mentioned:
191
193
  email_intro: Has estat esmentada
192
194
  email_outro: Has rebut aquesta notificació perquè t'han esmentat al comentari "%{resource_title}".
193
195
  email_subject: Has estat esmentada a %{resource_title}
194
- notification_title: T'han esmentat per <a href="%{author_path}">%{author_name}</a> a <a href="%{resource_path}">%{resource_title}</a>
196
+ notification_title: Has estat esmentada a <a href="%{resource_path}">%{resource_title}</a> per <a href="%{author_path}">%{author_name} %{author_nickname}</a>
195
197
  errors:
196
198
  messages:
197
199
  cannot_have_comments: no es poden fer comentaris
@@ -1,4 +1,3 @@
1
- ---
2
1
  cs:
3
2
  activemodel:
4
3
  models:
@@ -72,11 +71,6 @@ cs:
72
71
  alignment:
73
72
  against: Proti
74
73
  in_favor: Ve prospěch
75
- answers:
76
- one: "%{count} odpověď"
77
- few: "%{count} odpovědi"
78
- many: "%{count} odpovědí"
79
- other: "%{count} odpovědí"
80
74
  cancel_reply: Zrušit odpověď
81
75
  comment_label: Komentář %{comment_id}
82
76
  comment_label_reply: Komentář %{comment_id} (odpověď na komentář %{parent_comment_id})
@@ -92,6 +86,7 @@ cs:
92
86
  few: Skrýt {count} odpovědi
93
87
  many: Skrýt {count} odpovědí
94
88
  other: Skrýt {count} odpovědí
89
+ load_replies: Načíst odpovědi
95
90
  moderated_at: Komentář moderován dne %{date}
96
91
  reply: Odpověď
97
92
  report:
@@ -126,7 +121,9 @@ cs:
126
121
  blocked_comments_warning: Komentáře jsou momentálně zakázány, pouze administrátoři mohou odpovědět nebo psát nové.
127
122
  comment_details_title: Podrobnosti komentáře
128
123
  in_favor: Líbí se mi
124
+ load_more_comments: Načíst další komentáře
129
125
  loading: Načítání komentářů ...
126
+ no_comments_yet: Zatím žádné komentáře
130
127
  single_comment_warning: <a href="%{url}">Zobrazit všechny komentáře</a>
131
128
  single_comment_warning_title: Vidíte jeden komentář
132
129
  title:
@@ -172,12 +169,12 @@ cs:
172
169
  email_intro: "%{author_name} zanechal komentář v %{resource_title}. Můžete si je přečíst na této stránce:"
173
170
  email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{author_name}. Tento uživatel můžete zrušit ze své profilové stránky.
174
171
  email_subject: K dispozici je nový komentář %{author_name} v %{resource_title}
175
- notification_title: Nový komentář od <a href="%{author_path}">%{author_name}</a> v <a href="%{resource_path}">%{resource_title}</a>.
172
+ notification_title: Je tu nový komentář <a href="%{author_path}">%{author_name} %{author_nickname}</a> v <a href="%{resource_path}">%{resource_title}</a>.
176
173
  comment_created:
177
174
  email_intro: "%{resource_title} bylo komentováno. Můžete si přečíst komentář na této stránce:"
178
175
  email_outro: Toto oznámení jste obdrželi, protože jste sledovali "%{resource_title}" nebo jeho autora. Můžete jej odhlásit od předchozího odkazu.
179
176
  email_subject: K dispozici je nový komentář od %{author_name} do %{resource_title}
180
- notification_title: Nový komentář od <a href="%{author_path}">%{author_name}</a> v <a href="%{resource_path}">%{resource_title}</a>
177
+ notification_title: Je tu nový komentář od <a href="%{author_path}">%{author_name} %{author_nickname}</a> do <a href="%{resource_path}">%{resource_title}</a>
181
178
  comment_downvoted:
182
179
  email_intro: Váš komentář v "%{resource_title}" byl nepodpořen. Nyní má celkem %{upvotes} hlasů podpory a %{downvotes} hlasuje proti.
183
180
  email_outro: Obdrželi jste toto oznámení, protože jste autorem tohoto komentáře.
@@ -192,10 +189,12 @@ cs:
192
189
  email_intro: "%{author_name} odpověděl váš komentář v %{resource_title}. Můžete si je přečíst na této stránce:"
193
190
  email_outro: Toto oznámení jste obdrželi, protože váš komentář byl zodpovězen.
194
191
  email_subject: "%{author_name} odpověděl váš komentář v %{resource_title}"
192
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> odpověděl na váš komentář v <a href="%{resource_path}">%{resource_title}</a>
195
193
  user_mentioned:
196
194
  email_intro: Byl jste zmíněn
197
195
  email_outro: Toto oznámení jste obdrželi, protože jste byli uvedeni v %{resource_title}.
198
196
  email_subject: Byl jste zmíněn v %{resource_title}
197
+ notification_title: Byli jste zmíněni v <a href="%{resource_path}">%{resource_title}</a> od <a href="%{author_path}">%{author_name} %{author_nickname}</a>
199
198
  errors:
200
199
  messages:
201
200
  cannot_have_comments: nelze komentovat
@@ -1,4 +1,3 @@
1
- ---
2
1
  de:
3
2
  activemodel:
4
3
  models:
@@ -68,9 +67,6 @@ de:
68
67
  alignment:
69
68
  against: Gegen
70
69
  in_favor: Dafür
71
- answers:
72
- one: "%{count} Antwort"
73
- other: "%{count} Antworten"
74
70
  cancel_reply: Antwort abbrechen
75
71
  comment_label: Kommentar %{comment_id}
76
72
  comment_label_reply: Kommentar %{comment_id} (Antwort auf Kommentar %{parent_comment_id})
@@ -84,7 +80,11 @@ de:
84
80
  hide_replies:
85
81
  one: Antwort verbergen
86
82
  other: '%{count} Antworten verbergen'
83
+ load_replies: Antworten laden
87
84
  moderated_at: Kommentar moderiert am %{date}
85
+ replies_count:
86
+ one: "%{count} Antwort"
87
+ other: "%{count} Antworten"
88
88
  reply: Antworten
89
89
  report:
90
90
  action: Melden
@@ -116,7 +116,9 @@ de:
116
116
  blocked_comments_warning: Kommentare sind derzeit deaktiviert. Nur Admins können antworten oder neue Kommentare verfassen.
117
117
  comment_details_title: Kommentarinformationen
118
118
  in_favor: Zustimmend
119
+ load_more_comments: Weitere Kommentare laden
119
120
  loading: Kommentare werden geladen ...
121
+ no_comments_yet: Noch keine Kommentare
120
122
  single_comment_warning: <a href="%{url}">Alle Kommentare anzeigen</a>
121
123
  single_comment_warning_title: Ihnen wird ein einzelner Kommentar angezeigt
122
124
  title:
@@ -166,12 +168,12 @@ de:
166
168
  email_intro: "%{author_name} hat einen Kommentar zu %{resource_title} hinterlassen. Sie können diesen auf dieser Seite lesen:"
167
169
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie %{author_name} folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie die Profil-Seite dieses Benutzers.
168
170
  email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
169
- notification_title: Es gibt einen neuen Kommentar von <a href="%{author_path}">%{author_name}</a> zu <a href="%{resource_path}">%{resource_title}</a>.
171
+ notification_title: Es gibt einen neuen Kommentar von <a href="%{author_path}">%{author_name} %{author_nickname}</a> zu <a href="%{resource_path}">%{resource_title}</a>.
170
172
  comment_created:
171
173
  email_intro: "%{resource_title} wurde kommentiert. Sie können den Kommentar auf dieser Seite lesen:"
172
174
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie "%{resource_title}" oder seinem Autor folgen. Falls Sie keine solchen Benachrichtigungen mehr erhalten möchten, besuchen Sie den obigen Link.
173
175
  email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
174
- notification_title: Es gibt einen neuen Kommentar von <a href="%{author_path}">%{author_name}</a> zu <a href="%{resource_path}">%{resource_title}</a>
176
+ notification_title: Es gibt einen neuen Kommentar von <a href="%{author_path}">%{author_name} %{author_nickname}</a> zu <a href="%{resource_path}">%{resource_title}</a>
175
177
  comment_downvoted:
176
178
  email_intro: Ihr Kommentar in "%{resource_title}" wurde negativ bewertet. Er hat nun insgesamt %{upvotes} positive und %{downvotes} negative Stimmen.
177
179
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie der Autor des Vorschlags sind.
@@ -186,12 +188,12 @@ de:
186
188
  email_intro: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet. Sie können das auf dieser Seite lesen:"
187
189
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Ihr Kommentar beantwortet wurde.
188
190
  email_subject: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet"
189
- notification_title: <a href="%{author_path}">%{author_name}</a> hat auf Ihren Kommentar zu <a href="%{resource_path}">%{resource_title}</a> geantwortet
191
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> hat auf Ihren Kommentar in <a href="%{resource_path}">%{resource_title}</a> geantwortet
190
192
  user_mentioned:
191
193
  email_intro: Sie wurden erwähnt
192
194
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie in %{resource_title} erwähnt wurden.
193
195
  email_subject: Sie wurden in %{resource_title} erwähnt
194
- notification_title: Sie wurden von <a href="%{author_path}">%{author_name}</a> in <a href="%{resource_path}">%{resource_title}</a> erwähnt
196
+ notification_title: Sie wurden in <a href="%{resource_path}">%{resource_title}</a> von <a href="%{author_path}">%{author_name} %{author_nickname}</a> erwähnt
195
197
  errors:
196
198
  messages:
197
199
  cannot_have_comments: kann keine Kommentare haben
@@ -1,4 +1,3 @@
1
- ---
2
1
  el:
3
2
  activemodel:
4
3
  models:
@@ -118,10 +117,12 @@ el:
118
117
  email_intro: "Ο συντάκτης %{author_name} έκανε ένα σχόλιο στο στοιχείο %{resource_title}. Μπορείτε να το διαβάσετε σε αυτήν τη σελίδα:"
119
118
  email_outro: Λάβατε αυτήν την ειδοποίηση επειδή ακολουθείτε τον συντάκτη %{author_name}. Μπορείτε να σταματήσετε να ακολουθείτε αυτόν τον χρήστη από τη σελίδα προφίλ του.
120
119
  email_subject: Υπάρχει ένα νέο σχόλιο από τον συντάκτη %{author_name} στο στοιχείο %{resource_title}
120
+ notification_title: Υπάρχει ένα νέο σχόλιο από τον συντάκτη <a href="%{author_path}">%{author_name} %{author_nickname}</a> στο στοιχείο <a href="%{resource_path}">%{resource_title}</a>.
121
121
  comment_created:
122
122
  email_intro: "Το στοιχείο %{resource_title} έχει σχολιαστεί. Μπορείτε να διαβάσετε το σχόλιο σε αυτήν τη σελίδα:"
123
123
  email_outro: Λάβατε αυτήν την ειδοποίηση επειδή ακολουθείτε το στοιχείο «%{resource_title}» ή τον συντάκτη του. Μπορείτε να σταματήσετε να την ακολουθείτε από τον προηγούμενο σύνδεσμο.
124
124
  email_subject: Υπάρχει ένα νέο σχόλιο από τον συντάκτη %{author_name} στο στοιχείο %{resource_title}
125
+ notification_title: Υπάρχει ένα νέο σχόλιο από τον συντάκτη<a href="%{author_path}">%{author_name} %{author_nickname}</a> στο στοιχείο <a href="%{resource_path}">%{resource_title}</a>
125
126
  comment_downvoted:
126
127
  email_intro: Το σχόλιό σας στο "%{resource_title}" έχει καταψηφιστεί. Τώρα έχει συνολικές ψήφους %{upvotes} υπέρ και %{downvotes} κατά.
127
128
  email_outro: Λάβατε αυτή την ειδοποίηση επειδή είστε ο συγγραφέας αυτού του σχολίου.
@@ -136,10 +137,12 @@ el:
136
137
  email_intro: "Ο συντάκτης %{author_name} απάντησε στο σχόλιό σας στο στοιχείο %{resource_title}. Μπορείτε να το διαβάσετε σε αυτήν τη σελίδα:"
137
138
  email_outro: Λάβατε αυτήν την ειδοποίηση, επειδή το σχόλιό σας απαντήθηκε.
138
139
  email_subject: "Ο συντάκτης %{author_name} απάντησε στο σχόλιό σας στο στοιχείο %{resource_title}"
140
+ notification_title: Ο συντάκτης <a href="%{author_path}">%{author_name} %{author_nickname}</a> απάντησε στο σχόλιό σας στο στοιχείο <a href="%{resource_path}">%{resource_title}</a>
139
141
  user_mentioned:
140
142
  email_intro: Έγινε αναφορά σε εσάς
141
143
  email_outro: Λάβατε αυτήν την ειδοποίηση επειδή έγινε αναφορά σε εσάς στο στοιχείο %{resource_title}.
142
144
  email_subject: Έγινε αναφορά σε εσάς στο στοιχείο %{resource_title}
145
+ notification_title: Έγινε αναφορά σε εσάς στο στοιχείο <a href="%{resource_path}">%{resource_title}</a> από τον συντάκτη <a href="%{author_path}">%{author_name} %{author_nickname}</a>
143
146
  errors:
144
147
  messages:
145
148
  cannot_have_comments: δεν μπορεί να έχει σχόλια
@@ -68,9 +68,6 @@ en:
68
68
  alignment:
69
69
  against: Against
70
70
  in_favor: In favor
71
- answers:
72
- one: "%{count} answer"
73
- other: "%{count} answers"
74
71
  cancel_reply: Cancel reply
75
72
  comment_label: Comment %{comment_id}
76
73
  comment_label_reply: Comment %{comment_id} (reply to comment %{parent_comment_id})
@@ -84,7 +81,11 @@ en:
84
81
  hide_replies:
85
82
  one: Hide reply
86
83
  other: Hide %{count} replies
84
+ load_replies: Load replies
87
85
  moderated_at: Comment moderated on %{date}
86
+ replies_count:
87
+ one: "%{count} reply"
88
+ other: "%{count} replies"
88
89
  reply: Reply
89
90
  report:
90
91
  action: Report
@@ -116,7 +117,9 @@ en:
116
117
  blocked_comments_warning: Comments are currently disabled, only administrators can reply or post new ones.
117
118
  comment_details_title: Comment details
118
119
  in_favor: In Favor
120
+ load_more_comments: Load more comments
119
121
  loading: Loading comments ...
122
+ no_comments_yet: No comments yet
120
123
  single_comment_warning: <a href="%{url}">View all comments</a>
121
124
  single_comment_warning_title: You are seeing a single comment
122
125
  title:
@@ -166,12 +169,12 @@ en:
166
169
  email_intro: "%{author_name} has left a comment in %{resource_title}. You can read it in this page:"
167
170
  email_outro: You have received this notification because you are following %{author_name}. You can unfollow this user from their profile page.
168
171
  email_subject: There is a new comment by %{author_name} in %{resource_title}
169
- notification_title: There is a new comment by <a href="%{author_path}">%{author_name}</a> in <a href="%{resource_path}">%{resource_title}</a>.
172
+ notification_title: There is a new comment by <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>.
170
173
  comment_created:
171
174
  email_intro: "%{resource_title} has been commented. You can read the comment in this page:"
172
175
  email_outro: You have received this notification because you are following "%{resource_title}" or its author. You can unfollow it from the previous link.
173
176
  email_subject: There is a new comment from %{author_name} in %{resource_title}
174
- notification_title: There is a new comment from <a href="%{author_path}">%{author_name}</a> in <a href="%{resource_path}">%{resource_title}</a>
177
+ 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>
175
178
  comment_downvoted:
176
179
  email_intro: Your comment in "%{resource_title}" has been downvoted. It now has a total of %{upvotes} upvotes and %{downvotes} downvotes.
177
180
  email_outro: You have received this notification because you are the author of this comment.
@@ -186,12 +189,12 @@ en:
186
189
  email_intro: "%{author_name} has replied your comment in %{resource_title}. You can read it in this page:"
187
190
  email_outro: You have received this notification because your comment was replied.
188
191
  email_subject: "%{author_name} has replied your comment in %{resource_title}"
189
- notification_title: <a href="%{author_path}">%{author_name}</a> has replied your comment in <a href="%{resource_path}">%{resource_title}</a>
192
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> has replied your comment in <a href="%{resource_path}">%{resource_title}</a>
190
193
  user_mentioned:
191
194
  email_intro: You have been mentioned
192
195
  email_outro: You have received this notification because you have been mentioned in %{resource_title}.
193
196
  email_subject: You have been mentioned in %{resource_title}
194
- notification_title: You have been mentioned in <a href="%{resource_path}">%{resource_title}</a> by <a href="%{author_path}">%{author_name}</a>
197
+ notification_title: You have been mentioned in <a href="%{resource_path}">%{resource_title}</a> by <a href="%{author_path}">%{author_name} %{author_nickname}</a>
195
198
  errors:
196
199
  messages:
197
200
  cannot_have_comments: cannot have comments
@@ -1,4 +1,3 @@
1
- ---
2
1
  es-MX:
3
2
  activemodel:
4
3
  models:
@@ -68,9 +67,6 @@ es-MX:
68
67
  alignment:
69
68
  against: En contra
70
69
  in_favor: A favor
71
- answers:
72
- one: "%{count} respuesta"
73
- other: "%{count} respuestas"
74
70
  cancel_reply: Cancelar respuesta
75
71
  comment_label: Comentario %{comment_id}
76
72
  comment_label_reply: Comentario %{comment_id} (responder al comentario %{parent_comment_id})
@@ -84,7 +80,11 @@ es-MX:
84
80
  hide_replies:
85
81
  one: Ocultar respuesta
86
82
  other: Ocultar %{count} respuestas
83
+ load_replies: Cargar las respuestas
87
84
  moderated_at: Comentario moderado el %{date}
85
+ replies_count:
86
+ one: "%{count} respuesta"
87
+ other: "%{count} respuestas"
88
88
  reply: Respuesta
89
89
  report:
90
90
  action: Denunciar
@@ -116,7 +116,9 @@ es-MX:
116
116
  blocked_comments_warning: Los comentarios están desactivados en estos momentos, solo las administradoras pueden responder o publicar nuevos.
117
117
  comment_details_title: Detalles del comentario
118
118
  in_favor: A favor
119
+ load_more_comments: Cargar más comentarios
119
120
  loading: Cargando los comentarios ...
121
+ no_comments_yet: Aún no hay comentarios
120
122
  single_comment_warning: <a href="%{url}">Ver todos los comentarios</a>
121
123
  single_comment_warning_title: Estás viendo un solo comentario
122
124
  title:
@@ -166,12 +168,12 @@ es-MX:
166
168
  email_intro: "%{author_name} ha dejado un comentario en %{resource_title}. Puedes leerlo en esta página:"
167
169
  email_outro: Has recibido esta notificación porque sigues "%{author_name}". Puedes dejar de seguirlo desde el enlace anterior.
168
170
  email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
169
- notification_title: Hay un nuevo comentario de <a href="%{author_path}">%{author_name}</a> en <a href="%{resource_path}">%{resource_title}</a>.
171
+ notification_title: Hay un nuevo comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>.
170
172
  comment_created:
171
173
  email_intro: "%{resource_title} ha sido comentado. Puedes leer el comentario en esta página:"
172
174
  email_outro: Has recibido esta notificación porque está siguiendo "%{resource_title}" o su autor. Puedes dejar de seguirlo desde el enlace anterior.
173
175
  email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
174
- notification_title: Hay un nuevo comentario de <a href="%{author_path}">%{author_name}</a> en <a href="%{resource_path}">%{resource_title}</a>
176
+ notification_title: Hay un nuevo comentario de <a href="%{author_path}">%{author_name} %{author_nickname}</a> en <a href="%{resource_path}">%{resource_title}</a>
175
177
  comment_downvoted:
176
178
  email_intro: Tu comentario en "%{resource_title}" ha sido votado negativamente. Ahora tiene un total de %{upvotes} votos positivos y %{downvotes} votos negativos.
177
179
  email_outro: Has recibido esta notificación porque eres la autora de este comentario.
@@ -186,12 +188,12 @@ es-MX:
186
188
  email_intro: "%{author_name} ha respondido a tu comentario en %{resource_title}. Puedes leerlo en esta página:"
187
189
  email_outro: Has recibido esta notificación porque tu comentario fue respondido.
188
190
  email_subject: "%{author_name} ha respondido a tu comentario en %{resource_title}"
189
- notification_title: <a href="%{author_path}">%{author_name}</a> ha respondido a tu comentario en <a href="%{resource_path}">%{resource_title}</a>
191
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha respondido a tu comentario en <a href="%{resource_path}">%{resource_title}</a>
190
192
  user_mentioned:
191
193
  email_intro: Has sido mencionado
192
194
  email_outro: Has recibido esta notificación porque has sido mencionado en %{resource_title}.
193
195
  email_subject: Has sido mencionado en %{resource_title}
194
- notification_title: Has sido mencionada por <a href="%{author_path}">%{author_name}</a> en <a href="%{resource_path}">%{resource_title}</a>
196
+ notification_title: Has sido mencionado en <a href="%{resource_path}">%{resource_title}</a> por <a href="%{author_path}">%{author_name} %{author_nickname}</a>
195
197
  errors:
196
198
  messages:
197
199
  cannot_have_comments: no se pueden hacer comentarios