From e8ee72a81dee3b0d38d97ac7ec4aa8454a8d3b0d Mon Sep 17 00:00:00 2001 From: Kevin Klein Date: Sun, 9 Oct 2022 11:20:41 +0200 Subject: [PATCH 1/2] Fix typo in connection error message --- CHANGELOG.md | 1 + .../jabref/gui/bibtexextractor/BibtexExtractorViewModel.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 895a48815ec..c05efe9c412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where pdfs were re-indexed on each startup. [#9166](https://github.com/JabRef/jabref/pull/9166) - We fixed an issue where Capitalize didn't capitalize words after hyphen characters. [#9157](https://github.com/JabRef/jabref/issues/9157) - We fixed an issue with the message that is displayed when fetcher returns an empty list of entries for given query. [#9195](https://github.com/JabRef/jabref/issues/9195) +- We fixed a typo within a connection error message. [#625](https://github.com/koppor/jabref/issues/625) ### Removed diff --git a/src/main/java/org/jabref/gui/bibtexextractor/BibtexExtractorViewModel.java b/src/main/java/org/jabref/gui/bibtexextractor/BibtexExtractorViewModel.java index a8e007dda62..38cb28f216a 100644 --- a/src/main/java/org/jabref/gui/bibtexextractor/BibtexExtractorViewModel.java +++ b/src/main/java/org/jabref/gui/bibtexextractor/BibtexExtractorViewModel.java @@ -83,7 +83,7 @@ private void parseUsingGrobid() { .onRunning(() -> dialogService.notify(Localization.lang("Your text is being parsed..."))) .onFailure((e) -> { if (e instanceof FetcherException) { - String msg = Localization.lang("There are connection issues with a JabRef server. Detailed information: %0.", + String msg = Localization.lang("There are connection issues with a JabRef server. Detailed information: %0", e.getMessage()); dialogService.notify(msg); } else { From 5644cf9da1f945505fe69c487ee21c3e29af4560 Mon Sep 17 00:00:00 2001 From: Kevin Klein Date: Sun, 9 Oct 2022 11:34:39 +0200 Subject: [PATCH 2/2] Fix unit test --- src/main/resources/l10n/JabRef_en.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index 91c4d19ad3e..bb1ae785eeb 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -1689,7 +1689,7 @@ User=User Connect=Connect Connection\ error=Connection error Connection\ to\ %0\ server\ established.=Connection to %0 server established. -There\ are\ connection\ issues\ with\ a\ JabRef\ server.\ Detailed\ information\:\ %0.=There are connection issues with a JabRef server. Detailed information: %0. +There\ are\ connection\ issues\ with\ a\ JabRef\ server.\ Detailed\ information\:\ %0=There are connection issues with a JabRef server. Detailed information: %0 Required\ field\ "%0"\ is\ empty.=Required field "%0" is empty. %0\ driver\ not\ available.=%0 driver not available. The\ connection\ to\ the\ server\ has\ been\ terminated.=The connection to the server has been terminated.