From 721f86977676f6d4d0ee4daecb7e7a9a440b019b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 26 Apr 2024 20:52:38 +0300 Subject: [PATCH] ui: Improve remove strings Change the 'Remove from library' strings to 'Permanently delete' to make the action clearer for the user, informing them that the action will delete user files and cannot be undone. Fixes #912 --- cozy/ui/delete_book_view.py | 6 +++--- cozy/ui/widgets/book_element.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cozy/ui/delete_book_view.py b/cozy/ui/delete_book_view.py index e0ba98c5..4651e22f 100644 --- a/cozy/ui/delete_book_view.py +++ b/cozy/ui/delete_book_view.py @@ -10,14 +10,14 @@ class DeleteBookView(Adw.AlertDialog): def __init__(self, callback, book: Book): super().__init__( - heading=_("Delete Audiobook?"), - body=_("The audiobook will be removed from your disk and from Cozy's library."), + heading=_("Permanently Delete Audiobook?"), + body=_("The audiobook will be permanently deleted from your disk and can not be restored."), default_response="cancel", close_response="cancel", ) self.add_response("cancel", _("Cancel")) - self.add_response("delete", _("Remove Audiobook")) + self.add_response("delete", _("Delete")) self.set_response_appearance("delete", Adw.ResponseAppearance.DESTRUCTIVE) list_box = Gtk.ListBox(margin_top=12, css_classes=["boxed-list"]) diff --git a/cozy/ui/widgets/book_element.py b/cozy/ui/widgets/book_element.py index 0d6c13e0..07b2f71b 100644 --- a/cozy/ui/widgets/book_element.py +++ b/cozy/ui/widgets/book_element.py @@ -73,7 +73,7 @@ def _create_context_menu(self): menu_model.append(_("Open in file browser"), "book_element.jump_to_folder") self.install_action("book_element.remove_book", None, self._remove_book) - menu_model.append(_("Remove from library"), "book_element.remove_book") + menu_model.append(_("Permanently Deleteā€¦"), "book_element.remove_book") menu = Gtk.PopoverMenu(menu_model=menu_model, has_arrow=False) menu.set_parent(self.art)