mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-28 15:40:20 +00:00
localization
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user