Skip to content

Commit

Permalink
Add confirmation for 'Copy to' with cross-reference status (#12493)
Browse files Browse the repository at this point in the history
* Add confirmation for 'Copy to' with cross-reference status

* Add confirmation message key to JabRef_en.properties

* Edit Copy to confirmation message

* Update JabRef_en.properties

---------

Co-authored-by: Christoph <siedlerkiller@gmail.com>
  • Loading branch information
MhammedAhmmed and Siedlerchr authored Feb 15, 2025
1 parent 74d85d3 commit 4ca6a74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jabref/gui/edit/CopyTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ public void execute() {

if (includeCrossReferences) {
copyEntriesWithCrossRef(selectedEntries, targetDatabaseContext);
dialogService.notify(Localization.lang("Entries copied successfully, including cross-references."));
} else {
copyEntriesWithoutCrossRef(selectedEntries, targetDatabaseContext);
dialogService.notify(Localization.lang("Entries copied successfully, without cross-references."));
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2854,3 +2854,5 @@ Include=Include
Exclude=Exclude
Include\ or\ exclude\ cross-referenced\ entries=Include or exclude cross-referenced entries
Would\ you\ like\ to\ include\ cross-reference\ entries\ in\ the\ current\ operation?=Would you like to include cross-reference entries in the current operation?
Entries\ copied\ successfully,\ including\ cross-references.=Entries copied successfully, including cross-references.
Entries\ copied\ successfully,\ without\ cross-references.=Entries copied successfully, without cross-references.

0 comments on commit 4ca6a74

Please sign in to comment.