Change window title for removeVault dialog

This commit is contained in:
Armin Schrenk
2022-06-27 18:49:26 +02:00
parent 677607d210
commit d163d02077
2 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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