mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 04:01:27 +00:00
Closes #4088
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
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
|
||||
Reference in New Issue
Block a user