add translation to event

This commit is contained in:
Armin Schrenk
2025-12-12 16:55:15 +01:00
parent 408c80744a
commit d746e9e215
2 changed files with 9 additions and 4 deletions

View File

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