Browse Source

localization

Armin Schrenk 5 years ago
parent
commit
c1a5e187b6

+ 3 - 7
main/ui/src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java

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

+ 4 - 0
main/ui/src/main/resources/i18n/strings.properties

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