Adjust permanently delete dialog
This commit is contained in:
parent
4f7d13f391
commit
dd5fa29e9a
2 changed files with 7 additions and 8 deletions
|
|
@ -85,12 +85,12 @@ related-apps = Related applications
|
||||||
|
|
||||||
## Permanently delete Dialog
|
## Permanently delete Dialog
|
||||||
selected-items = the {$items} selected items
|
selected-items = the {$items} selected items
|
||||||
permanently-delete-question = Permanently delete?
|
permanently-delete-question = Permanently delete
|
||||||
delete = Delete
|
delete = Delete
|
||||||
permanently-delete-warning = Permanently delete {$target}, {$nb_items ->
|
permanently-delete-warning = Do you want to permanently delete {$target}? {$nb_items ->
|
||||||
[one] he
|
[one] It
|
||||||
*[other] they
|
*[other] They
|
||||||
} can not be restored
|
} cannot be restored afterwards.
|
||||||
|
|
||||||
## Rename Dialog
|
## Rename Dialog
|
||||||
rename-file = Rename file
|
rename-file = Rename file
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ use cosmic::{
|
||||||
widget::{
|
widget::{
|
||||||
self,
|
self,
|
||||||
dnd_destination::DragId,
|
dnd_destination::DragId,
|
||||||
horizontal_space, icon,
|
horizontal_space,
|
||||||
menu::{action::MenuAction, key_bind::KeyBind},
|
menu::{action::MenuAction, key_bind::KeyBind},
|
||||||
segmented_button::{self, Entity},
|
segmented_button::{self, Entity},
|
||||||
vertical_space,
|
vertical_space,
|
||||||
|
|
@ -4685,7 +4685,7 @@ impl Application for App {
|
||||||
DialogPage::PermanentlyDelete { paths } => {
|
DialogPage::PermanentlyDelete { paths } => {
|
||||||
let target = if paths.len() == 1 {
|
let target = if paths.len() == 1 {
|
||||||
format!(
|
format!(
|
||||||
"« {} »",
|
"\"{}\"",
|
||||||
paths[0]
|
paths[0]
|
||||||
.file_name()
|
.file_name()
|
||||||
.map(std::ffi::OsStr::to_string_lossy)
|
.map(std::ffi::OsStr::to_string_lossy)
|
||||||
|
|
@ -4697,7 +4697,6 @@ impl Application for App {
|
||||||
|
|
||||||
widget::dialog()
|
widget::dialog()
|
||||||
.title(fl!("permanently-delete-question"))
|
.title(fl!("permanently-delete-question"))
|
||||||
.icon(icon::from_name("dialog-warning").size(32))
|
|
||||||
.primary_action(
|
.primary_action(
|
||||||
widget::button::destructive(fl!("delete"))
|
widget::button::destructive(fl!("delete"))
|
||||||
.on_press(Message::DialogComplete),
|
.on_press(Message::DialogComplete),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue