Skip to content

Commit

Permalink
String fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Monster authored and kra-mo committed Feb 15, 2024
1 parent fc9dd5f commit eea5946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hyperplane/items_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,21 +928,21 @@ def delete():
case 0:
return
case 1:
msg = _("Are you sure you want to permanently delete {}?").format(
msg = _("Permanently Delete {}?").format(
f"“{get_gfile_display_name(gfiles[0])}”"
)
case _:
# The variable is the number of items to be deleted
msg = _(
"Are you sure you want to permanently delete the {} selected items?"
"Permanently Delete {} Selected Items?"
).format(len(gfiles))

create_message_dialog(
self.get_root(),
msg,
(_("Cancel"), None, None, None, False),
(_("Delete"), None, Adw.ResponseAppearance.DESTRUCTIVE, delete, True),
body=_("If you delete an item, it will be permanently lost."),
body=_("Permanently deleted items can not be restored"),
).present()

def __trash_restore(self, *_args: Any) -> None:
Expand Down

0 comments on commit eea5946

Please sign in to comment.