">
<%= form.datetime_field :comments_start_time, label: t(".start_time") %>
diff --git a/decidim-comments/app/views/decidim/comments/comments/reload.js.erb b/decidim-comments/app/views/decidim/comments/comments/reload.js.erb
index 8fee7536997ad..b2a3f42b99540 100644
--- a/decidim-comments/app/views/decidim/comments/comments/reload.js.erb
+++ b/decidim-comments/app/views/decidim/comments/comments/reload.js.erb
@@ -3,6 +3,10 @@
var $comments = $("#" + rootCommentableId);
var component = $comments.data("comments");
+
+ // Save the focused element id to restore focus after reload
+ var activeElementId = document.activeElement ? document.activeElement.id : null;
+
component.unmountComponent();
var commentsHtml = '<%== j(inline_comments_for(commentable, order:).inline).strip %>';
@@ -16,4 +20,12 @@
// Update the comments count
$(".comments-count", $comments).text(<%== t("decidim.components.comments.title", count: @comments_count).to_json %>);
+ // Restore focus to the previously focused element if it still exists
+ if (activeElementId) {
+ var newActiveElement = document.getElementById(activeElementId);
+ if (newActiveElement) {
+ newActiveElement.focus();
+ }
+ }
+
}());
diff --git a/decidim-comments/config/locales/ar.yml b/decidim-comments/config/locales/ar.yml
index d7b7b50529c78..6652ae33b6e47 100644
--- a/decidim-comments/config/locales/ar.yml
+++ b/decidim-comments/config/locales/ar.yml
@@ -122,12 +122,10 @@ ar:
email_intro: "%{author_name} ترك تعليق في %{resource_title}. يمكنك قراءتها في هذه الصفحة:"
email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{author_name}. يمكنك إلغاء تتبع هذا المستخدم من صفحة ملفه الشخصي.
email_subject: هناك تعليق جديد مِن %{author_name} على %{resource_title}
- notification_title: هناك تعليق جديد مِن
%{author_name} %{author_nickname} على
%{resource_title}.
comment_created:
email_intro: "%{resource_title} تم التعليق. يمكنك قراءة التعليق في هذه الصفحة:"
email_outro: لقد تلقيت هذا الإشعار لأنك تتابع "%{resource_title}" أو مؤلفه. يمكنك إلغاء تتبعه من الرابط السابق.
email_subject: هناك تعليق جديد من %{author_name} في %{resource_title}
- notification_title: هناك تعليق جديد مِن
%{author_name} %{author_nickname} على
%{resource_title}
comment_downvoted:
email_intro: تم خفض تعليقك في "%{resource_title}". الآن يحتوي على ما مجموعه %{upvotes} أصوات أعلى و %{downvotes} أصوات أدنى.
email_outro: لقد تلقيت هذا الإشعار لأنك مؤلف هذا التعليق.
@@ -142,9 +140,7 @@ ar:
email_intro: "%{author_name} رد على تعليقك في %{resource_title}. يمكنك قراءتها في هذه الصفحة:"
email_outro: لقد تلقيت هذا الإشعار لأنه تم الرد على تعليقك.
email_subject: "%{author_name} رد على تعليقك في %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} رد على تعليقك في
%{resource_title}
user_mentioned:
email_intro: لقد ذكرت
email_outro: لقد تلقيت هذا الإشعار لأنك ذكرت في %{resource_title}.
email_subject: لقد ذكرت في %{resource_title}
- notification_title: لقد ذكرت في
%{resource_title} من
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/bg.yml b/decidim-comments/config/locales/bg.yml
index 148a4aa89f35a..d8230f1ec7b74 100644
--- a/decidim-comments/config/locales/bg.yml
+++ b/decidim-comments/config/locales/bg.yml
@@ -129,12 +129,10 @@ bg:
email_intro: "%{author_name} остави коментар в %{resource_title}. Можете да го прочетете на тази страница:"
email_outro: Получихте това известие, защото следвате %{author_name}. Можете да спрете да следвате този потребител от страницата на неговия профил.
email_subject: Има нов коментар от %{author_name} в(ъв) %{resource_title}
- notification_title: Има нов коментар от
%{author_name} %{author_nickname} в(ъв)
%{resource_title}.
comment_created:
email_intro: "%{resource_title} получи коментар. Можете да прочетете коментара на тази страница:"
email_outro: Получавате това известие, защото следвате „%{resource_title}“ или неговия автор. Можете да прекратите следването от предходната връзка.
email_subject: Има нов коментар от %{author_name} по %{resource_title}
- notification_title: Има нов коментар от
%{author_name} %{author_nickname} по
%{resource_title}
comment_downvoted:
email_intro: Вашият коментар в „%{resource_title}“ беше гласуван против. Вече има общо %{upvotes} гласа за и %{downvotes} гласа против.
email_outro: Получихте това известие, защото вие сте авторът на този коментар.
@@ -149,12 +147,10 @@ bg:
email_intro: "%{author_name} отговори на вашия коментар в %{resource_title}. Можете да го прочетете на тази страница:"
email_outro: Получавате това известие, защото някой отговори на коментара Ви.
email_subject: "%{author_name} отговори на коментара Ви по %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} отговори на коментара Ви по
%{resource_title}
user_mentioned:
email_intro: Бяхте споменати
email_outro: Получавате това известие, защото бяхте споменати в(ъв) %{resource_title}.
email_subject: Бяхте споменати в(ъв) %{resource_title}
- notification_title:
%{author_name} %{author_nickname} Ви спомена в(ъв)
%{resource_title}
errors:
messages:
cannot_have_comments: не може да има коментари
diff --git a/decidim-comments/config/locales/ca-IT.yml b/decidim-comments/config/locales/ca-IT.yml
index a2adcbabcc8b8..0beab37df1e6e 100644
--- a/decidim-comments/config/locales/ca-IT.yml
+++ b/decidim-comments/config/locales/ca-IT.yml
@@ -166,12 +166,12 @@ ca-IT:
email_intro: "%{author_name} ha deixat un comentari a %{resource_title}. Podeu llegir-lo en aquesta pàgina:"
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.
email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
- notification_title: Hi ha un nou comentari per
%{author_name} %{author_nickname} a
%{resource_title}.
+ notification_title: Hi ha un nou comentari de
%{author_name} a
%{resource_title}.
comment_created:
email_intro: "Algú ha deixat un comentari a \"%{resource_title}\". Pots llegir el comentari a través del següent enllaç:"
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.
email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
- notification_title: Hi ha un nou comentari de
%{author_name} %{author_nickname} en
%{resource_title}
+ notification_title: Hi ha un nou comentari de
%{author_name} a
%{resource_title}
comment_downvoted:
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.
email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
@@ -186,12 +186,12 @@ ca-IT:
email_intro: "%{author_name} ha respost el teu comentari a %{resource_title}. Pots llegir-lo en aquesta pàgina:"
email_outro: Has rebut aquesta notificació perquè s'ha respost el teu comentari.
email_subject: "%{author_name} ha respost el teu comentari a %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha respost el teu comentari a
%{resource_title}
+ notification_title:
%{author_name} ha respost el teu comentari a
%{resource_title}
user_mentioned:
email_intro: Has estat esmentada
email_outro: Has rebut aquesta notificació perquè t'han esmentat al comentari "%{resource_title}".
email_subject: Has estat esmentada a %{resource_title}
- notification_title: Has estat esmentada a
%{resource_title} per
%{author_name} %{author_nickname}
+ notification_title: Has estat esmentada per
%{author_name} a
%{resource_title}
errors:
messages:
cannot_have_comments: no es poden fer comentaris
diff --git a/decidim-comments/config/locales/ca.yml b/decidim-comments/config/locales/ca.yml
index b91461cd0ea6a..c27215d561743 100644
--- a/decidim-comments/config/locales/ca.yml
+++ b/decidim-comments/config/locales/ca.yml
@@ -166,12 +166,12 @@ ca:
email_intro: "%{author_name} ha deixat un comentari a %{resource_title}. Podeu llegir-lo en aquesta pàgina:"
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.
email_subject: Hi ha un nou comentari de %{author_name} en %{resource_title}
- notification_title: Hi ha un nou comentari per
%{author_name} %{author_nickname} a
%{resource_title}.
+ notification_title: Hi ha un nou comentari de
%{author_name} a
%{resource_title}.
comment_created:
email_intro: "Algú ha deixat un comentari a \"%{resource_title}\". Pots llegir el comentari a través del següent enllaç:"
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.
email_subject: Hi ha un nou comentari de %{author_name} a %{resource_title}
- notification_title: Hi ha un nou comentari de
%{author_name} %{author_nickname} en
%{resource_title}
+ notification_title: Hi ha un nou comentari de
%{author_name} a
%{resource_title}
comment_downvoted:
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.
email_outro: Has rebut aquesta notificació perquè vas fer aquest comentari.
@@ -186,12 +186,12 @@ ca:
email_intro: "%{author_name} ha respost el teu comentari a %{resource_title}. Pots llegir-lo en aquesta pàgina:"
email_outro: Has rebut aquesta notificació perquè s'ha respost el teu comentari.
email_subject: "%{author_name} ha respost el teu comentari a %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha respost el teu comentari a
%{resource_title}
+ notification_title:
%{author_name} ha respost el teu comentari a
%{resource_title}
user_mentioned:
email_intro: Has estat esmentada
email_outro: Has rebut aquesta notificació perquè t'han esmentat al comentari "%{resource_title}".
email_subject: Has estat esmentada a %{resource_title}
- notification_title: Has estat esmentada a
%{resource_title} per
%{author_name} %{author_nickname}
+ notification_title: Has estat esmentada per
%{author_name} a
%{resource_title}
errors:
messages:
cannot_have_comments: no es poden fer comentaris
diff --git a/decidim-comments/config/locales/cs.yml b/decidim-comments/config/locales/cs.yml
index 4aaa8f11c10db..88e3474a81b7e 100644
--- a/decidim-comments/config/locales/cs.yml
+++ b/decidim-comments/config/locales/cs.yml
@@ -172,12 +172,12 @@ cs:
email_intro: "%{author_name} zanechal komentář v %{resource_title}. Můžete si je přečíst na této stránce:"
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.
email_subject: K dispozici je nový komentář %{author_name} v %{resource_title}
- notification_title: Je tu nový komentář
%{author_name} %{author_nickname} v
%{resource_title}.
+ notification_title: Nový komentář od
%{author_name} v
%{resource_title}.
comment_created:
email_intro: "%{resource_title} bylo komentováno. Můžete si přečíst komentář na této stránce:"
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.
email_subject: K dispozici je nový komentář od %{author_name} do %{resource_title}
- notification_title: Je tu nový komentář od
%{author_name} %{author_nickname} do
%{resource_title}
+ notification_title: Nový komentář od
%{author_name} v
%{resource_title}
comment_downvoted:
email_intro: Váš komentář v "%{resource_title}" byl nepodpořen. Nyní má celkem %{upvotes} hlasů podpory a %{downvotes} hlasuje proti.
email_outro: Obdrželi jste toto oznámení, protože jste autorem tohoto komentáře.
@@ -192,12 +192,10 @@ cs:
email_intro: "%{author_name} odpověděl váš komentář v %{resource_title}. Můžete si je přečíst na této stránce:"
email_outro: Toto oznámení jste obdrželi, protože váš komentář byl zodpovězen.
email_subject: "%{author_name} odpověděl váš komentář v %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} odpověděl na váš komentář v
%{resource_title}
user_mentioned:
email_intro: Byl jste zmíněn
email_outro: Toto oznámení jste obdrželi, protože jste byli uvedeni v %{resource_title}.
email_subject: Byl jste zmíněn v %{resource_title}
- notification_title: Byli jste zmíněni v
%{resource_title} od
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: nelze komentovat
diff --git a/decidim-comments/config/locales/de.yml b/decidim-comments/config/locales/de.yml
index a5e2d02f4bf41..70e38049dfc07 100644
--- a/decidim-comments/config/locales/de.yml
+++ b/decidim-comments/config/locales/de.yml
@@ -166,12 +166,10 @@ de:
email_intro: "%{author_name} hat einen Kommentar zu %{resource_title} hinterlassen. Sie können diesen auf dieser Seite lesen:"
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.
email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
- notification_title: Es gibt einen neuen Kommentar von
%{author_name} %{author_nickname} zu
%{resource_title}.
comment_created:
email_intro: "%{resource_title} wurde kommentiert. Sie können den Kommentar auf dieser Seite lesen:"
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.
email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
- notification_title: Es gibt einen neuen Kommentar von
%{author_name} %{author_nickname} zu
%{resource_title}
comment_downvoted:
email_intro: Ihr Kommentar in "%{resource_title}" wurde negativ bewertet. Er hat nun insgesamt %{upvotes} positive und %{downvotes} negative Stimmen.
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie der Autor des Vorschlags sind.
@@ -186,12 +184,10 @@ de:
email_intro: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet. Sie können das auf dieser Seite lesen:"
email_outro: Sie haben diese Benachrichtigung erhalten, weil Ihr Kommentar beantwortet wurde.
email_subject: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet"
- notification_title:
%{author_name} %{author_nickname} hat auf Ihren Kommentar in
%{resource_title} geantwortet
user_mentioned:
email_intro: Sie wurden erwähnt
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie in %{resource_title} erwähnt wurden.
email_subject: Sie wurden in %{resource_title} erwähnt
- notification_title: Sie wurden in
%{resource_title} von
%{author_name} %{author_nickname} erwähnt
errors:
messages:
cannot_have_comments: kann keine Kommentare haben
diff --git a/decidim-comments/config/locales/el.yml b/decidim-comments/config/locales/el.yml
index 491e626b53ad4..19c60dd301383 100644
--- a/decidim-comments/config/locales/el.yml
+++ b/decidim-comments/config/locales/el.yml
@@ -118,12 +118,10 @@ el:
email_intro: "Ο συντάκτης %{author_name} έκανε ένα σχόλιο στο στοιχείο %{resource_title}. Μπορείτε να το διαβάσετε σε αυτήν τη σελίδα:"
email_outro: Λάβατε αυτήν την ειδοποίηση επειδή ακολουθείτε τον συντάκτη %{author_name}. Μπορείτε να σταματήσετε να ακολουθείτε αυτόν τον χρήστη από τη σελίδα προφίλ του.
email_subject: Υπάρχει ένα νέο σχόλιο από τον συντάκτη %{author_name} στο στοιχείο %{resource_title}
- notification_title: Υπάρχει ένα νέο σχόλιο από τον συντάκτη
%{author_name} %{author_nickname} στο στοιχείο
%{resource_title}.
comment_created:
email_intro: "Το στοιχείο %{resource_title} έχει σχολιαστεί. Μπορείτε να διαβάσετε το σχόλιο σε αυτήν τη σελίδα:"
email_outro: Λάβατε αυτήν την ειδοποίηση επειδή ακολουθείτε το στοιχείο «%{resource_title}» ή τον συντάκτη του. Μπορείτε να σταματήσετε να την ακολουθείτε από τον προηγούμενο σύνδεσμο.
email_subject: Υπάρχει ένα νέο σχόλιο από τον συντάκτη %{author_name} στο στοιχείο %{resource_title}
- notification_title: Υπάρχει ένα νέο σχόλιο από τον συντάκτη
%{author_name} %{author_nickname} στο στοιχείο
%{resource_title}
comment_downvoted:
email_intro: Το σχόλιό σας στο "%{resource_title}" έχει καταψηφιστεί. Τώρα έχει συνολικές ψήφους %{upvotes} υπέρ και %{downvotes} κατά.
email_outro: Λάβατε αυτή την ειδοποίηση επειδή είστε ο συγγραφέας αυτού του σχολίου.
@@ -138,12 +136,10 @@ el:
email_intro: "Ο συντάκτης %{author_name} απάντησε στο σχόλιό σας στο στοιχείο %{resource_title}. Μπορείτε να το διαβάσετε σε αυτήν τη σελίδα:"
email_outro: Λάβατε αυτήν την ειδοποίηση, επειδή το σχόλιό σας απαντήθηκε.
email_subject: "Ο συντάκτης %{author_name} απάντησε στο σχόλιό σας στο στοιχείο %{resource_title}"
- notification_title: Ο συντάκτης
%{author_name} %{author_nickname} απάντησε στο σχόλιό σας στο στοιχείο
%{resource_title}
user_mentioned:
email_intro: Έγινε αναφορά σε εσάς
email_outro: Λάβατε αυτήν την ειδοποίηση επειδή έγινε αναφορά σε εσάς στο στοιχείο %{resource_title}.
email_subject: Έγινε αναφορά σε εσάς στο στοιχείο %{resource_title}
- notification_title: Έγινε αναφορά σε εσάς στο στοιχείο
%{resource_title} από τον συντάκτη
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: δεν μπορεί να έχει σχόλια
diff --git a/decidim-comments/config/locales/en.yml b/decidim-comments/config/locales/en.yml
index c3149702743ef..4748259a425ff 100644
--- a/decidim-comments/config/locales/en.yml
+++ b/decidim-comments/config/locales/en.yml
@@ -166,12 +166,12 @@ en:
email_intro: "%{author_name} has left a comment in %{resource_title}. You can read it in this page:"
email_outro: You have received this notification because you are following %{author_name}. You can unfollow this user from their profile page.
email_subject: There is a new comment by %{author_name} in %{resource_title}
- notification_title: There is a new comment by
%{author_name} %{author_nickname} in
%{resource_title}.
+ notification_title: There is a new comment by
%{author_name} in
%{resource_title}.
comment_created:
email_intro: "%{resource_title} has been commented. You can read the comment in this page:"
email_outro: You have received this notification because you are following "%{resource_title}" or its author. You can unfollow it from the previous link.
email_subject: There is a new comment from %{author_name} in %{resource_title}
- notification_title: There is a new comment from
%{author_name} %{author_nickname} in
%{resource_title}
+ notification_title: There is a new comment from
%{author_name} in
%{resource_title}
comment_downvoted:
email_intro: Your comment in "%{resource_title}" has been downvoted. It now has a total of %{upvotes} upvotes and %{downvotes} downvotes.
email_outro: You have received this notification because you are the author of this comment.
@@ -186,12 +186,12 @@ en:
email_intro: "%{author_name} has replied your comment in %{resource_title}. You can read it in this page:"
email_outro: You have received this notification because your comment was replied.
email_subject: "%{author_name} has replied your comment in %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} has replied your comment in
%{resource_title}
+ notification_title:
%{author_name} has replied your comment in
%{resource_title}
user_mentioned:
email_intro: You have been mentioned
email_outro: You have received this notification because you have been mentioned in %{resource_title}.
email_subject: You have been mentioned in %{resource_title}
- notification_title: You have been mentioned in
%{resource_title} by
%{author_name} %{author_nickname}
+ notification_title: You have been mentioned in
%{resource_title} by
%{author_name}
errors:
messages:
cannot_have_comments: cannot have comments
diff --git a/decidim-comments/config/locales/es-MX.yml b/decidim-comments/config/locales/es-MX.yml
index 3ba43c315d2f7..65456a3e7347c 100644
--- a/decidim-comments/config/locales/es-MX.yml
+++ b/decidim-comments/config/locales/es-MX.yml
@@ -166,12 +166,12 @@ es-MX:
email_intro: "%{author_name} ha dejado un comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque sigues "%{author_name}". Puedes dejar de seguirlo desde el enlace anterior.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}.
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}.
comment_created:
email_intro: "%{resource_title} ha sido comentado. Puedes leer el comentario en esta página:"
email_outro: Has recibido esta notificación porque está siguiendo "%{resource_title}" o su autor. Puedes dejar de seguirlo desde el enlace anterior.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}
comment_downvoted:
email_intro: Tu comentario en "%{resource_title}" ha sido votado negativamente. Ahora tiene un total de %{upvotes} votos positivos y %{downvotes} votos negativos.
email_outro: Has recibido esta notificación porque eres la autora de este comentario.
@@ -186,12 +186,12 @@ es-MX:
email_intro: "%{author_name} ha respondido a tu comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque tu comentario fue respondido.
email_subject: "%{author_name} ha respondido a tu comentario en %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha respondido a tu comentario en
%{resource_title}
+ notification_title:
%{author_name} ha respondido a tu comentario en
%{resource_title}
user_mentioned:
email_intro: Has sido mencionado
email_outro: Has recibido esta notificación porque has sido mencionado en %{resource_title}.
email_subject: Has sido mencionado en %{resource_title}
- notification_title: Has sido mencionado en
%{resource_title} por
%{author_name} %{author_nickname}
+ notification_title: Has sido mencionada por
%{author_name} en
%{resource_title}
errors:
messages:
cannot_have_comments: no se pueden hacer comentarios
diff --git a/decidim-comments/config/locales/es-PY.yml b/decidim-comments/config/locales/es-PY.yml
index 3aa3da9c833c6..3450516a3e2ee 100644
--- a/decidim-comments/config/locales/es-PY.yml
+++ b/decidim-comments/config/locales/es-PY.yml
@@ -166,12 +166,12 @@ es-PY:
email_intro: "%{author_name} ha dejado un comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque sigues "%{author_name}". Puedes dejar de seguirlo desde el enlace anterior.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}.
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}.
comment_created:
email_intro: "%{resource_title} ha sido comentado. Puedes leer el comentario en esta página:"
email_outro: Has recibido esta notificación porque está siguiendo "%{resource_title}" o su autor. Puedes dejar de seguirlo desde el enlace anterior.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}
comment_downvoted:
email_intro: Tu comentario en "%{resource_title}" ha sido votado negativamente. Ahora tiene un total de %{upvotes} votos positivos y %{downvotes} votos negativos.
email_outro: Has recibido esta notificación porque eres la autora de este comentario.
@@ -186,12 +186,12 @@ es-PY:
email_intro: "%{author_name} ha respondido a tu comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque tu comentario fue respondido.
email_subject: "%{author_name} ha respondido a tu comentario en %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha respondido a tu comentario en
%{resource_title}
+ notification_title:
%{author_name} ha respondido a tu comentario en
%{resource_title}
user_mentioned:
email_intro: Has sido mencionado
email_outro: Has recibido esta notificación porque has sido mencionado en %{resource_title}.
email_subject: Has sido mencionado en %{resource_title}
- notification_title: Has sido mencionado en
%{resource_title} por
%{author_name} %{author_nickname}
+ notification_title: Has sido mencionada por
%{author_name} en
%{resource_title}
errors:
messages:
cannot_have_comments: no se pueden hacer comentarios
diff --git a/decidim-comments/config/locales/es.yml b/decidim-comments/config/locales/es.yml
index b1541a7e81abf..3c9bbf72e8560 100644
--- a/decidim-comments/config/locales/es.yml
+++ b/decidim-comments/config/locales/es.yml
@@ -166,12 +166,12 @@ es:
email_intro: "%{author_name} ha dejado un comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque sigues a "%{author_name}". Puedes dejar de seguir a esta participante desde su página de perfil.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}.
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}.
comment_created:
email_intro: "Alguien ha dejado un comentario en \"%{resource_title}\". Puedes leer el comentario a través del siguiente enlace:"
email_outro: Has recibido esta notificación porque estás siguiendo el comentario "%{resource_title}" o a su autora. Puedes dejar de seguirla desde el enlace anterior.
email_subject: Hay un nuevo comentario de %{author_name} en %{resource_title}
- notification_title: Hay un nuevo comentario de
%{author_name} %{author_nickname} en
%{resource_title}
+ notification_title: Hay un nuevo comentario de
%{author_name} en
%{resource_title}
comment_downvoted:
email_intro: Tu comentario en "%{resource_title}" ha sido votado negativamente. Ahora tiene un total de %{upvotes} votos positivos y %{downvotes} votos negativos.
email_outro: Has recibido esta notificación porque hiciste este comentario.
@@ -186,12 +186,12 @@ es:
email_intro: "%{author_name} ha respondido a tu comentario en %{resource_title}. Puedes leerlo en esta página:"
email_outro: Has recibido esta notificación porque han respondido a tu comentario.
email_subject: "%{author_name} ha respondido a tu comentario en %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha respondido a tu comentario en
%{resource_title}
+ notification_title:
%{author_name} ha respondido a tu comentario en
%{resource_title}
user_mentioned:
email_intro: Has sido mencionada
email_outro: Has recibido esta notificación porque te han mencionado en el comentario "%{resource_title}".
email_subject: Has sido mencionada en %{resource_title}
- notification_title: Has sido mencionada en
%{resource_title} por
%{author_name} %{author_nickname}
+ notification_title: Has sido mencionada por
%{author_name} en
%{resource_title}
errors:
messages:
cannot_have_comments: no se pueden hacer comentarios
diff --git a/decidim-comments/config/locales/eu.yml b/decidim-comments/config/locales/eu.yml
index 7e3e6c3881fe4..52a87d647454f 100644
--- a/decidim-comments/config/locales/eu.yml
+++ b/decidim-comments/config/locales/eu.yml
@@ -166,12 +166,12 @@ eu:
email_intro: "%{author_name} egileak iruzkin bat utzi du %{resource_title} helbidean. Orri honetan irakur dezakezu:"
email_outro: Jakinarazpen hau jaso duzu %{author_name} parte-hartzailea jarraitzen duzulako. Nahi izatekotan erabiltzaile hori bere profil-orritik jarraitzeari utz diezaiokezu.
email_subject: '%{author_name} egileak beste iruzkin bat egin du hemen: %{resource_title}'
- notification_title: '
%{author_name} %{author_nickname} parte-hartzaileak iruzkin berri bat egin du hemen:
%{resource_title}.'
+ notification_title: '
%{author_name} egileak beste iruzkin bat egin du hemen:
%{resource_title}.'
comment_created:
email_intro: "Norbaitek iruzkin bat egin du hemen: %{resource_title}. Orri honetan irakur dezakezu:"
email_outro: Jakinarazpen hau jaso duzu "%{resource_title}" edo bere egilea jarraitzen duzulako. Aurreko estekan jarrai dezakezu.
email_subject: '%{author_name} egileak beste iruzkin berri bat egin du hemen: %{resource_title}'
- notification_title: '
%{author_name} %{author_nickname} parte-hartzaileak iruzkin berri bat egin du hemen:
%{resource_title}'
+ notification_title: '
%{author_name} egileak beste iruzkin bat egin du hemen:
%{resource_title}'
comment_downvoted:
email_intro: Zure iruzkina hemen "%{resource_title}" negatiboki bozkatu da. Orain %{upvotes} babes positibo eta %{downvotes} boto negatibo dituzu guztira.
email_outro: Jakinarazpen hau jaso duzu iruzkin honen egilea zarelako.
@@ -186,12 +186,12 @@ eu:
email_intro: "%{author_name} egileak zure iruzkina erantzun du hemen: %{resource_title}. Orri honetan irakur dezakezu:"
email_outro: Jakinarazpen hau jaso duzu zure iruzkinak erantzuna izan duelako.
email_subject: "%{author_name} parte-hartzaileak zure iruzkina erantzun du hemen: %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} -k zure iruzkinari erantzun dio hemen
%{resource_title}
+ notification_title: '
%{author_name} parte-hartzaileak zure iruzkina erantzun du hemen:
%{resource_title}'
user_mentioned:
email_intro: Aipatu zaituzte
email_outro: 'Jakinarazpen hau jaso duzu hemen aipatu zaituztelako: %{resource_title}.'
email_subject: 'Hemen: %{resource_title} aipatu zaituzte'
- notification_title: 'Hemen:
%{group_name} %{group_nickname} egile honek:
%{author_name} %{author_nickname} aipatu zaitu'
+ notification_title: '
%{author_name} parte-hartzaileak aipatu zaitu hemen:
%{resource_title}'
errors:
messages:
cannot_have_comments: ezin zaio iruzkinik egin
diff --git a/decidim-comments/config/locales/fi-plain.yml b/decidim-comments/config/locales/fi-plain.yml
index dc5c1766f4c64..104ce2ddd8a1f 100644
--- a/decidim-comments/config/locales/fi-plain.yml
+++ b/decidim-comments/config/locales/fi-plain.yml
@@ -166,12 +166,12 @@ fi-pl:
email_intro: "%{author_name} on jättänyt kommentin %{resource_title}. Voit lukea sen tällä sivulla:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat %{author_name}. Voit perua seuraamisen kyseisen käyttäjän profiilisivulta.
email_subject: '%{author_name} on jättänyt uuden kommentin kohtaan %{resource_title}'
- notification_title:
%{author_name} %{author_nickname} on jättänyt uuden kommentin kohtaan
%{resource_title}.
+ notification_title: Uusi kommentti osallistujalta
%{author_name} kohteeseen
%{resource_title}.
comment_created:
email_intro: "%{resource_title} on kommentoitu. Voit lukea kommentin tällä sivulla:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat "%{resource_title}" tai sen kirjoittajaa. Voit lopettaa seuraamisen edellä esitetyn linkin kautta.
email_subject: '%{author_name} on jättänyt uuden kommentin kohtaan %{resource_title}'
- notification_title:
%{author_name} %{author_nickname}on jättänyt uuden kommentin kohtaan
%{resource_title}
+ notification_title: Uusi kommentti osallistujalta
%{author_name} kohteeseen
%{resource_title}
comment_downvoted:
email_intro: Kommenttisi kohteessa "%{resource_title}" sai miinusäänen. Sillä on yhteensä %{upvotes} ääntä ja %{downvotes} miinusääntä.
email_outro: Tämä ilmoitus on lähetetty sinulle, koska olet jättänyt tämän kommentin.
@@ -186,12 +186,12 @@ fi-pl:
email_intro: "%{author_name} on vastannut kommentiisi kohdassa %{resource_title}. Voit lukea sen tällä sivulla:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska kommenttiisi vastattiin.
email_subject: "%{author_name} on vastannut kommentiisi %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} on vastannut kommentiisi kohdassa
%{resource_title}
+ notification_title:
%{author_name} vastasi kommenttiisi kohteessa
%{resource_title}
user_mentioned:
email_intro: Sinut on mainittu
email_outro: Tämä ilmoitus on lähetetty sinulle, koska sinut on mainittu kohdssa %{resource_title}.
email_subject: Sinut on mainittu kohdassa %{resource_title}
- notification_title:
%{author_name} %{author_nickname} on maininnut sinut kohdassa
%{resource_title}
+ notification_title:
%{author_name} on maininnut sinut kohteessa
%{resource_title}
errors:
messages:
cannot_have_comments: ei voi sisältää kommentteja
diff --git a/decidim-comments/config/locales/fi.yml b/decidim-comments/config/locales/fi.yml
index a023942f43431..0cd2cd3e01c3e 100644
--- a/decidim-comments/config/locales/fi.yml
+++ b/decidim-comments/config/locales/fi.yml
@@ -166,12 +166,12 @@ fi:
email_intro: "%{author_name} on jättänyt kommentin kohteessa %{resource_title}. Voit lukea sen sivulta:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat osallistujaa %{author_name}. Voit perua seuraamisen kyseisen osallistujan profiilisivulta.
email_subject: '%{author_name} on jättänyt uuden kommentin kohteessa %{resource_title}'
- notification_title:
%{author_name} %{author_nickname} on jättänyt uuden kommentin kohteessa
%{resource_title}.
+ notification_title: Uusi kommentti osallistujalta
%{author_name} kohteeseen
%{resource_title}.
comment_created:
email_intro: "%{resource_title} on kommentoitu. Voit lukea kommentin sivulta:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat "%{resource_title}" tai sen kirjoittajaa. Voit lopettaa seuraamisen edellä esitetyn linkin kautta.
email_subject: '%{author_name} on jättänyt uuden kommentin kohteessa %{resource_title}'
- notification_title:
%{author_name} %{author_nickname}on jättänyt uuden kommentin kohteessa
%{resource_title}
+ notification_title: Uusi kommentti osallistujalta
%{author_name} kohteeseen
%{resource_title}
comment_downvoted:
email_intro: Kommenttisi kohteessa "%{resource_title}" sai miinusäänen. Sillä on yhteensä %{upvotes} ääntä ja %{downvotes} miinusääntä.
email_outro: Tämä ilmoitus on lähetetty sinulle, koska olet jättänyt tämän kommentin.
@@ -186,12 +186,12 @@ fi:
email_intro: "%{author_name} on vastannut kommentiisi kohdassa %{resource_title}. Voit lukea sen sivulta:"
email_outro: Tämä ilmoitus on lähetetty sinulle, koska kommenttiisi vastattiin.
email_subject: "%{author_name} on vastannut kommentiisi %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} on vastannut kommentiisi kohteessa
%{resource_title}
+ notification_title:
%{author_name} vastasi kommenttiisi kohteessa
%{resource_title}
user_mentioned:
email_intro: Sinut on mainittu
email_outro: Tämä ilmoitus on lähetetty sinulle, koska sinut on mainittu kohteessa %{resource_title}.
email_subject: Sinut on mainittu kohdassa %{resource_title}
- notification_title:
%{author_name} %{author_nickname} on maininnut sinut kohteessa
%{resource_title}
+ notification_title:
%{author_name} on maininnut sinut kohteessa
%{resource_title}
errors:
messages:
cannot_have_comments: ei voi sisältää kommentteja
diff --git a/decidim-comments/config/locales/fr-CA.yml b/decidim-comments/config/locales/fr-CA.yml
index cb0342cb75e31..66679775951f5 100644
--- a/decidim-comments/config/locales/fr-CA.yml
+++ b/decidim-comments/config/locales/fr-CA.yml
@@ -160,12 +160,10 @@ fr-CA:
email_intro: "%{author_name} a laissé un commentaire dans %{resource_title}. Vous pouvez le lire sur la page suivante :"
email_outro: Vous avez reçu cette notification, car vous suivez %{author_name}. Vous pouvez vous désabonner de cet utilisateur depuis sa page de profil.
email_subject: Un nouveau commentaire vient d'être déposé par %{author_name} dans %{resource_title}
- notification_title: Un nouveau commentaire a été publié par
%{author_name} %{author_nickname} dans
%{resource_title}.
comment_created:
email_intro: "%{resource_title} a été commenté. Vous pouvez lire le commentaire sur cette page :"
email_outro: Vous venez de recevoir cette notification parce que vous suivez "%{resource_title}" ou son auteur. Vous pouvez vous désabonner à partir du lien précédant.
email_subject: Un nouveau commentaire vient d'être publié par %{author_name} dans %{resource_title}
- notification_title: Un nouveau commentaire de
%{author_name} %{author_nickname} vient d'être publié dans
%{resource_title}
comment_downvoted:
email_intro: Votre commentaire sur "%{resource_title}" a reçu un vote défavorable. Il a maintenant un total de %{upvotes} votes positifs et %{downvotes} votes négatifs.
email_outro: Vous avez reçu cette notification parce que vous êtes l'auteur de ce commentaire.
@@ -180,12 +178,10 @@ fr-CA:
email_intro: "%{author_name} a répondu à votre commentaire dans %{resource_title}. Vous pouvez le lire depuis la page suivante :"
email_outro: Vous venez de recevoir une notification à votre commentaire.
email_subject: "%{author_name} a répondu à votre commentaire dans %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} a réagi à votre commentaire sur
%{resource_title}
user_mentioned:
email_intro: Vous avez été mentionné
email_outro: Vous avez reçu cette notification parce que vous avez été mentionné dans %{resource_title}.
email_subject: Vous avez été mentionné dans %{resource_title}
- notification_title: Vous avez été mentionné dans
%{resource_title} par
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: ne peut pas avoir de commentaires
diff --git a/decidim-comments/config/locales/fr.yml b/decidim-comments/config/locales/fr.yml
index a65c86b2d6405..266b81d51a190 100644
--- a/decidim-comments/config/locales/fr.yml
+++ b/decidim-comments/config/locales/fr.yml
@@ -160,12 +160,10 @@ fr:
email_intro: "%{author_name} a laissé un commentaire dans %{resource_title}. Vous pouvez le lire sur la page suivante :"
email_outro: Vous avez reçu cette notification, car vous suivez %{author_name}. Vous pouvez vous désabonner de cet utilisateur depuis sa page de profil, ou bien vous rendre dans l'onglet “Mon compte” > “Paramètres des notifications”.
email_subject: Un nouveau commentaire vient d'être déposé par %{author_name} dans %{resource_title}
- notification_title: Un nouveau commentaire a été publié par
%{author_name} %{author_nickname} dans
%{resource_title}.
comment_created:
email_intro: "%{resource_title} a été commenté. Vous pouvez lire le commentaire sur cette page :"
email_outro: Vous venez de recevoir cette notification parce que vous suivez "%{resource_title}" ou son auteur. Si vous souhaitez vous désabonner des notifications, connectez-vous à la plateforme, puis rendez-vous dans l'onglet “Mon compte” > “Paramètres des notifications”.
email_subject: Un nouveau commentaire vient d'être publié par %{author_name} dans %{resource_title}
- notification_title: Un nouveau commentaire de
%{author_name} %{author_nickname} vient d'être publié dans
%{resource_title}
comment_downvoted:
email_intro: Votre commentaire sur "%{resource_title}" a reçu un vote défavorable. Il a maintenant un total de %{upvotes} votes positifs et %{downvotes} votes négatifs.
email_outro: Vous avez reçu cette notification parce que vous êtes l'auteur de ce commentaire. Si vous souhaitez vous désabonner des notifications, connectez-vous à la plateforme, puis rendez-vous dans l'onglet “Mon compte” > “Paramètres des notifications”.
@@ -180,12 +178,10 @@ fr:
email_intro: "%{author_name} a répondu à votre commentaire dans %{resource_title}. Vous pouvez le lire depuis la page suivante :"
email_outro: Vous avez reçu cette notification parce que votre commentaire a reçu une réponse. Si vous souhaitez vous désabonner des notifications, connectez-vous à la plateforme, puis rendez-vous dans l'onglet “Mon compte” > “Paramètres des notifications”.
email_subject: "%{author_name} a répondu à votre commentaire dans %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} a réagi à votre commentaire sur
%{resource_title}
user_mentioned:
email_intro: Vous avez été mentionné
email_outro: Vous avez reçu cette notification parce que vous avez été mentionné dans %{resource_title}. Si vous souhaitez vous désabonner des notifications, connectez-vous à la plateforme, puis rendez-vous dans l'onglet “Mon compte” > “Paramètres des notifications”.
email_subject: Vous avez été mentionné dans %{resource_title}
- notification_title: Vous avez été mentionné dans
%{resource_title} par
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: ne peut pas avoir de commentaires
diff --git a/decidim-comments/config/locales/gl.yml b/decidim-comments/config/locales/gl.yml
index fe35e52385796..b6285b22841f9 100644
--- a/decidim-comments/config/locales/gl.yml
+++ b/decidim-comments/config/locales/gl.yml
@@ -109,19 +109,15 @@ gl:
email_intro: "%{author_name} deixou un comentario en %{resource_title}. Podes lelo nesta páxina:"
email_outro: Recibiches esta notificación porque estás seguindo %{author_name}. Podes deixar de seguir este usuario desde a súa páxina de perfil.
email_subject: Hai un novo comentario por %{author_name} en %{resource_title}
- notification_title: Hai un novo comentario
%{author_name} %{author_nickname} en
%{resource_title}.
comment_created:
email_intro: "Comentouse %{resource_title} . Podes ler o comentario nesta páxina:"
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.
email_subject: Hai un novo comentario de %{author_name} en %{resource_title}
- notification_title: Hai un novo comentario de
%{author_name} %{author_nickname} en
%{resource_title}
reply_created:
email_intro: "%{author_name} respondeu o teu comentario en %{resource_title}. Podes lelo nesta páxina:"
email_outro: Recibiches esta notificación porque o teu comentario foi respondido.
email_subject: "%{author_name} respondeu o teu comentario en %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} respondeu o seu comentario en
%{resource_title}
user_mentioned:
email_intro: Foi mencionado
email_outro: Recibiches esta notificación porque foi mencionado en %{resource_title}.
email_subject: Foi mencionado en %{resource_title}
- notification_title: Foi mencionado en
%{resource_title} por
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/hu.yml b/decidim-comments/config/locales/hu.yml
index 53184bc357bbc..b1c86df2eb59b 100644
--- a/decidim-comments/config/locales/hu.yml
+++ b/decidim-comments/config/locales/hu.yml
@@ -120,12 +120,10 @@ hu:
email_intro: "%{author_name} megjegyzést hagyott itt: %{resource_title}. Ezen az oldalon megtalálod:"
email_outro: 'Ezt az értesítést azért kaptad, mert ezt követed: "%{author_name}". Leiratkozás az előző link segítségével.'
email_subject: '%{author_name} új megjegyzése itt: %{resource_title}'
- notification_title: 'Új megjegyzés:
%{author_name} %{author_nickname} %{resource_title}.'
comment_created:
email_intro: "A \"%{resource_title}\" témához megjegyzést fűzött valaki. Itt tudod elolvasni:"
email_outro: 'Ezt az értesítést azért kaptad, mert ezt (vagy ennek szerzőjét) követed: "%{resource_title}". Ha szeretnél, a link segítségével leiratkozhatsz.'
email_subject: 'Új megjegyzés érkezett ehhez: %{resource_title}, tőle: %{author_name}'
- notification_title: 'Új megjegyzés tőle:
%{author_name} %{author_nickname}, ehhez:
%{resource_title}'
comment_downvoted:
email_intro: A hozzászólásod itt %{resource_title} leszavazásra került. Most %{upvotes} szavazat van mellette és %{downvotes} ellene.
email_outro: Ezt az értesítést kaptad, mert te vagy a hozzászólás szerzője.
@@ -140,12 +138,10 @@ hu:
email_intro: "%{author_name} megjegyzést fűzött ehhez: %{resource_title}. Ezen az oldalon megtalálod:"
email_outro: Ezt az értesítést azért kaptad, mert valaki választolt a mejegyzésedre.
email_subject: "%{author_name} megjegyzést tett a kommentedhez itt: %{resource_title}"
- notification_title: '
%{author_name} %{author_nickname} válaszolt a megjegyzésedre itt:
%{resource_title}'
user_mentioned:
email_intro: Valaki említette a neved
email_outro: Ezt az értesítést azért kaptad, mert korábban megemlítettek a(z) "%{resource_title}" témában.
email_subject: Megemlítettek a(z) %{resource_title} témában
- notification_title: '
%{author_name} %{author_nickname} megemlített itt:
%{resource_title}'
errors:
messages:
cannot_have_comments: nem adhat hozzá hozzászólásokat
diff --git a/decidim-comments/config/locales/id-ID.yml b/decidim-comments/config/locales/id-ID.yml
index b35bbcea8c149..d73359f9d99a5 100644
--- a/decidim-comments/config/locales/id-ID.yml
+++ b/decidim-comments/config/locales/id-ID.yml
@@ -63,19 +63,15 @@ id:
email_intro: "%{author_name} telah menulis komentar dalam %{resource_title}. Anda dapat membacanya di halaman ini:"
email_outro: Anda telah menerima pemberitahuan ini karena Anda mengikuti %{author_name}. Anda dapat berhenti mengikuti pengguna ini dari halaman profil mereka.
email_subject: Ada komentar baru dengan %{author_name} in %{resource_title}
- notification_title: Ada komentar baru oleh
%{author_name} %{author_nickname} di
%{resource_title}.
comment_created:
email_intro: "%{resource_title} telah dikomentari. Anda dapat membaca komentar di halaman ini:"
email_outro: Anda telah menerima pemberitahuan ini karena Anda mengikuti "%{resource_title}" atau penulisnya. Anda dapat berhenti mengikutinya dari tautan sebelumnya.
email_subject: Ada komentar baru dari %{author_name} in %{resource_title}
- notification_title: Ada komentar baru dari
%{author_name} %{author_nickname} di
%{resource_title}
reply_created:
email_intro: "%{author_name} telah membalas komentar Anda dalam %{resource_title}. Anda dapat membacanya di halaman ini:"
email_outro: Anda telah menerima pemberitahuan ini karena komentar Anda dijawab.
email_subject: "%{author_name} telah membalas komentar Anda dalam %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} telah menjawab komentar Anda di
%{resource_title}
user_mentioned:
email_intro: Anda telah disebutkan
email_outro: Anda telah menerima pemberitahuan ini karena Anda telah disebutkan dalam %{resource_title}.
email_subject: Anda telah disebutkan dalam %{resource_title}
- notification_title: Anda telah disebutkan dalam
%{resource_title} oleh
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/is-IS.yml b/decidim-comments/config/locales/is-IS.yml
index c5fe3702d91a8..8226c8af09682 100644
--- a/decidim-comments/config/locales/is-IS.yml
+++ b/decidim-comments/config/locales/is-IS.yml
@@ -41,19 +41,15 @@ is:
email_intro: "%{author_name} hefur skilið eftir athugasemd í %{resource_title}. Þú getur lesið það á þessari síðu:"
email_outro: Þú hefur fengið þessa tilkynningu vegna þess að þú fylgist með %{author_name}. Þú getur sleppt þessari notanda frá prófílssíðunni sinni.
email_subject: Það er nýtt ummæli um %{author_name} í %{resource_title}
- notification_title: Það er nýtt ummæli við
%{author_name} %{author_nickname} í
%{resource_title}.
comment_created:
email_intro: "%{resource_title} hefur verið skrifað ummæli. Þú getur lesið athugasemdina á þessari síðu:"
email_outro: Þú hefur fengið þessa tilkynningu vegna þess að þú fylgist með "%{resource_title}" eða höfundinum. Þú getur sleppt því frá fyrri tengilinn.
email_subject: Það er nýtt ummæli frá %{author_name} í %{resource_title}
- notification_title: Það er nýtt ummæli frá
%{author_name} %{author_nickname} í
%{resource_title}
reply_created:
email_intro: "%{author_name} hefur svarað ummæli þín í %{resource_title}. Þú getur lesið það á þessari síðu:"
email_outro: Þú hefur fengið þessa tilkynningu vegna þess að ummæli þín voru svarað.
email_subject: "%{author_name} hefur svarað ummæli þín í %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} hefur svarað athugasemd þinni í
%{resource_title}
user_mentioned:
email_intro: Þú hefur verið nefndur
email_outro: Þú hefur fengið þessa tilkynningu vegna þess að þú hefur verið nefndur í %{resource_title}.
email_subject: Þú hefur verið nefndur í %{resource_title}
- notification_title: Þú hefur verið nefndur í
%{resource_title} af
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/it.yml b/decidim-comments/config/locales/it.yml
index da5e388dd0cae..9e6b2bd99fef5 100644
--- a/decidim-comments/config/locales/it.yml
+++ b/decidim-comments/config/locales/it.yml
@@ -109,12 +109,10 @@ it:
email_intro: "%{author_name} ha lasciato un commento in %{resource_title}. Puoi leggerlo in questa pagina:"
email_outro: Hai ricevuto questa notifica perché stai seguendo %{author_name}. Puoi smettere di seguire questo utente dalla pagina del profilo.
email_subject: C'è un nuovo commento di %{author_name} in %{resource_title}
- notification_title: C'è un nuovo commento di
%{author_name} %{author_nickname} in
%{resource_title}.
comment_created:
email_intro: "%{resource_title} è stato commentato. Puoi leggere il commento in questa pagina:"
email_outro: Hai ricevuto questa notifica perché stai seguendo "%{resource_title}" o il suo autore. Puoi smettere di seguirlo dal link precedente.
email_subject: C'è un nuovo commento da %{author_name} in %{resource_title}
- notification_title: C'è un nuovo commento da
%{author_name} %{author_nickname} in
%{resource_title}
comment_downvoted:
email_intro: Il tuo commento in "%{resource_title}" ha ricevuto un voto negativo. Ora ha un totale di %{upvotes} voti positivi e %{downvotes} voti negativi.
email_outro: Hai ricevuto questa notifica perché sei l'autore di questo commento.
@@ -129,9 +127,7 @@ it:
email_intro: "%{author_name} ha risposto il tuo commento in %{resource_title}. Puoi leggerlo in questa pagina:"
email_outro: Hai ricevuto questa notifica perché il tuo commento è stato risposto.
email_subject: "%{author_name} ha risposto il tuo commento in %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ha risposto il tuo commento in
%{resource_title}
user_mentioned:
email_intro: Sei stato menzionato
email_outro: Hai ricevuto questa notifica perché sei stato citato in %{resource_title}.
email_subject: Sei stato menzionato in %{resource_title}
- notification_title: Sei stato citato in
%{resource_title} di
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/ja.yml b/decidim-comments/config/locales/ja.yml
index cd756fe4b7909..f33b4314274f7 100644
--- a/decidim-comments/config/locales/ja.yml
+++ b/decidim-comments/config/locales/ja.yml
@@ -158,12 +158,12 @@ ja:
email_intro: "%{author_name} は %{resource_title}にコメントを残しました。このページで読むことができます:"
email_outro: '%{author_name}をフォローしているため、この通知を受け取りました。プロフィールページからこのユーザーのフォローを解除することができます。'
email_subject: '%{author_name} から %{resource_title} に対して新しいコメントがあります'
- notification_title:
%{author_name} %{author_nickname} より
%{resource_title} に対して新しいコメントがあります.
+ notification_title:
%{author_name} が
%{resource_title} にコメントしました。
comment_created:
email_intro: "%{resource_title} にコメントがありました。このページでコメントを読むことができます:"
email_outro: '"%{resource_title}" 、またはその参加者をフォローしているためこの通知を受け取りました。前のリンクからフォローを解除することができます。'
email_subject: '%{author_name} から %{resource_title} に対して新しいコメントがあります'
- notification_title:
%{author_name} %{author_nickname} から
%{resource_title} に対して新しいコメントがあります
+ notification_title:
%{author_name} が
%{resource_title} にコメントしました
comment_downvoted:
email_intro: '"%{resource_title}" でのあなたの意見への反対票がありました。現在の合計は、賛成票が %{upvotes} 件、反対票が %{downvotes} 件です。'
email_outro: このコメントの作成者であるため、この通知を受け取りました。
@@ -178,12 +178,12 @@ ja:
email_intro: "%{author_name} は %{resource_title}であなたのコメントを返信しました。このページで読むことができます:"
email_outro: コメントが返信されたため、この通知を受信しました。
email_subject: "%{author_name} が %{resource_title} であなたのコメントに返信しました"
- notification_title:
%{author_name} %{author_nickname} が
%{resource_title} であなたのコメントに返信しました
+ notification_title:
%{author_name} が
%{resource_title} でのあなたのコメントに返答しました
user_mentioned:
email_intro: あなたはメンションされています
email_outro: あなたが %{resource_title}でメンションされたため、この通知を受け取りました。
email_subject: あなたは %{resource_title} でメンションされました
- notification_title: あなたは
%{resource_title} で
%{author_name} %{author_nickname}によってメンションされました
+ notification_title:
%{author_name} が
%{resource_title} でのコメントであなたに言及しました
errors:
messages:
cannot_have_comments: コメントを持つことはできません
diff --git a/decidim-comments/config/locales/lb.yml b/decidim-comments/config/locales/lb.yml
index 392f2beb05fc1..e7b20246d4156 100644
--- a/decidim-comments/config/locales/lb.yml
+++ b/decidim-comments/config/locales/lb.yml
@@ -101,12 +101,10 @@ lb:
email_intro: "%{author_name} hat einen Kommentar zu %{resource_title} hinterlassen. Sie können diesen auf dieser Seite lesen:"
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.
email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
- notification_title: Es gibt einen neuen Kommentar von
%{author_name} %{author_nickname} zu
%{resource_title}.
comment_created:
email_intro: "%{resource_title} wurde kommentiert. Sie können den Kommentar auf dieser Seite lesen:"
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.
email_subject: Neuer Kommentar von %{author_name} zu %{resource_title}
- notification_title: Es gibt einen neuen Kommentar von
%{author_name} %{author_nickname} zu
%{resource_title}
comment_downvoted:
email_intro: Ihr Kommentar in "%{resource_title}" wurde negativ bewertet. Er hat nun insgesamt %{upvotes} positive und %{downvotes} negative Stimmen.
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie der Autor des Vorschlags sind.
@@ -121,9 +119,7 @@ lb:
email_intro: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet. Sie können das auf dieser Seite lesen:"
email_outro: Sie haben diese Benachrichtigung erhalten, weil Ihr Kommentar beantwortet wurde.
email_subject: "%{author_name} hat auf Ihren Kommentar zu %{resource_title} geantwortet"
- notification_title:
%{author_name} %{author_nickname} hat auf Ihren Kommentar in
%{resource_title} geantwortet
user_mentioned:
email_intro: Sie wurden erwähnt
email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie in %{resource_title} erwähnt wurden.
email_subject: Sie wurden in %{resource_title} erwähnt
- notification_title: Sie wurden in
%{resource_title} von
%{author_name} %{author_nickname} erwähnt
diff --git a/decidim-comments/config/locales/lt.yml b/decidim-comments/config/locales/lt.yml
index 005741749ad0a..9e8958cb8fd90 100644
--- a/decidim-comments/config/locales/lt.yml
+++ b/decidim-comments/config/locales/lt.yml
@@ -131,12 +131,10 @@ lt:
email_intro: "%{author_name} pakomentavo %{resource_title}. Komentarą galite perskaityti:"
email_outro: Gavote šį pranešimą nes sekate %{author_name}. Galite pasirinkti nebesekti šio naudotojo jo profilio puslapyje.
email_subject: Naujas komentaras %{resource_title} iš %{author_name}
- notification_title: Naujas komentaras
%{resource_title} iš
%{author_name}%{author_nickname}.
comment_created:
email_intro: "%{resource_title} pateiktas komentaras. Komentarą galite perskaityti šiame puslapyje:"
email_outro: Šį pranešimą gavote dėl to, kad sekate „%{resource_title}“ arba jo autorių. Jūs galite jo nebesekti spustelėdami aukščiau esančią nuorodą.
email_subject: '%{author_name} paliko naują komentarą %{resource_title}'
- notification_title:
%{author_name} %{author_nickname} paliko naują komentarą
%{resource_title}
comment_downvoted:
email_intro: Jūsų komentaras %{resource_title} buvo nepakaikyas. Komentaras dabar turi %{upvotes} palaikymus ir %{downvotes} nepalaikymus.
email_outro: Šį pranešimą gavote dėl to, kad esate pasiūlymo autorius.
@@ -151,12 +149,10 @@ lt:
email_intro: "%{author_name} atsakė į komentarą %{resource_title}. Galite jį perskaityti:"
email_outro: Gavote šį pranešimą nes į Jūsų komentarą buvo atsakyta.
email_subject: "%{author_name} atsakė į komentarą %{resource_title}"
- notification_title:
%{author_name}%{author_nickname} atsakė į komentarą
%{resource_title}
user_mentioned:
email_intro: Buvote paminėta(-s)
email_outro: Gavote šį pranešimą nes buvote paminėta(-s) %{resource_title}.
email_subject: Buvote paminėta(-s) %{resource_title}
- notification_title: Buvote paminėta(-s)
%{resource_title}%{author_name}%{author_nickname}
errors:
messages:
cannot_have_comments: negali turėti komentarų
diff --git a/decidim-comments/config/locales/lv.yml b/decidim-comments/config/locales/lv.yml
index 6d84a2784b68c..fde112fc1cda8 100644
--- a/decidim-comments/config/locales/lv.yml
+++ b/decidim-comments/config/locales/lv.yml
@@ -69,19 +69,15 @@ lv:
email_intro: "%{author_name} ir atstājis komentāru %{resource_title}. Jūs to varat izlasīt šajā lapā:"
email_outro: Jūs saņēmāt šo paziņojumu, jo sekojat %{author_name}. Jūs varat atsekot šim lietotājam viņa profila lapā.
email_subject: '%{resource_title} ir jauns%{author_name} komentārs'
- notification_title:
%{author_name}%{author_nickname} ir jauns komentārs
%{resource_title}.
comment_created:
email_intro: "%{resource_title} ir komentēts. Jūs varat izlasīt komentāru šajā lapā:"
email_outro: Jūs saņēmāt šo paziņojumu, jo sekojat "%{resource_title}" vai tā autoram. Jūs varat atsekot tam no iepriekšējās saites.
email_subject: '%{resource_title} ir jauns %{author_name} komentārs'
- notification_title:
%{author_name}%{author_nickname} ir jauns komentārs
%{resource_title}
reply_created:
email_intro: "%{author_name} atbildēja uz jūsu komentāru %{resource_title}. Jūs to varat izlasīt šajā lapā:"
email_outro: Jūs saņēmāt šo paziņojumu, jo kāds atbildēja uz jūsu komentāru.
email_subject: "%{author_name} atbildēja uz jūsu komentāru %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} atbildēja uz jūsu komentāru
%{resource_title}
user_mentioned:
email_intro: Jūs esat pieminēts
email_outro: Jūs saņēmāt šo paziņojumu, jo esat pieminēts %{resource_title}.
email_subject: Jūs esat pieminēts %{resource_title}
- notification_title:
%{resource_title} jūs pieminēja
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/nl.yml b/decidim-comments/config/locales/nl.yml
index e2d1d916e6cb6..19446a09b9cdb 100644
--- a/decidim-comments/config/locales/nl.yml
+++ b/decidim-comments/config/locales/nl.yml
@@ -110,12 +110,10 @@ nl:
email_intro: "%{author_name} heeft een reactie achtergelaten in %{resource_title}. Je kan het lezen op deze pagina:"
email_outro: Je hebt deze melding ontvangen omdat je %{author_name}volgt. Je kan deze gebruiker ontvolgen via zijn profielpagina.
email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
- notification_title: Er is een nieuwe reactie van
%{author_name} %{author_nickname} in
%{resource_title}.
comment_created:
email_intro: "%{resource_title} heeft een reactie ontvangen. Je kan de opmerking op deze pagina lezen:"
email_outro: Je hebt deze melding ontvangen omdat je '%{resource_title}' of de auteur ervan volgt. Ontvolgen kan door te klikken op de vorige link.
email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
- notification_title: Er is een nieuwe reactie van
%{author_name} %{author_nickname} in
%{resource_title}
comment_downvoted:
email_intro: Je reactie in "%{resource_title}" kreeg een tegenstem. Het heeft nu een totaal van %{upvotes} stemmen 'voor' en %{downvotes} stemmen 'tegen'.
email_outro: Je hebt deze melding ontvangen omdat je de auteur bent van deze reactie.
@@ -130,9 +128,7 @@ nl:
email_intro: "%{author_name} heeft gereageerd op jouw opmerking in %{resource_title}. Lees het via deze link:"
email_outro: Je hebt deze melding ontvangen omdat je reactie beantwoord is.
email_subject: "%{author_name} heeft op je comment gereageerd in %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} heeft gereageerd op je opmerking in
%{resource_title}
user_mentioned:
email_intro: Iemand heeft je getagd
email_outro: Je hebt deze melding ontvangen omdat je bent getagd in %{resource_title}.
email_subject: Je bent getagd in %{resource_title}
- notification_title: Je bent getagd in
%{resource_title} door
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/no.yml b/decidim-comments/config/locales/no.yml
index 141047a49485b..98f455b3d04f6 100644
--- a/decidim-comments/config/locales/no.yml
+++ b/decidim-comments/config/locales/no.yml
@@ -108,12 +108,10 @@
email_intro: "%{author_name} har lagt igjen en kommentar i %{resource_title}. Du kan lese den på denne siden:"
email_outro: Du har mottatt denne varslingen fordi du følger %{author_name}. Du kan slutte å følge denne brukeren fra dems profil side.
email_subject: Det er en ny kommentar av %{author_name} i %{resource_title}
- notification_title: Det er en ny kommentar av
%{author_name} %{author_nickname} i
%{resource_title}.
comment_created:
email_intro: "%{resource_title} har blitt kommentert. Du kan lese kommentaren på denne siden:"
email_outro: Du har mottatt denne varslingen fordi du følger "%{resource_title}" eller dens forfatter. Du kan slutte å følge den fra den forrige lenken.
email_subject: Det er en ny kommentar fra %{author_name} i %{resource_title}
- notification_title: Det er en ny kommentar fra
%{author_name} %{author_nickname} i
%{resource_title}
comment_downvoted:
email_intro: Din kommentar i "%{resource_title}" har blitt stemt ned. Den har nå totalt %{upvotes} stemmer opp og %{downvotes} stemmer ned.
email_outro: Du har mottatt dette varselet fordi du er forfatteren av denne kommentaren.
@@ -128,9 +126,7 @@
email_intro: "%{author_name} har svart kommentaren din i %{resource_title}. Du kan lese den på denne siden:"
email_outro: Du har mottatt denne varslingen fordi din kommentar er besvart.
email_subject: "%{author_name} har svart kommentaren din i %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} har svart kommentaren din i
%{resource_title}
user_mentioned:
email_intro: Du har blitt nevnt
email_outro: Du har mottatt denne varslingen fordi du er nevnt i %{resource_title}.
email_subject: Du har blitt nevnt i %{resource_title}
- notification_title: Du har blitt nevnt i
%{resource_title} av
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/pl.yml b/decidim-comments/config/locales/pl.yml
index aaaa5e2eeec42..9e4aaf2ee5be3 100644
--- a/decidim-comments/config/locales/pl.yml
+++ b/decidim-comments/config/locales/pl.yml
@@ -134,12 +134,10 @@ pl:
email_intro: "%{author_name} dodał(a) komentarz do %{resource_title}. Możesz przeczytać go na tej stronie:"
email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz %{author_name}. Możesz usunąć użytkownika z obserwowanych na jego stronie profilowej.
email_subject: Jest nowy komentarz dodany przez %{author_name} do %{resource_title}
- notification_title: Pojawił się nowy komentarz dodany przez
%{author_name} %{author_nickname} do
%{resource_title}.
comment_created:
email_intro: "Nowy komentarz: %{resource_title}. Możesz go przeczytać na tej stronie:"
email_outro: Otrzymujesz to powiadomienie, ponieważ obserwujesz "%{resource_title}" lub jego autora. Możesz przestać go obserwować po kliknięciu w poprzedni link.
email_subject: Jest nowy komentarz od %{author_name} do %{resource_title}
- notification_title: Pojawił się nowy komentarz
%{author_name} %{author_nickname} do
%{resource_title}
comment_downvoted:
email_intro: Twój komentarz do "%{resource_title}" dostał głos przeciw. Teraz ma %{upvotes} głosów za i %{downvotes} głosów przeciw.
email_outro: Otrzymałeś to powiadomienie, ponieważ jesteś autorem komentarza.
@@ -154,12 +152,10 @@ pl:
email_intro: "%{author_name} odpowiedział na Twój komentarz do %{resource_title}. Możesz przeczytać go na tej stronie:"
email_outro: Otrzymałeś to powiadomienie, ponieważ odpowiedziano na Twój komentarz.
email_subject: "%{author_name} odpowiedział(a) na Twój komentarz do %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} odpowiedział(a) na Twój komentarz do
%{resource_title}
user_mentioned:
email_intro: Wspomniano o Tobie
email_outro: Otrzymałeś to powiadomienie, ponieważ wspomniano o Tobie w %{resource_title}.
email_subject: Wspomniano o Tobie w %{resource_title}
- notification_title:
%{author_name} %{author_nickname} wspomniał(a) o Tobie w
%{resource_title}
errors:
messages:
cannot_have_comments: nie może mieć komentarzy
diff --git a/decidim-comments/config/locales/pt-BR.yml b/decidim-comments/config/locales/pt-BR.yml
index a9853f9b2495b..a23e8ffbbf47e 100644
--- a/decidim-comments/config/locales/pt-BR.yml
+++ b/decidim-comments/config/locales/pt-BR.yml
@@ -166,12 +166,10 @@ pt-BR:
email_intro: "%{author_name} deixou um comentário em %{resource_title}. Você pode lê-lo nesta página:"
email_outro: Você recebeu esta notificação porque está seguindo %{author_name}. Você pode deixar de seguir esse usuário em sua página de perfil.
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
- notification_title: Há um novo comentário por
%{author_name} %{author_nickname} em
%{resource_title}.
comment_created:
email_intro: "%{resource_title} foi comentado. Você pode ler o comentário nesta página:"
email_outro: Você recebeu esta notificação porque você está seguindo "%{resource_title}" ou seu autor. Você pode ignorá-lo do link anterior.
email_subject: Há um novo comentário de %{author_name} em %{resource_title}
- notification_title: Há um novo comentário de
%{author_name} %{author_nickname} em
%{resource_title}
comment_downvoted:
email_intro: Seu comentário em%{resource_title}" foi negado. Agora tem um total de %{upvotes} votos positivos e %{downvotes} votos negativos.
email_outro: Você recebeu esta notificação porque é o autor deste comentário.
@@ -186,12 +184,10 @@ pt-BR:
email_intro: "%{author_name} respondeu seu comentário em %{resource_title}. Você pode lê-lo nesta página:"
email_outro: Você recebeu esta notificação porque o seu comentário foi respondido.
email_subject: "%{author_name} respondeu seu comentário em %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} respondeu seu comentário em
%{resource_title}
user_mentioned:
email_intro: Você foi mencionado
email_outro: Você recebeu esta notificação porque você foi mencionado em %{resource_title}.
email_subject: Você foi mencionado em %{resource_title}
- notification_title: Você foi mencionado em
%{resource_title} por
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: não pode ter comentários
diff --git a/decidim-comments/config/locales/pt.yml b/decidim-comments/config/locales/pt.yml
index 1ea9bbef8f17f..5541416c12964 100644
--- a/decidim-comments/config/locales/pt.yml
+++ b/decidim-comments/config/locales/pt.yml
@@ -108,12 +108,10 @@ pt:
email_intro: "%{author_name} deixou um comentário em %{resource_title}. Pode lê-lo nesta página:"
email_outro: Recebeu esta notificação porque segue %{author_name}. pode deixar de seguir este utilizador a partir da respetiva página de perfil.
email_subject: Há um novo comentário por %{author_name} em %{resource_title}
- notification_title: Há um novo comentário por
%{author_name} %{author_nickname} em
%{resource_title}.
comment_created:
email_intro: "%{resource_title} foi comentado. Você pode ler o comentário nesta página:"
email_outro: Recebeu esta notificação porque segue "%{resource_title}" ou o seu autor. Pode deixar de segui-lo a partir da ligação anterior.
email_subject: Há um novo comentário de %{author_name} em %{resource_title}
- notification_title: Há um novo comentário de
%{author_name} %{author_nickname} em
%{resource_title}
comment_downvoted:
email_intro: O seu comentário em "%{resource_title}” foi desvalorizado. Tem agora um total de %{upvotes} valorizações e %{downvotes} desvalorizações.
email_outro: Recebeu esta notificação porque é o autor deste comentário.
@@ -128,9 +126,7 @@ pt:
email_intro: "%{author_name} respondeu ao seu comentário em %{resource_title}. Pode lê-lo nesta página:"
email_outro: Recebeu esta notificação porque responderam ao seu comentário.
email_subject: "%{author_name} respondeu ao seu comentário em %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} respondeu ao seu comentário em
%{resource_title}
user_mentioned:
email_intro: Foi mencionado(a)
email_outro: Recebeu esta notificação porque foi mencionado(a) em %{resource_title}.
email_subject: Foi mencionado(a) em %{resource_title}
- notification_title: Você foi mencionado em
%{resource_title} por
%{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/ro-RO.yml b/decidim-comments/config/locales/ro-RO.yml
index fe554b523ab3b..de053d3bf306e 100644
--- a/decidim-comments/config/locales/ro-RO.yml
+++ b/decidim-comments/config/locales/ro-RO.yml
@@ -174,12 +174,10 @@ ro:
email_intro: "%{author_name} a lăsat un comentariu în %{resource_title}. Îl puteți citi pe această pagină:"
email_outro: Ați primit această notificare deoarece urmăriți activitatea lui %{author_name}. Puteți să nu urmăriți acest utilizator de pe pagina lui de profil.
email_subject: Există un nou comentariu de la %{author_name} pentru %{resource_title}
- notification_title: Există un comentariu nou de la
%{author_name} %{author_nickname} pentru
%{resource_title}.
comment_created:
email_intro: "%{resource_title} a primit un comentariu. Poți citi comentariul pe această pagină:"
email_outro: Ați primit această notificare deoarece urmăriți „%{resource_title}” sau pe autorii săi. Puteți anula abonarea de la link-ul anterior.
email_subject: Există un comentariu nou de la %{author_name} pentru %{resource_title}
- notification_title: Există un comentariu nou de la
%{author_name} %{author_nickname} pentru
%{resource_title}
comment_downvoted:
email_intro: Comentariul dumneavoastră pentru "%{resource_title}" a primit un vot nefavorabil. Acesta are acum un total de %{upvotes} voturi favorabile și %{downvotes} voturi nefavorabile.
email_outro: Ați primit această notificare deoarece sunteți autorul acestui comentariu.
@@ -194,12 +192,10 @@ ro:
email_intro: "%{author_name} a răspuns la comentariul dumneavoastră pentru %{resource_title}. Îl poți citi în această pagină:"
email_outro: Ați primit această notificare deoarece comentariul dumneavoastră a fost răspuns.
email_subject: "%{author_name} a răspuns la comentariul dumneavoastră pentru %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} a răspuns la comentariul dumneavoastră pentru
%{resource_title}
user_mentioned:
email_intro: Ați fost menționat(ă)
email_outro: Ați primit această notificare deoarece ați fost menționat(ă) în %{resource_title}.
email_subject: Ați fost menționat(ă) în %{resource_title}
- notification_title: Ați fost menționat(ă) în
%{resource_title} de către
%{author_name} %{author_nickname}
errors:
messages:
cannot_have_comments: nu poate avea comentarii
diff --git a/decidim-comments/config/locales/ru.yml b/decidim-comments/config/locales/ru.yml
index 1df6b707d2032..18e7a32da63c6 100644
--- a/decidim-comments/config/locales/ru.yml
+++ b/decidim-comments/config/locales/ru.yml
@@ -69,19 +69,15 @@ ru:
email_intro: "%{author_name} оставил комментарий в %{resource_title}. Вы можете прочитать его на странице:"
email_outro: Вы получили это уведомление, потому что вы следите за %{author_name}. Вы можете отписаться от таких уведомлений, перейдя на страницу профиля этого участника.
email_subject: В %{resource_title} появился новый комментарий от %{author_name}
- notification_title: В
%{resource_title} появился новый комментарий от
%{author_name} %{author_nickname}.
comment_created:
email_intro: "%{resource_title} прокомментировали. Вы можете прочитать комментарий на странице:"
email_outro: Вы получили это уведомление, потому что вы следите за «%{resource_title}». Вы можете перестать за ним следить, перейдя по приведенной выше ссылке.
email_subject: В %{resource_title} появился новый комментарий от %{author_name}
- notification_title: В
%{resource_title} появился новый комментарий от
%{author_name} %{author_nickname}
reply_created:
email_intro: "%{author_name} ответил на ваш комментарий в %{resource_title}. Вы можете прочитать его на странице:"
email_outro: Вы получили это уведомление, потому что на ваш комментарий был дан ответ.
email_subject: "%{author_name} ответил на ваш комментарий в %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} ответил на ваш комментарий в
%{resource_title}
user_mentioned:
email_intro: Вы были упомянуты
email_outro: Вы получили это уведомление, потому что вы были упомянуты в %{resource_title}.
email_subject: Вы были упомянуты в %{resource_title}
- notification_title:
%{author_name} %{author_nickname} упомянул вас в
%{resource_title}
diff --git a/decidim-comments/config/locales/sk.yml b/decidim-comments/config/locales/sk.yml
index 4743f6531fa1c..1cb3212e7a7ac 100644
--- a/decidim-comments/config/locales/sk.yml
+++ b/decidim-comments/config/locales/sk.yml
@@ -182,12 +182,10 @@ sk:
email_intro: "%{author_name} komentoval na %{resource_title}. Môžete si to prečítať na stránke:"
email_outro: Túto notifikáciu ste dostali, pretože sledujete autora "%{author_name}". Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
email_subject: Je nový komentár od %{author_name} na %{resource_title}
- notification_title: Je nový komentár od
%{author_name}%{author_nickname} na
%{resource_title}.
comment_created:
email_intro: "%{resource_title} bol okomentovaný. Komentár si môžete prečítať na stránke:"
email_outro: Túto notifikáciu ste dostali, pretože sledujete "%{resource_title}" alebo autora. Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
email_subject: Je nový komentár od %{author_name} na %{resource_title}
- notification_title: Je nový komentár od
%{author_name}%{author_nickname} na
%{resource_title}
comment_downvoted:
email_intro: Váš komentár v „%{resource_title}“ získal negatívny hlas. Teraz má celkovo %{upvotes} pozitívnych hlasov a %{downvotes} negatívnych hlasov.
email_outro: Toto upozornenie ste dostali, pretože ste autorom tohto komentára.
@@ -202,12 +200,10 @@ sk:
email_intro: "%{author_name} odpovedal na váš komentár na %{resource_title}. Môžete si to prečítať na stránke:"
email_outro: Túto notifikáciu ste dostali, pretože niekto odpovedal na Váš komentár.
email_subject: "%{author_name} odpovedal na Váš komentár na %{resource_title}"
- notification_title:
%{author_name}%{author_nickname} odpovedal na váš komentár na
%{resource_title}
user_mentioned:
email_intro: Niekto vás spomenul
email_outro: Túto notifikáciu ste dostali, pretože ste boli spomenutí na %{resource_title}.
email_subject: Boli ste spomenutí na %{resource_title}
- notification_title: Boli ste spomenutí
%{author_name}%{author_nickname} na
%{resource_title}
errors:
messages:
cannot_have_comments: nemôže mať komentáre
diff --git a/decidim-comments/config/locales/sv.yml b/decidim-comments/config/locales/sv.yml
index 1afde3b57dfeb..4bd842908c214 100644
--- a/decidim-comments/config/locales/sv.yml
+++ b/decidim-comments/config/locales/sv.yml
@@ -166,12 +166,12 @@ sv:
email_intro: "%{author_name} har lämnat en kommentar i %{resource_title}. Du kan läsa den på den här sidan:"
email_outro: Du har fått den här notisen eftersom du följer %{author_name}. Du kan avfölja den här användaren från deras profilsida.
email_subject: Det finns en ny kommentar av %{author_name} i %{resource_title}
- notification_title: Det finns en ny kommentar av
%{author_name} %{author_nickname} i
%{resource_title}.
+ notification_title: Det finns en ny kommentar av
%{author_name} i
%{resource_title}.
comment_created:
email_intro: "%{resource_title} har kommenterats. Du kan läsa kommentaren på den här sidan:"
email_outro: Du har fått det här meddelandet eftersom du följer "%{resource_title}" eller dess författare. Du kan avfölja det från föregående länk.
email_subject: Det finns en ny kommentar från %{author_name} i %{resource_title}
- notification_title: Det finns en ny kommentar från
%{author_name} %{author_nickname} i
%{resource_title}
+ notification_title: Det finns en ny kommentar från
%{author_name} i
%{resource_title}
comment_downvoted:
email_intro: Din kommentar i "%{resource_title}" har blivit nedröstad. Den har nu totalt %{upvotes} uppröster och %{downvotes} nedröster.
email_outro: Du har fått det här meddelandet eftersom du är författare till denna kommentar.
@@ -186,12 +186,12 @@ sv:
email_intro: "%{author_name} har svarat din kommentar i %{resource_title}. Du kan läsa den på den här sidan:"
email_outro: Du har fått denna notis eftersom din kommentar blev besvarad.
email_subject: "%{author_name} har svarat din kommentar i %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} har svarat din kommentar i
%{resource_title}
+ notification_title:
%{author_name} besvarade din kommentar i
%{resource_title}
user_mentioned:
email_intro: Du har nämnts
email_outro: Du har fått denna notis eftersom du har nämnts i %{resource_title}.
email_subject: Du har nämnts i %{resource_title}
- notification_title: Du har nämnts i
%{resource_title} av
%{author_name} %{author_nickname}
+ notification_title: Du har nämnts i
%{resource_title} av
%{author_name}
errors:
messages:
cannot_have_comments: kan inte ha kommentarer
diff --git a/decidim-comments/config/locales/tr-TR.yml b/decidim-comments/config/locales/tr-TR.yml
index e9a58de9904d6..5f0b63ef52039 100644
--- a/decidim-comments/config/locales/tr-TR.yml
+++ b/decidim-comments/config/locales/tr-TR.yml
@@ -82,19 +82,15 @@ tr:
email_intro: "%{author_name} grubu %{resource_title} alanında bir yorum bıraktı. Bu sayfada okuyabilirsiniz:"
email_outro: Bu bildirimi %{author_name} adlı yazarı takip ettiğiniz için aldınız. Bu grubu profil sayfasından takip etmeyi bırakabilirsiniz.
email_subject: '%{author_name} %{resource_title} alanında yeni bir yorum yaptı'
- notification_title:
%{resource_title} içinde
%{author_name} %{author_nickname} tarafından yeni bir yorum var.
comment_created:
email_intro: "%{resource_title} alanında yorum yapıldı. Bu sayfadaki yorumu okuyabilirsiniz:"
email_outro: '"%{resource_title}" alanında veya yazarı takip ettiğiniz için bu bildirimi aldınız. Bunu önceki linkten takip edebilirsiniz.'
email_subject: '%{author_name}, %{resource_title} alanında yeni bir yorum yaptı'
- notification_title:
%{resource_title} içinde
%{author_name} %{author_nickname} tarafından yeni bir yorum var
reply_created:
email_intro: "%{author_name}, yorumunuzu %{resource_title} alanında yanıtladı. Bu sayfada okuyabilirsiniz:"
email_outro: Yorumunuz yanıtlandığı için bu bildirimi aldınız.
email_subject: "%{author_name}, yorumunuzu %{resource_title} alanında yanıtladı"
- notification_title:
%{author_name} %{author_nickname} %{resource_title} alanında yorumunuzu yanıtladı
user_mentioned:
email_intro: Sen bahsedildin
email_outro: Bu bildirimi, sizden %{resource_title} alanında bahsedildiği için aldınız.
email_subject: '%{resource_title} alanında bahsedildiniz'
- notification_title:
%{resource_title} alanında
%{author_name} %{author_nickname} tarafından bahsedildi
diff --git a/decidim-comments/config/locales/uk.yml b/decidim-comments/config/locales/uk.yml
index c04966696aacb..b7e8ad3cc80c2 100644
--- a/decidim-comments/config/locales/uk.yml
+++ b/decidim-comments/config/locales/uk.yml
@@ -64,19 +64,15 @@ uk:
email_intro: "%{author_name} залишив коментар у %{resource_title}. Ви можете прочитати його на сторінці:"
email_outro: Ви отримали це сповіщення, тому що ви стежите за %{author_name}. Ви можете припинити стежити за ним на сторінці його профілю.
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
- notification_title: У
%{resource_title} з'явився новий коментар від
%{author_name} %{author_nickname}.
comment_created:
email_intro: "%{resource_title} прокоментували. Ви можете прочитати коментар на сторінці:"
email_outro: Ви отримали це сповіщення, тому що ви стежите за "%{resource_title}". Ви можете припинити стежити за ним, перейшовши за наведеним вище посиланням.
email_subject: У %{resource_title} з'явився новий коментар від %{author_name}
- notification_title: У
%{resource_title} з'явився новий коментар від
%{author_name} %{author_nickname}
reply_created:
email_intro: "%{author_name} відповів на ваш коментар у %{resource_title}. Ви можете прочитати його на сторінці:"
email_outro: Ви отримали це сповіщення, оскільки на ваш коментар відповіли.
email_subject: "%{author_name} відповів на ваш коментар у %{resource_title}"
- notification_title:
%{author_name} %{author_nickname} відповів на ваш коментар у
%{resource_title}
user_mentioned:
email_intro: Вас згадали
email_outro: Ви отримали це сповіщення, оскільки вас згадали в %{resource_title}.
email_subject: Вас згадали у %{resource_title}
- notification_title:
%{author_name} %{author_nickname} згадав вас у
%{resource_title}
diff --git a/decidim-comments/config/locales/zh-CN.yml b/decidim-comments/config/locales/zh-CN.yml
index 46135b9a3213d..f31df3c8ef66e 100644
--- a/decidim-comments/config/locales/zh-CN.yml
+++ b/decidim-comments/config/locales/zh-CN.yml
@@ -70,19 +70,15 @@ zh-CN:
email_intro: "%{author_name} 在 %{resource_title}留下了一条评论。您可以在这个页面阅读:"
email_outro: 您收到此通知是因为您正在关注 %{author_name}。您可以从其个人资料页面取消关注此用户。
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
- notification_title:
%{author_name} %{author_nickname} 在
%{resource_title} 有新的评论。
comment_created:
email_intro: "%{resource_title} 已被评论。您可以阅读此页面中的评论:"
email_outro: 您收到此通知是因为您正在关注"%{resource_title}"或其作者。您可以从上一个链接取消关注它。
email_subject: '%{author_name} 在 %{resource_title} 有一个新评论'
- notification_title: 来自
%{author_name} %{author_nickname} 的新评论
%{resource_title}
reply_created:
email_intro: "%{author_name} 在 %{resource_title}回复了您的评论。您可以在这个页面阅读:"
email_outro: 您收到此通知是因为您的评论已被回复。
email_subject: "%{author_name} 在 %{resource_title} 回复了您的评论"
- notification_title:
%{author_name} %{author_nickname} 回复了您在
%{resource_title}
user_mentioned:
email_intro: 您已被提到。
email_outro: 您收到此通知是因为您已在 %{resource_title} 中被提及。
email_subject: 您已在 %{resource_title} 中被提及了
- notification_title: 您在
%{resource_title}中提到 %{author_name} %{author_nickname}
diff --git a/decidim-comments/config/locales/zh-TW.yml b/decidim-comments/config/locales/zh-TW.yml
index 5dedceaba11aa..32834b5a6d4d6 100644
--- a/decidim-comments/config/locales/zh-TW.yml
+++ b/decidim-comments/config/locales/zh-TW.yml
@@ -114,12 +114,10 @@ zh-TW:
email_intro: "%{author_name} 在%{resource_title} 留下了一則評論。您可以在此頁面上閱讀它:"
email_outro: 您收到此通知是因為您正在關注%{author_name}。您可以從他們的個人資料頁面取消關注該用戶。
email_subject: '%{author_name} 在%{resource_title} 發表了一則新的評論'
- notification_title: 在
%{resource_title}中,
%{author_name} %{author_nickname}有了一個新的評論。
comment_created:
email_intro: "%{resource_title} 已被評論。您可以在此頁面中閱讀評論:"
email_outro: 您收到此通知是因為您正在關注「%{resource_title}」或其作者。您可以從上面的連結取消關注。
email_subject: '%{resource_title}」有新的評論來自 %{author_name}'
- notification_title: 在
%{resource_title}有新的評論來自
%{author_name} %{author_nickname}
comment_downvoted:
email_intro: 您在「%{resource_title}」的評論已經倒讚。它現在的評分是 %{upvotes} 個讚和 %{downvotes} 個倒讚。
email_outro: 您收到此通知是因為您是此評論的作者。
@@ -134,12 +132,10 @@ zh-TW:
email_intro: "%{author_name} 已回覆你在%{resource_title} 中的評論。你可以在此頁面上閱讀:"
email_outro: 你收到此通知是因為有人回覆了你的評論。
email_subject: "%{author_name} 回覆了你在 %{resource_title} 中的評論。"
- notification_title:
%{author_name} %{author_nickname} 在
%{resource_title} 中回覆了你的評論。
user_mentioned:
email_intro: 您已被提及
email_outro: 您收到了此通知,因為您被提及在 %{resource_title} 中。
email_subject: 您被提及在 %{resource_title} 中
- notification_title: 您被
%{author_name} %{author_nickname} 在
%{resource_title} 中提及。
errors:
messages:
cannot_have_comments: 無法評論
diff --git a/decidim-comments/lib/decidim/comments/engine.rb b/decidim-comments/lib/decidim/comments/engine.rb
index 19ffe5ee7a258..9dc0165676ef0 100644
--- a/decidim-comments/lib/decidim/comments/engine.rb
+++ b/decidim-comments/lib/decidim/comments/engine.rb
@@ -34,17 +34,6 @@ class Engine < ::Rails::Engine
Decidim::Api::MutationType.include MutationExtensions
end
- initializer "decidim_comments.stats" do
- Decidim.stats.register :comments_count,
- priority: StatsRegistry::HIGH_PRIORITY,
- icon_name: "chat-1-line",
- tooltip_key: "comments_count" do |organization|
- Decidim.component_manifests.sum do |component|
- component.stats.filter(tag: :comments).with_context(organization.published_components).map { |_name, value| value }.compact_blank.sum
- end
- end
- end
-
initializer "decidim_comments.register_icons" do
common_parameters = { category: "action", engine: :comments }
diff --git a/decidim-comments/lib/decidim/comments/version.rb b/decidim-comments/lib/decidim/comments/version.rb
index 471472f070ffd..cc6c8accfc11c 100644
--- a/decidim-comments/lib/decidim/comments/version.rb
+++ b/decidim-comments/lib/decidim/comments/version.rb
@@ -4,7 +4,7 @@ module Decidim
# This holds the decidim-comments version.
module Comments
def self.version
- "0.31.4"
+ "0.31.7"
end
end
end
diff --git a/decidim-comments/spec/events/decidim/comments/comment_by_followed_user_event_spec.rb b/decidim-comments/spec/events/decidim/comments/comment_by_followed_user_event_spec.rb
index 857bb1906fbea..6717c6db40f03 100644
--- a/decidim-comments/spec/events/decidim/comments/comment_by_followed_user_event_spec.rb
+++ b/decidim-comments/spec/events/decidim/comments/comment_by_followed_user_event_spec.rb
@@ -12,7 +12,7 @@ module Comments
let(:email_subject) { "There is a new comment by #{author_name} in #{resource_title}" }
let(:email_intro) { "#{author_name} has left a comment in #{resource_title}. You can read it in this page:" }
let(:email_outro) { "You have received this notification because you are following #{author_name}. You can unfollow this user from their profile page." }
- let(:notification_title) { "There is a new comment by
#{author_name} #{author_nickname} in
#{resource_title}." }
+ let(:notification_title) { "There is a new comment by
#{author_name} in
#{resource_title}." }
it_behaves_like "a simple event email"
it_behaves_like "a simple event notification"
diff --git a/decidim-comments/spec/events/decidim/comments/comment_created_event_spec.rb b/decidim-comments/spec/events/decidim/comments/comment_created_event_spec.rb
index c64f9f2f3526e..4c4c29dd828a5 100644
--- a/decidim-comments/spec/events/decidim/comments/comment_created_event_spec.rb
+++ b/decidim-comments/spec/events/decidim/comments/comment_created_event_spec.rb
@@ -8,7 +8,7 @@
let(:email_subject) { "There is a new comment from #{comment_author.name} in #{resource_title}" }
let(:email_intro) { "#{resource_title} has been commented. You can read the comment in this page:" }
let(:email_outro) { "You have received this notification because you are following \"#{resource_title}\" or its author. You can unfollow it from the previous link." }
- let(:notification_title) { "There is a new comment from
#{comment_author.name} @#{comment_author.nickname} in
#{resource_title}" }
+ let(:notification_title) { "There is a new comment from
#{comment_author.name} in
#{resource_title}" }
it_behaves_like "a simple event email"
it_behaves_like "a simple event notification"
diff --git a/decidim-comments/spec/events/decidim/comments/reply_created_event_spec.rb b/decidim-comments/spec/events/decidim/comments/reply_created_event_spec.rb
index f234f31ab892d..0ab0483ee18e5 100644
--- a/decidim-comments/spec/events/decidim/comments/reply_created_event_spec.rb
+++ b/decidim-comments/spec/events/decidim/comments/reply_created_event_spec.rb
@@ -11,7 +11,7 @@
let(:email_subject) { "#{comment_author_name} has replied your comment in #{resource_title}" }
let(:email_intro) { "#{comment_author_name} has replied your comment in #{resource_title}. You can read it in this page:" }
let(:email_outro) { "You have received this notification because your comment was replied." }
- let(:notification_title) { "
#{comment_author_name} @#{comment_author.nickname} has replied your comment in
#{resource_title}" }
+ let(:notification_title) { "
#{comment_author_name} has replied your comment in
#{resource_title}" }
it_behaves_like "a simple event email"
it_behaves_like "a simple event notification"
diff --git a/decidim-comments/spec/events/decidim/comments/user_mentioned_event_spec.rb b/decidim-comments/spec/events/decidim/comments/user_mentioned_event_spec.rb
index eff70c46b9ab7..3140401efa54b 100644
--- a/decidim-comments/spec/events/decidim/comments/user_mentioned_event_spec.rb
+++ b/decidim-comments/spec/events/decidim/comments/user_mentioned_event_spec.rb
@@ -22,7 +22,7 @@
let(:author) { create(:user, organization:) }
let!(:comment) { create(:comment, body:, author:, commentable:) }
let(:user) { create(:user, organization:, locale: "ca") }
- let(:notification_title) { "You have been mentioned in
#{resource_title} by
#{author.name} @#{author.nickname}" }
+ let(:notification_title) { "You have been mentioned in
#{resource_title} by
#{author.name}" }
let(:email_subject) { "You have been mentioned in #{resource_title}" }
let(:email_intro) { "You have been mentioned" }
let(:email_outro) { "You have received this notification because you have been mentioned in #{resource_title}." }
@@ -34,7 +34,7 @@
describe "resource_text" do
it "correctly renders comments with mentions" do
expect(subject.resource_text).not_to include("gid://")
- expect(subject.resource_text).to include("@#{author.nickname}")
+ expect(subject.resource_text).to include(author.nickname)
end
end
diff --git a/decidim-comments/spec/system/order_comments_spec.rb b/decidim-comments/spec/system/order_comments_spec.rb
index 840e481d93339..2ef4d6e3bd00d 100644
--- a/decidim-comments/spec/system/order_comments_spec.rb
+++ b/decidim-comments/spec/system/order_comments_spec.rb
@@ -51,6 +51,20 @@
expect(page).to have_select("order", selected: "Best rated", wait: 5)
end
+ it "keeps the focus on the sort dropdown after changing the order", :js, :slow do
+ within ".comment-order-by" do
+ page.evaluate_script("document.getElementById('order').focus()")
+ select "Best rated", from: "order"
+ end
+
+ within(".comment-threads", wait: 5) do
+ expect(page).to have_css("div:first-child#comment_#{best_rated_comment.id}", wait: 5)
+ end
+
+ expect(page).to have_select("order", selected: "Best rated", wait: 5)
+ expect(page.evaluate_script("document.activeElement.id")).to eq("order")
+ end
+
it "user selects \"Most discussed\" as sorting criteria", :js, :slow do
within ".comment-order-by" do
select "Most discussed", from: "order"
diff --git a/decidim-conferences/app/forms/decidim/conferences/admin/conference_duplicate_form.rb b/decidim-conferences/app/forms/decidim/conferences/admin/conference_duplicate_form.rb
index 9ed61b5790805..ec41dccabba9c 100644
--- a/decidim-conferences/app/forms/decidim/conferences/admin/conference_duplicate_form.rb
+++ b/decidim-conferences/app/forms/decidim/conferences/admin/conference_duplicate_form.rb
@@ -23,7 +23,7 @@ class ConferenceDuplicateForm < Form
private
def slug_uniqueness
- return unless OrganizationConferences.new(current_organization).query.where(slug:).where.not(id:).any?
+ return unless OrganizationConferences.new(current_organization).query.with_deleted.where(slug:).where.not(id:).any?
errors.add(:slug, :taken)
end
diff --git a/decidim-conferences/app/forms/decidim/conferences/admin/conference_form.rb b/decidim-conferences/app/forms/decidim/conferences/admin/conference_form.rb
index 3595389a31d2a..6a1b4fdd30bc0 100644
--- a/decidim-conferences/app/forms/decidim/conferences/admin/conference_form.rb
+++ b/decidim-conferences/app/forms/decidim/conferences/admin/conference_form.rb
@@ -90,7 +90,7 @@ def available_slots_greater_than_or_equal_to_registrations_count
end
def slug_uniqueness
- return unless OrganizationConferences.new(current_organization).query.where(slug:).where.not(id: context[:conference_id]).any?
+ return unless OrganizationConferences.new(current_organization).query.where(slug:).with_deleted.where.not(id: context[:conference_id]).any?
errors.add(:slug, :taken)
end
diff --git a/decidim-conferences/app/helpers/decidim/conferences/conference_helper.rb b/decidim-conferences/app/helpers/decidim/conferences/conference_helper.rb
index be78362b94eb1..61c3de9df7b57 100644
--- a/decidim-conferences/app/helpers/decidim/conferences/conference_helper.rb
+++ b/decidim-conferences/app/helpers/decidim/conferences/conference_helper.rb
@@ -42,7 +42,7 @@ def conference_nav_items(participatory_space)
next unless Decidim::Meetings::Meeting.where(component:).published.not_hidden.visible_for(current_user).exists?
items << {
- name: decidim_escape_translated(component.name),
+ name: translated_attribute(component.name),
url: decidim_conferences.conference_conference_program_path(participatory_space, id: component.id)
}
end
@@ -63,7 +63,7 @@ def conference_nav_items(participatory_space)
other_components.each do |component|
items << {
- name: decidim_escape_translated(component.name),
+ name: translated_attribute(component.name),
url: main_component_path(component)
}
end
diff --git a/decidim-conferences/app/views/decidim/conferences/admin/conferences/_actions.html.erb b/decidim-conferences/app/views/decidim/conferences/admin/conferences/_actions.html.erb
index 6f582175f0e97..ea922d3ffd4f9 100644
--- a/decidim-conferences/app/views/decidim/conferences/admin/conferences/_actions.html.erb
+++ b/decidim-conferences/app/views/decidim/conferences/admin/conferences/_actions.html.erb
@@ -88,7 +88,7 @@
<% if conference.published? %>
<% end %>
-<% form.fields_for :images, form.object.images do |images_fields| %>
+<% form.fields_for :images, content_block.images_container do |images_fields| %>
<%= images_fields.upload :background_image, label: t("decidim.content_blocks.cta_settings_form.background_image"), button_class: "button button__sm button__transparent-secondary" %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/static_page/section_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/static_page/section_settings_form/show.erb
index ac27d57bcae47..7abe6a09ffd73 100644
--- a/decidim-core/app/cells/decidim/content_blocks/static_page/section_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/static_page/section_settings_form/show.erb
@@ -1,3 +1,5 @@
<% form.fields_for :settings, form.object.settings do |settings_fields| %>
- <%= settings_fields.translated :editor, :content, label: %>
+
+ <%= settings_fields.translated :editor, :content, label: %>
+
<% end %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/static_page/summary_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/static_page/summary_settings_form/show.erb
index 56da1bba50a83..ad4ce22227733 100644
--- a/decidim-core/app/cells/decidim/content_blocks/static_page/summary_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/static_page/summary_settings_form/show.erb
@@ -1,3 +1,5 @@
<% form.fields_for :settings, form.object.settings do |settings_fields| %>
- <%= settings_fields.translated :editor, :summary, label: %>
+
+ <%= settings_fields.translated :editor, :summary, label: %>
+
<% end %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form/show.erb
index 06b9adf32e15c..1f9c9e88cb41f 100644
--- a/decidim-core/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form/show.erb
@@ -1,4 +1,6 @@
<% form.fields_for :settings, form.object.settings do |settings_fields| %>
- <%= settings_fields.translated :editor, :left_column, label: label_left_column %>
- <%= settings_fields.translated :editor, :right_column, label: label_right_column %>
+
+ <%= settings_fields.translated :editor, :left_column, label: label_left_column %>
+ <%= settings_fields.translated :editor, :right_column, label: label_right_column %>
+
<% end %>
diff --git a/decidim-core/app/cells/decidim/data_consent/category.erb b/decidim-core/app/cells/decidim/data_consent/category.erb
index b13dd3e6d2e8d..9e1e7f78f6b90 100644
--- a/decidim-core/app/cells/decidim/data_consent/category.erb
+++ b/decidim-core/app/cells/decidim/data_consent/category.erb
@@ -30,39 +30,26 @@
<%= category[:description] %>
<% if category[:items].present? %>
-
-
-
- <%= t("layouts.decidim.data_consent.details.columns.type") %>
-
-
- <%= t("layouts.decidim.data_consent.details.columns.name") %>
-
-
- <%= t("layouts.decidim.data_consent.details.columns.service") %>
-
-
- <%= t("layouts.decidim.data_consent.details.columns.description") %>
-
-
-
- <% category[:items].each do |item| %>
-
-
- <%= t("layouts.decidim.data_consent.details.types.#{item[:type]}") %>
-
-
- <%= item[:name] %>
-
-
- <%= t("layouts.decidim.data_consent.details.items.#{item[:name]}.service") %>
-
-
- <%= t("layouts.decidim.data_consent.details.items.#{item[:name]}.description") %>
-
-
- <% end %>
-
+
+
+
+ | <%= t("layouts.decidim.data_consent.details.columns.type") %> |
+ <%= t("layouts.decidim.data_consent.details.columns.name") %> |
+ <%= t("layouts.decidim.data_consent.details.columns.service") %> |
+ <%= t("layouts.decidim.data_consent.details.columns.description") %> |
+
+
+
+ <% category[:items].each do |item| %>
+
+ | <%= t("layouts.decidim.data_consent.details.types.#{item[:type]}") %> |
+ <%= item[:name] %> |
+ <%= t("layouts.decidim.data_consent.details.items.#{item[:name]}.service") %> |
+ <%= t("layouts.decidim.data_consent.details.items.#{item[:name]}.description") %> |
+
+ <% end %>
+
+
<% end %>
<%= t(".program") %> <%= t(".program") %> (<%= translated_attribute current_participatory_space.title %>) diff --git a/decidim-conferences/app/views/decidim/conferences/conference_speakers/index.html.erb b/decidim-conferences/app/views/decidim/conferences/conference_speakers/index.html.erb index 77c855563a3ae..bfb883f5dcb37 100644 --- a/decidim-conferences/app/views/decidim/conferences/conference_speakers/index.html.erb +++ b/decidim-conferences/app/views/decidim/conferences/conference_speakers/index.html.erb @@ -14,7 +14,7 @@ edit_link( %> <%# NOTE: this page does not use a regular layout %> -
+
diff --git a/decidim-conferences/app/views/decidim/conferences/conferences/show.html.erb b/decidim-conferences/app/views/decidim/conferences/conferences/show.html.erb index 9fb927673017c..983b5a27dcacc 100644 --- a/decidim-conferences/app/views/decidim/conferences/conferences/show.html.erb +++ b/decidim-conferences/app/views/decidim/conferences/conferences/show.html.erb @@ -20,7 +20,7 @@ edit_link( include the hero inside the two-column layout. Therefore is mandatory to pass the "main_enabled: false" flag to the layout_two_col for disabling the original main. %> -
+
<%= content_for :aside do %>
diff --git a/decidim-conferences/app/views/decidim/conferences/media/index.html.erb b/decidim-conferences/app/views/decidim/conferences/media/index.html.erb
index 6baad67eb1192..2ea7fb5b7260f 100644
--- a/decidim-conferences/app/views/decidim/conferences/media/index.html.erb
+++ b/decidim-conferences/app/views/decidim/conferences/media/index.html.erb
@@ -13,7 +13,7 @@ edit_link(
%>
<%# NOTE: this page does not use a regular layout %>
-
+
<% end %>
-<% form.fields_for :images, form.object.images do |images_fields| %>
+<% form.fields_for :images, content_block.images_container do |images_fields| %>
<%= images_fields.upload :background_image, label: t(".background_image"), button_class: "button button__sm button__transparent-secondary" %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/highlighted_participatory_spaces_cell.rb b/decidim-core/app/cells/decidim/content_blocks/highlighted_participatory_spaces_cell.rb
index 5c91715fdb0c2..979ebb2408763 100644
--- a/decidim-core/app/cells/decidim/content_blocks/highlighted_participatory_spaces_cell.rb
+++ b/decidim-core/app/cells/decidim/content_blocks/highlighted_participatory_spaces_cell.rb
@@ -28,7 +28,7 @@ def max_results; end
private
def cache_hash
- [I18n.locale, highlighted_spaces.map(&:cache_key_with_version)].join(Decidim.cache_key_separator)
+ [I18n.locale, model.cache_key_with_version, highlighted_spaces.map(&:cache_key_with_version)].join(Decidim.cache_key_separator)
end
def section_class
diff --git a/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero_settings_form/show.erb
index 4463b6f8a74e0..c5b691886ac25 100644
--- a/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero_settings_form/show.erb
@@ -8,7 +8,7 @@
<%= t("media", scope: "layouts.decidim.conferences_nav") %> <%= t("media", scope: "layouts.decidim.conferences_nav") %> (<%= translated_attribute current_participatory_space.title %>) diff --git a/decidim-conferences/app/views/decidim/conferences/registration_types/index.html.erb b/decidim-conferences/app/views/decidim/conferences/registration_types/index.html.erb index f785a76fa3064..a66b12a1eb043 100644 --- a/decidim-conferences/app/views/decidim/conferences/registration_types/index.html.erb +++ b/decidim-conferences/app/views/decidim/conferences/registration_types/index.html.erb @@ -16,7 +16,7 @@ edit_link( <%= append_stylesheet_pack_tag "decidim_conferences" %> <%# NOTE: this page does not use a regular layout %> -
+
- <%= action_authorized_link_to :amend, new_amend_path, resource: model, data: { "redirect_url" => new_amend_path }, id: "amend-button", class: "dropdown__button" do %>
+
+ <%= action_authorized_link_to :amend, new_amend_path, resource: model, data: { "redirect_url" => new_amend_path }, id: "amend-button", class: "dropdown__button", role: "menuitem" do %>
<%= t("button", scope: "decidim.amendments.amendable", model_name: nil) %>
<%= icon "pencil-line" %>
<% end %>
diff --git a/decidim-core/app/cells/decidim/author_cell.rb b/decidim-core/app/cells/decidim/author_cell.rb
index 34e443143e24a..aaedb01ed691a 100644
--- a/decidim-core/app/cells/decidim/author_cell.rb
+++ b/decidim-core/app/cells/decidim/author_cell.rb
@@ -31,10 +31,6 @@ def flag_user
render unless current_user == model
end
- def perform_caching?
- true
- end
-
def raw_model
model.try(:__getobj__) || model
end
diff --git a/decidim-core/app/cells/decidim/card_metadata_cell.rb b/decidim-core/app/cells/decidim/card_metadata_cell.rb
index e8bf4102480f6..322b31b19a0b0 100644
--- a/decidim-core/app/cells/decidim/card_metadata_cell.rb
+++ b/decidim-core/app/cells/decidim/card_metadata_cell.rb
@@ -29,7 +29,7 @@ def space_item
return unless show_space?
{
- text: decidim_escape_translated(participatory_space.title),
+ text: translated_attribute(participatory_space.title),
icon: resource_type_icon_key(participatory_space.class),
url: Decidim::ResourceLocatorPresenter.new(participatory_space).path
}
diff --git a/decidim-core/app/cells/decidim/comments_button_cell.rb b/decidim-core/app/cells/decidim/comments_button_cell.rb
index c9196d38fcdab..f09bbb7f48b73 100644
--- a/decidim-core/app/cells/decidim/comments_button_cell.rb
+++ b/decidim-core/app/cells/decidim/comments_button_cell.rb
@@ -23,7 +23,9 @@ def comments_enabled?
end
def path
- "#add-comment-anchor"
+ return "#add-comment-anchor" if current_user
+
+ nil
end
def text
@@ -37,5 +39,11 @@ def icon_name
def button_classes
"button button__sm button__transparent-secondary add-comment-mobile"
end
+
+ def html_options
+ return {} if current_user
+
+ { data: { "dialog-open": "loginModal" } }
+ end
end
end
diff --git a/decidim-core/app/cells/decidim/content_blocks/cta_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/cta_settings_form/show.erb
index ee2e372caf992..2878acaffce11 100644
--- a/decidim-core/app/cells/decidim/content_blocks/cta_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/cta_settings_form/show.erb
@@ -4,6 +4,6 @@
<%= settings_fields.translated :text_field, :description, label: t("decidim.content_blocks.cta_settings_form.description") %>
<% end %>
-<% form.fields_for :images, form.object.images do |images_fields| %>
+<% form.fields_for :images, content_block.images_container do |images_fields| %>
<%= images_fields.upload :background_image, label: t("decidim.content_blocks.cta_settings_form.background_image") %>
<% end %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/hero_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/hero_settings_form/show.erb
index fd40f5b447a8a..5e94a7ecd61c1 100644
--- a/decidim-core/app/cells/decidim/content_blocks/hero_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/hero_settings_form/show.erb
@@ -5,7 +5,7 @@
<%= settings_fields.translated :text_field, :cta_button_path, label: t(".cta_button_path") %>
-
@@ -14,7 +14,7 @@
<% end %>
-<% form.fields_for :images, form.object.images do |images_fields| %>
+<% form.fields_for :images, content_block.images_container do |images_fields| %>
<%= images_fields.upload :background_image, label: t(".background_image"), button_class: "button button__sm button__transparent-secondary" %>
diff --git a/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb b/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
index 5c883bd8289d1..a09cf0af691cb 100644
--- a/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
+++ b/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
@@ -32,7 +32,7 @@ def background_image
private
def render?
- required_keys = [:title, :short_description, :action_button_title, :action_button_subtitle, :action_button_url]
+ required_keys = [:title, :action_button_title, :action_button_subtitle, :action_button_url]
required_keys.all? { |key| model.settings.public_send(key).present? }
end
end
diff --git a/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_settings_form/show.erb b/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_settings_form/show.erb
index 19c789a0f2f54..1d941e28d61a4 100644
--- a/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_settings_form/show.erb
+++ b/decidim-core/app/cells/decidim/content_blocks/highlighted_content_banner_settings_form/show.erb
@@ -20,7 +20,7 @@
diff --git a/decidim-conferences/config/locales/eu.yml b/decidim-conferences/config/locales/eu.yml index 15d9278f78ef5..d9185c7dd4a63 100644 --- a/decidim-conferences/config/locales/eu.yml +++ b/decidim-conferences/config/locales/eu.yml @@ -233,7 +233,7 @@ eu: actions: Ekintzak affiliation: Afiliazioa full_name: Izen osoa - position: Ardura + position: Kokapena name: Hizlaria conference_user_role: fields: @@ -597,7 +597,7 @@ eu: notification_title: %{resource_title} jardunaldiak erregistroak gaitu ditu. role_assigned: email_intro: '%{role} rola esleitu zaizu jardunaldian.' - email_outro: Jakinarazpen hau jaso duzu %{role} rola esleitu dizutelako "%{resource_title}" hitzaldian. + email_outro: Jakinarazpen hau jaso duzu %{role} rola esleitu dizutelako "%{resource_title}" jardunaldian. email_subject: '%{role} rola esleitu zaizu batzarrean.' notification_title: '%{role} rola esleitu zaizu %{resource_title} batzarrean.' upcoming_conference: @@ -667,7 +667,7 @@ eu: promoted_conferences: Sustatutako jardunaldiak order_by_conferences: conferences: - one: "Jardunaldi %{count}" + one: "%{count} jardunaldi" other: "%{count} jardunaldi" conferences_nav: conference_partners_menu_item: Kideak diff --git a/decidim-conferences/config/locales/fr-CA.yml b/decidim-conferences/config/locales/fr-CA.yml index b91de1e2889ec..9c5ecd91f0a1b 100644 --- a/decidim-conferences/config/locales/fr-CA.yml +++ b/decidim-conferences/config/locales/fr-CA.yml @@ -121,8 +121,11 @@ fr-CA: success: Conférencier supprimé avec succès pour cette conférence. edit: update: Mettre à jour + index: + conference_speakers_title: Conférenciers new: create: Créer + title: Nouveau conférencier publish: invalid: Il y a eu un problème lors de la publication de cet intervenant. success: L'intervenant de la conférence a été publié avec succès. diff --git a/decidim-conferences/config/locales/sk.yml b/decidim-conferences/config/locales/sk.yml index 781e01a77a6b2..6860cb3b1e98d 100644 --- a/decidim-conferences/config/locales/sk.yml +++ b/decidim-conferences/config/locales/sk.yml @@ -501,7 +501,7 @@ sk: show: already_have_an_account?: Už máte účet? are_you_new?: Nový účastník? - login_as: Ste prihlásení ako %{name} %{email} + login_as: Ste prihlásení ako %{name} %{email} make_conference_registration: Zaregistrovať sa na konferenciu manage_registration: Spravovať registráciu register: Registrovať @@ -591,10 +591,10 @@ sk: conference_registration_validation_pending: notification_title: Vaša registrácia na konferencii %{resource_title} čaká na potvrdenie. conference_registrations_over_percentage: - email_intro: Konferencia "%{resource_title}" je obsadená na viac, než%{percentage} %. + email_intro: Konferencia "%{resource_title}" je obsadená na viac, než%{percentage} %. email_outro: Túto notifikáciu ste dostali, pretože ste administrátorom participatívneho priestoru konferencie. - email_subject: Konferencia "%{resource_title}" je obsadená na viac, než%{percentage} %. - notification_title: Konferencia %{resource_title} je obsadená na viac, než %{percentage} %. + email_subject: Konferencia "%{resource_title}" je obsadená na viac, než%{percentage} %. + notification_title: Konferencia %{resource_title} je obsadená na viac, než %{percentage} %. conference_updated: email_intro: 'Konferencia "%{resource_title}" bola aktualizovaná. Novú verziu si môžete pozrieť na jej stránke:' email_outro: Túto notifikáciu ste dostali, pretože sledujete konferenciu "%{resource_title}". Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz. diff --git a/decidim-conferences/lib/decidim/conferences/test/factories.rb b/decidim-conferences/lib/decidim/conferences/test/factories.rb index db7213137a588..3277d06e34fe6 100644 --- a/decidim-conferences/lib/decidim/conferences/test/factories.rb +++ b/decidim-conferences/lib/decidim/conferences/test/factories.rb @@ -44,6 +44,10 @@ published_at { Time.current } end + trait :trashed do + deleted_at { Time.current } + end + trait :diploma do main_logo { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") } signature { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") } diff --git a/decidim-conferences/lib/decidim/conferences/version.rb b/decidim-conferences/lib/decidim/conferences/version.rb index 0757dec2c9c0a..9069854c9a332 100644 --- a/decidim-conferences/lib/decidim/conferences/version.rb +++ b/decidim-conferences/lib/decidim/conferences/version.rb @@ -4,7 +4,7 @@ module Decidim # This holds the decidim-conferences version. module Conferences def self.version - "0.31.4" + "0.31.7" end end end diff --git a/decidim-conferences/spec/commands/create_conference_spec.rb b/decidim-conferences/spec/commands/create_conference_spec.rb index cc6e1979e2b12..fdb67137d1f98 100644 --- a/decidim-conferences/spec/commands/create_conference_spec.rb +++ b/decidim-conferences/spec/commands/create_conference_spec.rb @@ -31,11 +31,8 @@ module Decidim::Conferences let(:related_processes_ids) { [participatory_processes.map(&:id)] } let(:related_assemblies_ids) { [assemblies.map(&:id)] } - let(:form) do - instance_double( - Admin::ConferenceForm, - current_user:, - invalid?: invalid, + let(:attributes) do + { title: { en: "title" }, slogan: { en: "slogan" }, weight: 1, @@ -46,8 +43,6 @@ module Decidim::Conferences promoted: nil, description: { en: "description" }, short_description: { en: "short_description" }, - current_organization: organization, - organization:, taxonomizations:, errors:, show_statistics: false, @@ -59,6 +54,17 @@ module Decidim::Conferences registration_terms: { en: "registrations terms" }, participatory_processes_ids: related_processes_ids, assemblies_ids: related_assemblies_ids + } + end + + let(:form) do + instance_double( + Admin::ConferenceForm, + **attributes, + current_user:, + organization:, + current_organization: organization, + invalid?: invalid ) end let(:invalid) { false } @@ -71,6 +77,23 @@ module Decidim::Conferences end end + context "when there is a trashed space with the same slug" do + let!(:trashed_space) { create(:conference, :trashed, slug: "slug", organization:) } + + let(:form) do + Admin::ConferenceForm.from_params(attributes) + .with_context({ + current_user:, + current_organization: organization + }) + end + + it "broadcasts invalid" do + expect { subject.call }.to broadcast(:invalid) + expect(form.errors[:slug]).not_to be_empty + end + end + context "when the conference is not persisted" do let(:hero_image) do ActiveStorage::Blob.create_and_upload!( diff --git a/decidim-conferences/spec/commands/duplicate_conference_spec.rb b/decidim-conferences/spec/commands/duplicate_conference_spec.rb index 940c0c2afeb78..1c922a1b341e7 100644 --- a/decidim-conferences/spec/commands/duplicate_conference_spec.rb +++ b/decidim-conferences/spec/commands/duplicate_conference_spec.rb @@ -34,6 +34,27 @@ module Decidim::Conferences end end + context "when there is a trashed space with the same slug" do + let!(:trashed_space) { create(:conference, :trashed, slug: "duplicated-slug", organization:) } + + let(:form) do + Admin::ConferenceDuplicateForm.from_params({ + title: { en: "title" }, + slug: "duplicated-slug", + duplicate_components: duplicate_components + }) + .with_context({ + current_user:, + current_organization: organization + }) + end + + it "broadcasts invalid" do + expect { subject.call }.to broadcast(:invalid) + expect(form.errors[:slug]).not_to be_empty + end + end + context "when everything is ok" do it "duplicates a conference" do expect { subject.call }.to change(Decidim::Conference, :count).by(1) diff --git a/decidim-conferences/spec/commands/update_conference_spec.rb b/decidim-conferences/spec/commands/update_conference_spec.rb index 851749725adef..d98217bbb99b1 100644 --- a/decidim-conferences/spec/commands/update_conference_spec.rb +++ b/decidim-conferences/spec/commands/update_conference_spec.rb @@ -95,6 +95,19 @@ module Decidim::Conferences end end + context "when there is a trashed space with the same slug" do + let!(:trashed_space) { create(:conference, :trashed, slug: "slug", organization:) } + + let(:form) do + Admin::ConferenceForm.from_params(params.deep_merge(conference: { slug: "slug" })).with_context(context) + end + + it "broadcasts invalid" do + expect { command.call }.to broadcast(:invalid) + expect(form.errors[:slug]).not_to be_empty + end + end + describe "when the conference is not valid" do before do allow(form).to receive(:invalid?).and_return(false) diff --git a/decidim-conferences/spec/controllers/admin/imports_controller_spec.rb b/decidim-conferences/spec/controllers/admin/imports_controller_spec.rb index 2ec0c6a719fcd..f9aba84439f69 100644 --- a/decidim-conferences/spec/controllers/admin/imports_controller_spec.rb +++ b/decidim-conferences/spec/controllers/admin/imports_controller_spec.rb @@ -13,10 +13,7 @@ module Admin let(:extra_params) { { conference_slug: participatory_space.slug } } let(:file) do - Rack::Test::UploadedFile.new( - Decidim::Dev.test_file("import_proposals.csv", "text/csv"), - "text/csv" - ) + Decidim::Dev.test_file("import_proposals.csv", "text/csv") end end end diff --git a/decidim-conferences/spec/shared/manage_conference_components_examples.rb b/decidim-conferences/spec/shared/manage_conference_components_examples.rb index e8864e661c218..924faad96fd20 100644 --- a/decidim-conferences/spec/shared/manage_conference_components_examples.rb +++ b/decidim-conferences/spec/shared/manage_conference_components_examples.rb @@ -197,7 +197,7 @@ it "hides the component from the menu" do visit decidim_conferences.conference_path(conference, locale: I18n.locale) - expect(page).to have_content decidim_escape_translated(component.name) + expect(page).to have_content translated_attribute(component.name) visit decidim_admin_conferences.components_path(conference) @@ -212,7 +212,7 @@ end visit decidim_conferences.conference_path(conference, locale: I18n.locale) - expect(page).to have_no_content decidim_escape_translated(component.name) + expect(page).to have_no_content translated_attribute(component.name) end end diff --git a/decidim-conferences/spec/system/conference_program_spec.rb b/decidim-conferences/spec/system/conference_program_spec.rb index 091136f369ee4..4403a2dd09b25 100644 --- a/decidim-conferences/spec/system/conference_program_spec.rb +++ b/decidim-conferences/spec/system/conference_program_spec.rb @@ -52,8 +52,8 @@ visit decidim_conferences.conference_path(conference) within "aside .conference__nav-container" do - expect(page).to have_content(decidim_escape_translated(component.name)) - click_on decidim_escape_translated(component.name) + expect(page).to have_content(translated_attribute(component.name)) + click_on translated_attribute(component.name) end expect(page).to have_current_path decidim_conferences.conference_conference_program_path(conference, component) diff --git a/decidim-conferences/spec/system/conferences_spec.rb b/decidim-conferences/spec/system/conferences_spec.rb index 849d8fffc114e..d732e039f9aaa 100644 --- a/decidim-conferences/spec/system/conferences_spec.rb +++ b/decidim-conferences/spec/system/conferences_spec.rb @@ -230,11 +230,27 @@ context "when the conference has some components" do it "shows the components" do within ".conference__nav" do - expect(page).to have_content(decidim_escape_translated(proposals_component.name)) + expect(page).to have_content(translated(proposals_component.name)) + expect(page.html).to include(decidim_escape_translated(proposals_component.name).gsub(""", "\"")) expect(page).to have_no_content(decidim_escape_translated(meetings_component.name)) end end + describe "when there are special characters (', &) in the nav links" do + let(:participatory_space) { conference } + let(:component_name) { "People's Budget & Ideas" } + let!(:proposal_component) { create(:proposal_component, name: { en: component_name }, participatory_space:) } + + it "renders the component name correctly" do + visit current_path + within ".conference__nav-container" do + expect(page).to have_content(component_name) + expect(page).to have_no_content("'") + expect(page).to have_no_content("'") + end + end + end + it "renders the stats for those components that are visible" do within all("[data-statistic]")[0] do expect(page).to have_css(".statistic__title", text: "Proposals") diff --git a/decidim-core/app/cells/decidim/amendable/amend_button_card/show.erb b/decidim-core/app/cells/decidim/amendable/amend_button_card/show.erb index eb6623e304b56..7eb077db92fe1 100644 --- a/decidim-core/app/cells/decidim/amendable/amend_button_card/show.erb +++ b/decidim-core/app/cells/decidim/amendable/amend_button_card/show.erb @@ -1,5 +1,5 @@ -
<%= t(".cta_button_path_help", url: decidim_form_slug_url("", translated_attribute(form.object.settings.cta_button_path))) %>
+<%= t(".cta_button_path_help", url: decidim_form_slug_url("", translated_attribute(form.object.settings["cta_button_path"]))) %>
<%= category[:description] %>
<% if category[:items].present? %> -