diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2020-04-27 11:41:02 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2020-04-27 11:42:41 +0200 |
commit | e247450ade3f8e2ccb66aef0553c424e40834570 (patch) | |
tree | fe85e9b1efa90dabd26bf9f8b402a44c94a63300 /src | |
parent | 34fe51454ad405a49c73cf67e8adde9364cf2248 (diff) | |
download | wallabag-e247450ade3f8e2ccb66aef0553c424e40834570.tar.gz wallabag-e247450ade3f8e2ccb66aef0553c424e40834570.tar.zst wallabag-e247450ade3f8e2ccb66aef0553c424e40834570.zip |
Added confirmation before mass deleting articles
Diffstat (limited to 'src')
17 files changed, 18 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 4f8b071f..670c7f9d 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" | 300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | # delete: "Are you sure you want to remove that article?" | 302 | # delete: "Are you sure you want to remove that article?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | # delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | # delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index 4c701223..92984f46 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: 'Dieser Artikel wurde von %username% mittels <a href="%wallabag_instance%">wallabag</a> geteilt' | 300 | shared_by_wallabag: 'Dieser Artikel wurde von %username% mittels <a href="%wallabag_instance%">wallabag</a> geteilt' |
301 | confirm: | 301 | confirm: |
302 | delete: 'Bist du sicher, dass du diesen Artikel löschen möchtest?' | 302 | delete: 'Bist du sicher, dass du diesen Artikel löschen möchtest?' |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: 'Bist du sicher, dass du diesen Tag vom Artikel entfernen möchtest?' | 304 | delete_tag: 'Bist du sicher, dass du diesen Tag vom Artikel entfernen möchtest?' |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index c314bb1d..0a5af085 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "Are you sure you want to remove that article?" | 302 | delete: "Are you sure you want to remove that article?" |
303 | delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | reading_time: "Estimated reading time" | 306 | reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index e42be021..cdc51a2b 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Este artículo se ha compartido con <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Este artículo se ha compartido con <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "¿Estás seguro de que quieres eliminar este artículo?" | 302 | delete: "¿Estás seguro de que quieres eliminar este artículo?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "¿Estás seguro de que quieres eliminar esta etiqueta de este artículo?" | 304 | delete_tag: "¿Estás seguro de que quieres eliminar esta etiqueta de este artículo?" |
304 | metadata: | 305 | metadata: |
305 | reading_time: "Tiempo de lectura estimado" | 306 | reading_time: "Tiempo de lectura estimado" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index 1bbcda23..581e053a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" | 300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | # delete: "Are you sure you want to remove that article?" | 302 | # delete: "Are you sure you want to remove that article?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | # delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | # delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 3aa1f657..2dd92456 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Cet article a été partagé par %username% avec <a href=\"%wallabag_instance%\">wallabag</a>" | 300 | shared_by_wallabag: "Cet article a été partagé par %username% avec <a href=\"%wallabag_instance%\">wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "Voulez-vous vraiment supprimer cet article ?" | 302 | delete: "Voulez-vous vraiment supprimer cet article ?" |
303 | delete_entries: "Voulez-vous vraiment supprimer ces articles ?" | ||
303 | delete_tag: "Voulez-vous vraiment supprimer ce tag de cet article ?" | 304 | delete_tag: "Voulez-vous vraiment supprimer ce tag de cet article ?" |
304 | metadata: | 305 | metadata: |
305 | reading_time: "Durée de lecture estimée" | 306 | reading_time: "Durée de lecture estimée" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index 933eac85..a05a6e6e 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Questo articolo è stato condiviso da %username% con <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Questo articolo è stato condiviso da %username% con <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "Vuoi veramente rimuovere quell'articolo?" | 302 | delete: "Vuoi veramente rimuovere quell'articolo?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "Vuoi veramente rimuovere quell'etichetta da quell'articolo?" | 304 | delete_tag: "Vuoi veramente rimuovere quell'etichetta da quell'articolo?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml index ce18732d..9ae4d6bb 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml | |||
@@ -280,6 +280,7 @@ entry: | |||
280 | shared_by_wallabag: "これは %username% と <a href='%wallabag_instance%'>Wallabag</a> によって共有された記事です。" | 280 | shared_by_wallabag: "これは %username% と <a href='%wallabag_instance%'>Wallabag</a> によって共有された記事です。" |
281 | confirm: | 281 | confirm: |
282 | delete: "記事を削除してよろしいですか?" | 282 | delete: "記事を削除してよろしいですか?" |
283 | # delete_entries: "Are you sure you want to remove those articles?" | ||
283 | delete_tag: "記事からタグを削除してよろしいですか?" | 284 | delete_tag: "記事からタグを削除してよろしいですか?" |
284 | metadata: | 285 | metadata: |
285 | reading_time: "推定読書時間" | 286 | reading_time: "推定読書時間" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml index ae2b8c55..ea8e92e7 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Aqueste article es estat partejat per <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Aqueste article es estat partejat per <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "Sètz segur de voler suprimir aqueste article ?" | 302 | delete: "Sètz segur de voler suprimir aqueste article ?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "Sètz segur de voler levar aquesta etiqueta de l'article ?" | 304 | delete_tag: "Sètz segur de voler levar aquesta etiqueta de l'article ?" |
304 | metadata: | 305 | metadata: |
305 | reading_time: "Temps de lectura estimat" | 306 | reading_time: "Temps de lectura estimat" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index 3b174981..877ff4aa 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Ten artykuł został udostępniony przez <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Ten artykuł został udostępniony przez <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "Czy jesteś pewien, że chcesz usunąć ten artykuł?" | 302 | delete: "Czy jesteś pewien, że chcesz usunąć ten artykuł?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "Czy jesteś pewien, że chcesz usunąć ten tag, z tego artykułu?" | 304 | delete_tag: "Czy jesteś pewien, że chcesz usunąć ten tag, z tego artykułu?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml index e2eaf25d..fc7239d9 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml | |||
@@ -299,7 +299,8 @@ entry: | |||
299 | public: | 299 | public: |
300 | shared_by_wallabag: "Este artigo foi compartilhado pelo <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Este artigo foi compartilhado pelo <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: Tem certeza de que deseja remover este artigo?" | 302 | delete: Tem certeza de que deseja remover este artigo? |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "Tem certeza de que deseja remover este tag deste artigo?" | 304 | delete_tag: "Tem certeza de que deseja remover este tag deste artigo?" |
304 | metadata: | 305 | metadata: |
305 | reading_time: "Tempo estimado de leitura" | 306 | reading_time: "Tempo estimado de leitura" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index 0b744108..9b0cea50 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" | 300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | # delete: "Are you sure you want to remove that article?" | 302 | # delete: "Are you sure you want to remove that article?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | # delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | # delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml index 3c1a8596..f593a037 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "Запись была опубликована <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "Запись была опубликована <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | # delete: "Are you sure you want to remove that article?" | 302 | # delete: "Are you sure you want to remove that article?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | # delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | # delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml index 29025d2e..fa013e55 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | shared_by_wallabag: "บทความนี้จะมีการแชร์โดย %username% กับ <a href='%wallabag_instance%'>wallabag</a>" | 300 | shared_by_wallabag: "บทความนี้จะมีการแชร์โดย %username% กับ <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | delete: "คุณแน่ใจหรือไม่ว่าคุณต้องการลบบทความนี้?" | 302 | delete: "คุณแน่ใจหรือไม่ว่าคุณต้องการลบบทความนี้?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | delete_tag: "คุณแน่ใจหรือไม่ว่าคุณต้องการลบแท็กจากบทความนี้?" | 304 | delete_tag: "คุณแน่ใจหรือไม่ว่าคุณต้องการลบแท็กจากบทความนี้?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 62f7be02..f69f3c32 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml | |||
@@ -300,6 +300,7 @@ entry: | |||
300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" | 300 | # shared_by_wallabag: "This article has been shared by %username% with <a href='%wallabag_instance%'>wallabag</a>" |
301 | confirm: | 301 | confirm: |
302 | # delete: "Are you sure you want to remove that article?" | 302 | # delete: "Are you sure you want to remove that article?" |
303 | # delete_entries: "Are you sure you want to remove those articles?" | ||
303 | # delete_tag: "Are you sure you want to remove that tag from that article?" | 304 | # delete_tag: "Are you sure you want to remove that tag from that article?" |
304 | metadata: | 305 | metadata: |
305 | # reading_time: "Estimated reading time" | 306 | # reading_time: "Estimated reading time" |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml index da125371..e68b91b7 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml | |||
@@ -280,6 +280,7 @@ entry: | |||
280 | shared_by_wallabag: "这篇文章由 %username% 于 <a href='%wallabag_instance%'>wallabag</a> 分享" | 280 | shared_by_wallabag: "这篇文章由 %username% 于 <a href='%wallabag_instance%'>wallabag</a> 分享" |
281 | confirm: | 281 | confirm: |
282 | delete: "你确定要删除这篇文章吗?" | 282 | delete: "你确定要删除这篇文章吗?" |
283 | # delete_entries: "Are you sure you want to remove those articles?" | ||
283 | delete_tag: "你确定要从这篇文章删除该标签吗?" | 284 | delete_tag: "你确定要从这篇文章删除该标签吗?" |
284 | metadata: | 285 | metadata: |
285 | reading_time: "预计阅读时间" | 286 | reading_time: "预计阅读时间" |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index f7912b1c..526e3cbb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -49,7 +49,7 @@ | |||
49 | <span> | 49 | <span> |
50 | <button class="btn cyan darken-1" type="submit" name="toggle-read" title="{{ 'entry.list.toogle_as_read'|trans }}"><i class="material-icons">done</i></button> | 50 | <button class="btn cyan darken-1" type="submit" name="toggle-read" title="{{ 'entry.list.toogle_as_read'|trans }}"><i class="material-icons">done</i></button> |
51 | <button class="btn cyan darken-1" type="submit" name="toggle-star" title="{{ 'entry.list.toogle_as_star'|trans }}" ><i class="material-icons">star</i></button> | 51 | <button class="btn cyan darken-1" type="submit" name="toggle-star" title="{{ 'entry.list.toogle_as_star'|trans }}" ><i class="material-icons">star</i></button> |
52 | <button class="btn cyan darken-1" type="submit" name="delete" title="{{ 'entry.list.delete'|trans }}"><i class="material-icons">delete</i></button> | 52 | <button class="btn cyan darken-1" type="submit" name="delete" onclick="return confirm('{{ 'entry.confirm.delete_entries'|trans|escape('js') }}')" title="{{ 'entry.list.delete'|trans }}"><i class="material-icons">delete</i></button> |
53 | </span> | 53 | </span> |
54 | {% endif %} | 54 | {% endif %} |
55 | </li> | 55 | </li> |