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