From a99708fff39741a8a63e6a5a2f1d1884dea8590b Mon Sep 17 00:00:00 2001 From: kittyt Date: Mon, 1 Mar 2021 14:16:23 +0100 Subject: [PATCH] Update status bar message (#7452) Use Localization when writing messages in the status bar. --- .../java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java | 4 ++-- src/main/resources/l10n/JabRef_en.properties | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java b/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java index b1c9b352bdc..e39fcdc96a9 100644 --- a/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java +++ b/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java @@ -446,9 +446,9 @@ public void download() { linkedFiles.set(oldFileIndex, newLinkedFile); } entry.setFiles(linkedFiles); - // Notify in bar when the filetype is HTML. + // Notify in bar when the file type is HTML. if (newLinkedFile.getFileType().equals(StandardExternalFileType.URL.getName())) { - dialogService.notify("Downloaded a linked HTML file."); + dialogService.notify(Localization.lang("Downloaded website as an HTML file.")); } }); downloadProgress.bind(downloadTask.workDonePercentageProperty()); diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index 420c56cd4b1..27e58b95eb5 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -252,6 +252,9 @@ Do\ not\ write\ the\ following\ fields\ to\ XMP\ Metadata=Do not write the follo Donate\ to\ JabRef=Donate to JabRef Download\ file=Download file + +Downloaded\ website\ as\ an\ HTML\ file.=Downloaded website as an HTML file. + duplicate\ removal=duplicate removal Duplicate\ string\ name=Duplicate string name