replacing hardcoded descriptions by reference to strings.properties for addvault existing controller

This commit is contained in:
armin
2019-08-11 16:29:04 +02:00
parent 5807e10286
commit 19f1093d2c
2 changed files with 19 additions and 6 deletions

View File

@@ -21,14 +21,14 @@
<Region VBox.vgrow="ALWAYS"/>
<Label text="%addvaultwizard.existing.instruction"/>
<HBox spacing="18">
<TextField promptText="TODO" text="${controller.vaultPath}" disable="true" HBox.hgrow="ALWAYS"/>
<Button text="TODO filepicker" onAction="#chooseFile" HBox.hgrow="NEVER" prefWidth="120"/>
<TextField promptText="%addvaultwizard.existing.promptText" text="${controller.vaultPath}" disable="true" HBox.hgrow="ALWAYS"/>
<Button text="%addvaultwizard.existing.filePickerButton" onAction="#chooseFile" HBox.hgrow="NEVER" prefWidth="120"/>
</HBox>
<Region VBox.vgrow="ALWAYS"/>
<ButtonBar buttonMinWidth="120" buttonOrder="B+I">
<buttons>
<Button text="TODO Back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
<Button text="TODO Open" ButtonBar.buttonData="FINISH" onAction="#finish" defaultButton="true" disable="${controller.vaultPathIsNull}"/>
<Button text="%generic.button.back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
<Button text="%generic.button.open" ButtonBar.buttonData="FINISH" onAction="#finish" defaultButton="true" disable="${controller.vaultPathIsNull}"/>
</buttons>
</ButtonBar>
</children>

View File

@@ -1,14 +1,27 @@
#add Vault Dialogues
#Generics
##Button
generic.button.back=Back
generic.button.next=Next
generic.button.open=Open
#Add Vault Dialogues
##Welcome
addvaultwizard.welcome.instruction=TODO new vault or existing vault?
addvaultwizard.welcome.newButton=TODO new vault
addvaultwizard.welcome.existingButton=TODO exising vault
addvaultwizard.existing.instruction=Please choose the masterkey.cryptomator file of your existing vault. The directory contain it will be displayed.
##Existing
addvaultwizard.existing.promptText=TODO prompt
addvaultwizard.existing.filePickerButton=TODO Filepicker
addvaultwizard.existing.instruction=Please choose the masterkey.cryptomator file of your existing vault.The path to the vault will be displayed.
addvaultwizard.existing.filePickerTitle=Open Masterkey File
##New
addvaultwizard.new.insertName=Please enter a name for the vault.
addvaultwizard.new.selectLocation=Please pick a directory where your vault is stored:
addvaultwizard.new.directoryPickerTitle=Select Directory
addvaultwizard.new.enterPassword=Please enter a Password for your vault:
addvaultwizard.new.reenterPassword=Please retype the password:
main.closeBtn.tooltip=Close
main.settingsBtn.tooltip=Settings
preferences.title=Preferences