diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationController.java b/src/main/java/org/cryptomator/ui/notification/NotificationController.java index fe96e3721..8c2bb1520 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationController.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationController.java @@ -101,15 +101,10 @@ public class NotificationController implements FxController { var device = userAndDevice.length == 1 ? userAndDevice[0] : userAndDevice[1]; var cleartextFileName = fiiue.cleartextPath().substring(fiiue.cleartextPath().lastIndexOf('/') + 1); eventTimestamp.set(localizedTimeFormatter.format(fiiue.lastUpdated())); - message.set("File is locked by another device"); - fileName.set(cleartextFileName); - description.set("The file is opened by %s on device %s. Ask the user to close the file and sync again. Otherwise, you can ignore the lock and open it anyway.".formatted(user, device)); - actionText.set("Ignore Lock"); - /* TODO: Once feature is out of beta, activate translations message.set(resourceBundle.getString("notification.inUse.message")); - description.set(resourceBundle.getString("notification.inUse.description").formatted(fiiue.cleartextPath(), user, device)); + fileName.set(cleartextFileName); + description.set(resourceBundle.getString("notification.inUse.description").formatted(user, device)); actionText.set(resourceBundle.getString("notification.inUse.action")); - */ } default -> { message.set("NO CONTENT"); diff --git a/src/main/resources/i18n/strings.properties b/src/main/resources/i18n/strings.properties index 59403cc3d..e3595be48 100644 --- a/src/main/resources/i18n/strings.properties +++ b/src/main/resources/i18n/strings.properties @@ -723,6 +723,6 @@ eventView.entry.inUse.ignoreLock=Ignore Lock # Notifications ## FileIsInUse Notification -#notification.inUse.message=File is locked -#notification.inUse.description=File %s is opened by user %s (%s). Ask the user to close the file. Otherwise, you can ignore the lock and open it anyway, but be aware of the data loss risk. -#notification.inUse.action=Ignore Lock \ No newline at end of file +notification.inUse.message=File is locked by another device +notification.inUse.description=The file is opened by %s on device %s. Ask the user to close the file and sync again. Otherwise, you can ignore the lock and open it anyway. +notification.inUse.action=Ignore Lock \ No newline at end of file