From d163d02077295f96f28cc2c68b97091bcc1e6912 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 27 Jun 2022 18:49:26 +0200 Subject: [PATCH] Change window title for removeVault dialog --- .../org/cryptomator/ui/removevault/RemoveVaultModule.java | 4 ++-- src/main/resources/i18n/strings.properties | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/removevault/RemoveVaultModule.java b/src/main/java/org/cryptomator/ui/removevault/RemoveVaultModule.java index a19a89f60..ee94a7d7a 100644 --- a/src/main/java/org/cryptomator/ui/removevault/RemoveVaultModule.java +++ b/src/main/java/org/cryptomator/ui/removevault/RemoveVaultModule.java @@ -34,9 +34,9 @@ abstract class RemoveVaultModule { @Provides @RemoveVaultWindow @RemoveVaultScoped - static Stage provideStage(StageFactory factory, @PrimaryStage Stage primaryStage, @RemoveVaultWindow Vault v) { + static Stage provideStage(StageFactory factory, @PrimaryStage Stage primaryStage, @RemoveVaultWindow Vault v, ResourceBundle resourceBundle) { Stage stage = factory.create(); - stage.setTitle(v.getDisplayName()); + stage.setTitle(String.format(resourceBundle.getString("removeVault.windowTitle"),v.getDisplayName())); stage.setResizable(false); stage.initModality(Modality.WINDOW_MODAL); stage.initOwner(primaryStage); diff --git a/src/main/resources/i18n/strings.properties b/src/main/resources/i18n/strings.properties index 01b209443..6e78c76e1 100644 --- a/src/main/resources/i18n/strings.properties +++ b/src/main/resources/i18n/strings.properties @@ -85,6 +85,7 @@ addvaultwizard.success.nextStepsInstructions=Added vault "%s".\nYou need to unlo addvaultwizard.success.unlockNow=Unlock Now # Remove Vault +removeVault.windowTitle=Remove "%s" removeVault.title=Remove Vault? removeVault.description=This will only make Cryptomator forget about this vault. You can add it again. No encrypted files will be deleted from your hard drive. removeVault.confirmBtn=Remove Vault