Skip to content

Commit

Permalink
Add a more descriptive path when Directory cannot be found (#7232)
Browse files Browse the repository at this point in the history
  • Loading branch information
devjuliet committed Jan 11, 2021
1 parent 71cc217 commit 54f27e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ private void downloadFullTexts(Map<BibEntry, Optional<URL>> downloads, BibDataba
Optional<Path> dir = databaseContext.getFirstExistingFileDir(Globals.prefs.getFilePreferences());
if (dir.isEmpty()) {
dialogService.showErrorDialogAndWait(Localization.lang("Directory not found"),
Localization.lang("Main file directory not set!") + " "
+ Localization.lang("Preferences")
+ " -> " + Localization.lang("File"));
Localization.lang("Main file directory not set. Check the preferences (linked files) or the library properties."));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ Does\ nothing.=Does nothing.
Identity=Identity
Clears\ the\ field\ completely.=Clears the field completely.
Directory\ not\ found=Directory not found
Main\ file\ directory\ not\ set\!=Main file directory not set!
Main\ file\ directory\ not\ set.\ Check\ the\ preferences\ (linked\ files)\ or\ the\ library\ properties.=Main file directory not set. Check the preferences (linked files) or the library properties.
This\ operation\ requires\ exactly\ one\ item\ to\ be\ selected.=This operation requires exactly one item to be selected.
Importing\ in\ %0\ format=Importing in %0 format
Female\ name=Female name
Expand Down

0 comments on commit 54f27e9

Please sign in to comment.