Set title and accept button label for extract dialog
This commit is contained in:
parent
162768af8f
commit
dfa857b1e5
4 changed files with 6 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ create-archive = Create archive
|
||||||
## Extract Dialog
|
## Extract Dialog
|
||||||
extract-password-required = Password required
|
extract-password-required = Password required
|
||||||
extract-to = Extract To...
|
extract-to = Extract To...
|
||||||
extract-to-prompt = Input a location to extract the archive to.
|
extract-to-title = Extract to folder
|
||||||
|
|
||||||
## Empty Trash Dialog
|
## Empty Trash Dialog
|
||||||
empty-trash = Empty trash
|
empty-trash = Empty trash
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ create-archive = Tömörített fájl létrehozása
|
||||||
## Extract Dialog
|
## Extract Dialog
|
||||||
extract-password-required = Jelszó szükséges
|
extract-password-required = Jelszó szükséges
|
||||||
extract-to = Kibontás ide...
|
extract-to = Kibontás ide...
|
||||||
extract-to-prompt = Adja meg a helyet, ahová ki szeretné bontani a tömörített fájlt.
|
|
||||||
|
|
||||||
## Empty Trash Dialog
|
## Empty Trash Dialog
|
||||||
empty-trash = Kuka ürítése
|
empty-trash = Kuka ürítése
|
||||||
|
|
@ -321,4 +320,4 @@ sort-z-a = Z-A
|
||||||
sort-newest-first = Legújabb előre
|
sort-newest-first = Legújabb előre
|
||||||
sort-oldest-first = Legrégibb előre
|
sort-oldest-first = Legrégibb előre
|
||||||
sort-smallest-to-largest = Legkisebbtől a legnagyobbig
|
sort-smallest-to-largest = Legkisebbtől a legnagyobbig
|
||||||
sort-largest-to-smallest = Legnagyobbtól a legkisebbig
|
sort-largest-to-smallest = Legnagyobbtól a legkisebbig
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ create-archive = Maak een archiefbestand
|
||||||
## Extract Dialog
|
## Extract Dialog
|
||||||
extract-password-required = Wachtwoord vereist
|
extract-password-required = Wachtwoord vereist
|
||||||
extract-to = Uitpakken naar...
|
extract-to = Uitpakken naar...
|
||||||
extract-to-prompt = Voer een locatie in om dit archief naar uit te pakken.
|
|
||||||
|
|
||||||
## Empty Trash Dialog
|
## Empty Trash Dialog
|
||||||
empty-trash = Prullenbak legen?
|
empty-trash = Prullenbak legen?
|
||||||
|
|
|
||||||
|
|
@ -2395,16 +2395,18 @@ impl Application for App {
|
||||||
.and_then(|first| first.parent())
|
.and_then(|first| first.parent())
|
||||||
.map(|parent| parent.to_path_buf())
|
.map(|parent| parent.to_path_buf())
|
||||||
{
|
{
|
||||||
let (dialog, command) = Dialog::new(
|
let (mut dialog, dialog_task) = Dialog::new(
|
||||||
DialogKind::OpenFolder,
|
DialogKind::OpenFolder,
|
||||||
Some(destination),
|
Some(destination),
|
||||||
Message::FileDialogMessage,
|
Message::FileDialogMessage,
|
||||||
Message::ExtractToResult,
|
Message::ExtractToResult,
|
||||||
);
|
);
|
||||||
|
let set_title_task = dialog.set_title(fl!("extract-to-title"));
|
||||||
|
dialog.set_accept_label(fl!("extract-here"));
|
||||||
self.windows
|
self.windows
|
||||||
.insert(dialog.window_id(), WindowKind::FileDialog(Some(paths)));
|
.insert(dialog.window_id(), WindowKind::FileDialog(Some(paths)));
|
||||||
self.file_dialog_opt = Some(dialog);
|
self.file_dialog_opt = Some(dialog);
|
||||||
return command;
|
return Task::batch([set_title_task, dialog_task]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Message::ExtractToResult(result) => {
|
Message::ExtractToResult(result) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue