You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Platform/Shared/BusyOverlay.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ struct BusyOverlay: View {
30
30
.alert(item: $data.alertItem){ item in
31
31
switch item {
32
32
case.downloadUrl(let url):
33
-
returnAlert(title:Text("Download VM"), message:Text("Do you want to download '\(url)'?"), primaryButton:.cancel(), secondaryButton:.default(Text("Download")){
33
+
returnAlert(title:Text(NSLocalizedString("Download VM", comment:"BusyOverlay")), message:Text(String.localizedStringWithFormat(NSLocalizedString("Do you want to download '%@'?", comment:"BusyOverlay"),url.absoluteString)),primaryButton:.cancel(), secondaryButton:.default(Text(NSLocalizedString("Download", comment:"BusyOverlay"))){
returnAlert(title:Text("Would you like to re-convert this disk image to reclaim unused space? Note this will require enough temporary space to perform the conversion. You are strongly encouraged to back-up this VM before proceeding."), primaryButton:.destructive(Text("Reclaim")){reclaimSpace(for: imageURL, withCompression:false)}, secondaryButton:.cancel())
146
+
returnAlert(title:Text(NSLocalizedString("Would you like to re-convert this disk image to reclaim unused space? Note this will require enough temporary space to perform the conversion. You are strongly encouraged to back-up this VM before proceeding.", comment:"VMConfigDriveDetailsView")), primaryButton:.destructive(Text("Reclaim")){reclaimSpace(for: imageURL, withCompression:false)}, secondaryButton:.cancel())
147
147
case.compress(let imageURL):
148
-
returnAlert(title:Text("Would you like to re-convert this disk image to reclaim unused space and apply compression? Note this will require enough temporary space to perform the conversion. Compression only applies to existing data and new data will still be written uncompressed. You are strongly encouraged to back-up this VM before proceeding."), primaryButton:.destructive(Text("Reclaim")){reclaimSpace(for: imageURL, withCompression:true)}, secondaryButton:.cancel())
148
+
returnAlert(title:Text(NSLocalizedString("Would you like to re-convert this disk image to reclaim unused space and apply compression? Note this will require enough temporary space to perform the conversion. Compression only applies to existing data and new data will still be written uncompressed. You are strongly encouraged to back-up this VM before proceeding.", comment:"VMConfigDriveDetailsView")), primaryButton:.destructive(Text("Reclaim")){reclaimSpace(for: imageURL, withCompression:true)}, secondaryButton:.cancel())
149
149
case.resize(let imageURL):
150
-
returnAlert(title:Text("Resizing is experimental and could result in data loss. You are strongly encouraged to back-up this VM before proceeding. Would you like to resize to \(proposedSizeMib / mibInGib) GiB?"), primaryButton:.destructive(Text("Resize")){
150
+
returnAlert(title:Text(String.localizedStringWithFormat(NSLocalizedString("Resizing is experimental and could result in data loss. You are strongly encouraged to back-up this VM before proceeding. Would you like to resize to %lld GiB?", comment:"VMConfigDriveDetailsView"),proposedSizeMib / mibInGib)), primaryButton:.destructive(Text("Resize")){
0 commit comments