diff --git a/Files/BaseLayout.cs b/Files/BaseLayout.cs
index f355611868c8..bcc1ab72f03f 100644
--- a/Files/BaseLayout.cs
+++ b/Files/BaseLayout.cs
@@ -85,14 +85,19 @@ internal set
SelectedItem = _SelectedItems.First();
SelectedItemsPropertiesViewModel.IsItemSelected = true;
+ if (SelectedItems.Count >= 1)
+ {
+ SelectedItemsPropertiesViewModel.SelectedItemsCount = SelectedItems.Count;
+ }
+
if (SelectedItems.Count == 1)
{
- SelectedItemsPropertiesViewModel.SelectedItemsCount = SelectedItems.Count.ToString() + " " + ResourceController.GetTranslation("ItemSelected/Text");
+ SelectedItemsPropertiesViewModel.SelectedItemsCountString = SelectedItems.Count.ToString() + " " + ResourceController.GetTranslation("ItemSelected/Text");
SelectedItemsPropertiesViewModel.ItemSize = SelectedItem.FileSize;
}
else
{
- SelectedItemsPropertiesViewModel.SelectedItemsCount = SelectedItems.Count.ToString() + " " + ResourceController.GetTranslation("ItemsSelected/Text");
+ SelectedItemsPropertiesViewModel.SelectedItemsCountString = SelectedItems.Count.ToString() + " " + ResourceController.GetTranslation("ItemsSelected/Text");
if (SelectedItems.All(x => x.PrimaryItemAttribute == StorageItemTypes.File))
{
diff --git a/Files/Dialogs/ConfirmDeleteDialog.xaml b/Files/Dialogs/ConfirmDeleteDialog.xaml
index 341819a18484..a687c6efc10b 100644
--- a/Files/Dialogs/ConfirmDeleteDialog.xaml
+++ b/Files/Dialogs/ConfirmDeleteDialog.xaml
@@ -22,10 +22,7 @@
-
+
App.CurrentInstance.ContentPage.SelectedItemsPropertiesViewModel;
public MyResult Result { get; set; }
public enum MyResult
@@ -27,6 +30,15 @@ public ConfirmDeleteDialog(bool deleteFromRecycleBin, StorageDeleteOption delete
// If deleting from recycle bin disable "permanently delete" option
this.chkPermanentlyDelete.IsEnabled = !deleteFromRecycleBin;
+
+ if (SelectedItemsPropertiesViewModel.SelectedItemsCount == 1)
+ {
+ Description = ResourceController.GetTranslation("ConfirmDeleteDialogDeleteOneItem/Text");
+ }
+ else
+ {
+ Description = string.Format(ResourceController.GetTranslation("ConfirmDeleteDialogDeleteMultipleItems/Text"), SelectedItemsPropertiesViewModel.SelectedItemsCount);
+ }
}
private void btnDelete_Click(object sender, RoutedEventArgs e)
diff --git a/Files/MultilingualResources/Files.de-DE.xlf b/Files/MultilingualResources/Files.de-DE.xlf
index d4a9d83db56e..695b25024f94 100644
--- a/Files/MultilingualResources/Files.de-DE.xlf
+++ b/Files/MultilingualResources/Files.de-DE.xlf
@@ -183,11 +183,6 @@
Delete
Löschen
-
Permanently delete
Endgültig löschen
@@ -1193,6 +1188,14 @@
Show all context menu items
Alle im Kontextmenü verfügbaren Elemente anzeigen
+
+ Are you sure you want to delete this item?
+ Are you sure you want to delete this item?
+
+
+ Are you sure you want to delete these {0} items?
+ Are you sure you want to delete these {0} items?
+