Skip to content

Commit

Permalink
add l10n for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Jun 16, 2018
1 parent c9f1d61 commit 07272ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ public void copyFileToFileDirAndAddToEntry(BibEntry entry, List<Path> files) {
filesCopiedToFileDirectory.add(targetFile);
System.out.println("copy to file dir " + filesCopiedToFileDirectory);
} else {
dialogService.showErrorDialogAndWait(Localization.lang("Could not copy the file, the file %0 already exists", targetFile.toString()));
dialogService.showErrorDialogAndWait(Localization.lang("Could not copy file"), Localization.lang("The file %0 already exists", targetFile.toString()));

}
addFilesToEntry(entry, filesCopiedToFileDirectory);
}
addFilesToEntry(entry, filesCopiedToFileDirectory);
}

}
}

}
4 changes: 3 additions & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2274,4 +2274,6 @@ Website=Website
Write\ XMP-metadata\ to\ PDFs=Write XMP-metadata to PDFs
Clear\ search=Clear search
Do\ you\ want\ to\ import\ these\ as\ new\ entries\ into\ the\ current\ library\ or\ do\ you\ want\ to\ link\ the\ file\ to\ the\ entry?=Do you want to import these as new entries into the current library or do you want to link the file to the entry?
Do\ you\ want\ to\ import\ these\ as\ new\ entries\ into\ the\ current\ library\ or\ do\ you\ want\ to\ link\ the\ file\ to\ the\ entry?=Do you want to import these as new entries into the current library or do you want to link the file to the entry?
The\ file\ %0\ already\ exists=The file %0 already exists

0 comments on commit 07272ac

Please sign in to comment.