mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-17 04:36:02 +00:00
add translation to event
This commit is contained in:
@@ -80,10 +80,9 @@ public class NotificationController implements FxController {
|
||||
vaultName.set(newEvent.v().getDisplayName());
|
||||
switch (newEvent.actualEvent()) {
|
||||
case FileIsInUseEvent fiiue -> {
|
||||
//TODO: Translations!
|
||||
message.set("File is locked");
|
||||
description.set("The file %s is locked by user %s. Ask the user to close the file. Otherwise, you can ignore the lock and open it anyway.".formatted(fiiue.cleartextPath(), fiiue.owner()));
|
||||
actionText.set("Ignore Lock");
|
||||
message.set(resourceBundle.getString("notification.inUse.message"));
|
||||
description.set(resourceBundle.getString("notification.inUse.description").formatted(fiiue.cleartextPath(), fiiue.owner()));
|
||||
actionText.set(resourceBundle.getString("notification.inUse.action"));
|
||||
}
|
||||
default -> {
|
||||
message.set("NO CONTENT");
|
||||
|
||||
@@ -696,3 +696,9 @@ eventView.entry.brokenFileNode.message=Broken filesystem node
|
||||
eventView.entry.brokenFileNode.showEncrypted=Show broken, encrypted node
|
||||
eventView.entry.brokenFileNode.copyEncrypted=Copy path of broken, encrypted node
|
||||
eventView.entry.brokenFileNode.copyDecrypted=Copy decrypted path
|
||||
|
||||
# Notifications
|
||||
## FileIsInUse Notification
|
||||
notification.inUse.message=File is locked
|
||||
notification.inUse.description=File %s is opened by user %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
|
||||
Reference in New Issue
Block a user