localization

This commit is contained in:
Armin Schrenk
2019-10-16 16:49:21 +02:00
parent 57d3f788e6
commit c1a5e187b6
2 changed files with 7 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ public class MountOptionsController implements FxController {
private File chooseDirectory() {
DirectoryChooser directoryChooser = new DirectoryChooser();
directoryChooser.setTitle(resourceBundle.getString("TODO"));
directoryChooser.setTitle(resourceBundle.getString("vaultOptions.mount.winDirChooser"));
try {
directoryChooser.setInitialDirectory(Path.of(System.getProperty("user.home")).toFile());
} catch (Exception e) {
@@ -150,7 +150,7 @@ public class MountOptionsController implements FxController {
//TODO: none drive letter is selected
return "";
} else if (root.endsWith("occupied")) {
return root.getRoot().toString().substring(0, 1) + " (" + resourceBundle.getString("TODO") + ")";
return root.getRoot().toString().substring(0, 1) + " (" + resourceBundle.getString("vaultOptions.mount.winDriveLetterOccupied") + ")";
} else {
return root.toString().substring(0, 1);
}
@@ -158,11 +158,7 @@ public class MountOptionsController implements FxController {
@Override
public Path fromString(String string) {
if (resourceBundle.getString("TODO").equals(string)) {
return null;
} else {
return Path.of(string);
}
return Path.of(string);
}
}

View File

@@ -156,13 +156,17 @@ wrongFileAlert.btn=Okay
wrongFileAlert.information=You have tried to add a file or folder that does not seem to be a Cryptomator vault. To encrypt your data, create and unlock a vault.
# Vault Options
## General
vaultOptions.general=General
vaultOptions.general.changePasswordBtn=Change Password
vaultOptions.general.showRecoveryKeyBtn=Display Recovery Key
## Mount
vaultOptions.mount=Mounting
vaultOptions.mount.readonly=Read-Only
vaultOptions.mount.driveName=Drive Name
vaultOptions.mount.customMountFlags=Custom Mount Flags
vaultOptions.mount.winDriveLetterOccupied=occupied
vaultOptions.mount.winDirChooser=Pick an empty directory
# Recovery Key
recoveryKey.title=Recovery Key