added window prefix "main.*" to localizable strings in main window

This commit is contained in:
Sebastian Stenzel
2019-08-28 11:17:45 +02:00
parent ef07edf8c3
commit c9d897edd1
4 changed files with 26 additions and 22 deletions

View File

@@ -37,9 +37,9 @@
</tooltip>
</Label>
<Region HBox.hgrow="ALWAYS"/>
<Label styleClass="badge,badge-pill,badge-secondary" text="%vaultDetail.lockedStatus" minWidth="-Infinity" visible="${controller.vault.locked}" managed="${controller.vault.locked}"/>
<Label styleClass="badge,badge-pill,badge-secondary" text="%main.vaultDetail.lockedStatus" minWidth="-Infinity" visible="${controller.vault.locked}" managed="${controller.vault.locked}"/>
<Label styleClass="badge,badge-pill,badge-secondary" text="…" minWidth="-Infinity" visible="${controller.vault.processing}" managed="${controller.vault.processing}"/>
<Label styleClass="badge,badge-pill,badge-primary" text="%vaultDetail.unlockedStatus" minWidth="-Infinity" visible="${controller.vault.unlocked}" managed="${controller.vault.unlocked}"/>
<Label styleClass="badge,badge-pill,badge-primary" text="%main.vaultDetail.unlockedStatus" minWidth="-Infinity" visible="${controller.vault.unlocked}" managed="${controller.vault.unlocked}"/>
</HBox>
<Hyperlink styleClass="vault-path" text="${controller.vault.displayablePath}" textOverrun="CENTER_ELLIPSIS" onAction="#revealStorageLocation">
<graphic>
@@ -58,11 +58,11 @@
<graphic>
<HBox alignment="CENTER">
<VBox styleClass="button-group-labels">
<Label styleClass="button-group-heading" text="%vaultDetail.accessLocation"/>
<Label styleClass="button-group-heading" text="%main.vaultDetail.accessLocation"/>
<Label text="${controller.vault.accessPoint}"/>
</VBox>
<Region HBox.hgrow="ALWAYS"/>
<Label styleClass="button-group-action" text="%vaultDetail.revealAccessLocation" minWidth="-Infinity"/>
<Label styleClass="button-group-action" text="%main.vaultDetail.revealAccessLocation" minWidth="-Infinity"/>
</HBox>
</graphic>
</Button>
@@ -71,15 +71,15 @@
<graphic>
<HBox alignment="CENTER" spacing="24">
<VBox styleClass="button-group-labels" HBox.hgrow="ALWAYS">
<Label styleClass="button-group-heading" text="%vaultDetail.bytesPerSecondRead"/>
<Label text="${controller.vault.stats.bytesPerSecondRead}"/>
<Label styleClass="button-group-heading" text="%main.vaultDetail.bytesPerSecondRead"/>
</VBox>
<VBox styleClass="button-group-labels" HBox.hgrow="ALWAYS">
<Label styleClass="button-group-heading" text="%vaultDetail.bytesPerSecondWritten"/>
<Label text="${controller.vault.stats.bytesPerSecondWritten}"/>
<Label styleClass="button-group-heading" text="%main.vaultDetail.bytesPerSecondWritten"/>
</VBox>
<Region HBox.hgrow="ALWAYS"/>
<Label styleClass="button-group-action" text="%vaultDetail.showChart" minWidth="-Infinity"/>
<Label styleClass="button-group-action" text="%main.vaultDetail.showChart" minWidth="-Infinity"/>
</HBox>
</graphic>
</Button>
@@ -88,19 +88,19 @@
<Region prefHeight="12" VBox.vgrow="NEVER"/>
<VBox alignment="CENTER" spacing="12" visible="${controller.vault.locked}" managed="${controller.vault.locked}">
<Button styleClass="button-large" text="%vaultDetail.unlockBtn" minWidth="120" onAction="#unlock" defaultButton="${controller.vault.locked}">
<Button styleClass="button-large" text="%main.vaultDetail.unlockBtn" minWidth="120" onAction="#unlock" defaultButton="${controller.vault.locked}">
<graphic>
<FontAwesome5IconView glyph="LOCK_OPEN_ALT" glyphSize="15"/>
</graphic>
</Button>
<Hyperlink text="%vaultDetail.optionsBtn" onAction="#showVaultOptions">
<Hyperlink text="%main.vaultDetail.optionsBtn" onAction="#showVaultOptions">
<graphic>
<FontAwesome5IconView glyph="COG"/>
</graphic>
</Hyperlink>
</VBox>
<VBox alignment="CENTER" spacing="12" visible="${controller.vault.unlocked}" managed="${controller.vault.unlocked}">
<Button styleClass="button-large" text="%vaultDetail.lockBtn" minWidth="120" onAction="#lock">
<Button styleClass="button-large" text="%main.vaultDetail.lockBtn" minWidth="120" onAction="#lock">
<graphic>
<FontAwesome5IconView glyph="LOCK_ALT" glyphSize="15"/>
</graphic>

View File

@@ -18,7 +18,7 @@
<ListView fx:id="vaultList" editable="true"/>
<AnchorPane fx:id="onboardingOverlay">
<HBox AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.bottomAnchor="100.0" alignment="BOTTOM_LEFT">
<Label textAlignment="CENTER" text="%vaultlist.emptyList.onboardingInstruction" wrapText="true"/>
<Label textAlignment="CENTER" text="%main.vaultlist.emptyList.onboardingInstruction" wrapText="true"/>
</HBox>
<Arc styleClass="onboarding-overlay-arc" AnchorPane.bottomAnchor="5.0" type="OPEN" centerX="-10.0" centerY="0.0" radiusY="100.0" radiusX="60.0" startAngle="0" length="-60.0" strokeWidth="1"/>
</AnchorPane>

View File

@@ -80,18 +80,21 @@ preferences.updates.checkNowBtn=Check Now
# Main Window
main.closeBtn.tooltip=Close
main.preferencesBtn.tooltip=Preferences
vaultlist.emptyList.onboardingInstruction=Click here to add a vault
main.vaultlist.emptyList.onboardingInstruction=Click here to add a vault
## Vault Detail
vaultDetail.lockedStatus=LOCKED
vaultDetail.unlockedStatus=UNLOCKED
vaultDetail.unlockBtn=Unlock
vaultDetail.optionsBtn=Vault Options
vaultDetail.lockBtn=Lock
vaultDetail.accessLocation=access location
vaultDetail.revealAccessLocation=REVEAL
vaultDetail.bytesPerSecondRead=read
vaultDetail.bytesPerSecondWritten=written
vaultDetail.showChart=SHOW CHART
main.vaultDetail.lockedStatus=LOCKED
main.vaultDetail.unlockedStatus=UNLOCKED
main.vaultDetail.unlockBtn=Unlock
main.vaultDetail.optionsBtn=Vault Options
main.vaultDetail.lockBtn=Lock
main.vaultDetail.accessLocation=access location
main.vaultDetail.revealAccessLocation=REVEAL
main.vaultDetail.bytesPerSecondRead=read
main.vaultDetail.bytesPerSecondWritten=written
main.vaultDetail.showChart=SHOW CHART
main.vaultDetail.throughput.idle=idle
main.vaultDetail.throughput.kbps=%.1f kiB/s
main.vaultDetail.throughput.mbps=%.1f MiB/s
# Vault Options
vaultOptions.general=General
@@ -107,3 +110,4 @@ passwordStrength.messageLabel.1=Weak
passwordStrength.messageLabel.2=Fair
passwordStrength.messageLabel.3=Strong
passwordStrength.messageLabel.4=Very strong