From 7d55bf585e0ab66f5d29fef314f3263bd716eb93 Mon Sep 17 00:00:00 2001 From: NYARKO Nyamekye Date: Sun, 30 Nov 2025 00:12:23 +0100 Subject: [PATCH] change files to file(s) --- .../main/java/org/jabref/gui/actions/StandardActions.java | 4 ++-- .../main/java/org/jabref/gui/copyfiles/CopyFilesAction.java | 6 +++--- .../gui/exporter/WriteMetadataToLinkedPdfsAction.java | 2 +- .../src/main/java/org/jabref/gui/keyboard/KeyBinding.java | 2 +- jablib/src/main/resources/l10n/JabRef_en.properties | 3 +-- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/jabgui/src/main/java/org/jabref/gui/actions/StandardActions.java b/jabgui/src/main/java/org/jabref/gui/actions/StandardActions.java index 97a008e366b..5612ee4ce12 100644 --- a/jabgui/src/main/java/org/jabref/gui/actions/StandardActions.java +++ b/jabgui/src/main/java/org/jabref/gui/actions/StandardActions.java @@ -111,7 +111,7 @@ public enum StandardActions implements Action { NEW_SUB_LIBRARY_FROM_AUX(Localization.lang("New sublibrary based on AUX file") + "...", Localization.lang("New BibTeX sublibrary") + Localization.lang("This feature generates a new library based on which entries are needed in an existing LaTeX document."), IconTheme.JabRefIcons.NEW), NEW_LIBRARY_FROM_PDF_ONLINE(Localization.lang("New library based on references in PDF file... (online)"), Localization.lang("This feature generates a new library based on the list of references in a PDF file. Thereby, it uses Grobid's functionality."), IconTheme.JabRefIcons.NEW), NEW_LIBRARY_FROM_PDF_OFFLINE(Localization.lang("New library based on references in PDF file... (offline)"), Localization.lang("This feature generates a new library based on the list of references in a PDF file. Thereby, it uses JabRef's built-in functionality."), IconTheme.JabRefIcons.NEW), - WRITE_METADATA_TO_PDF(Localization.lang("Write metadata to PDF files"), Localization.lang("Will write metadata to the PDFs linked from selected entries."), KeyBinding.WRITE_METADATA_TO_PDF), + WRITE_METADATA_TO_PDF(Localization.lang("Write metadata to PDF file(s)"), Localization.lang("Will write metadata to the PDFs linked from selected entries."), KeyBinding.WRITE_METADATA_TO_PDF), START_NEW_STUDY(Localization.lang("Start new systematic literature review")), UPDATE_SEARCH_RESULTS_OF_STUDY(Localization.lang("Update study search results")), @@ -121,7 +121,7 @@ public enum StandardActions implements Action { OPEN_FOLDER(Localization.lang("Open folder(s)"), Localization.lang("Open folder"), IconTheme.JabRefIcons.FOLDER, KeyBinding.OPEN_FOLDER), OPEN_FILE(Localization.lang("Open file(s)"), Localization.lang("Open file"), IconTheme.JabRefIcons.FILE, KeyBinding.OPEN_FILE), OPEN_CONSOLE(Localization.lang("Open terminal here"), Localization.lang("Open terminal here"), IconTheme.JabRefIcons.CONSOLE, KeyBinding.OPEN_CONSOLE), - COPY_LINKED_FILES(Localization.lang("Copy linked files to folder...")), + COPY_LINKED_FILES(Localization.lang("Copy linked file(s) to folder...")), COPY_DOI(Localization.lang("Copy DOI")), COPY_DOI_URL(Localization.lang("Copy DOI url")), ABBREVIATE(Localization.lang("Abbreviate journal names")), diff --git a/jabgui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java b/jabgui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java index 582971b6cc7..db7eaa72524 100644 --- a/jabgui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java +++ b/jabgui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java @@ -40,7 +40,7 @@ public CopyFilesAction(DialogService dialogService, private void showDialog(List data) { if (data.isEmpty()) { - dialogService.showInformationDialogAndWait(Localization.lang("Copy linked files to folder..."), Localization.lang("No linked files found for export.")); + dialogService.showInformationDialogAndWait(Localization.lang("Copy linked file(s) to folder..."), Localization.lang("No linked files found for export.")); return; } dialogService.showCustomDialogAndWait(new CopyFilesDialogView(new CopyFilesResultListDependency(data))); @@ -59,8 +59,8 @@ public void execute() { Task> exportTask = new CopyFilesTask(database, entries, path, preferences); dialogService.showProgressDialog( - Localization.lang("Copy linked files to folder..."), - Localization.lang("Copy linked files to folder..."), + Localization.lang("Copy linked file(s) to folder..."), + Localization.lang("Copy linked file(s) to folder..."), exportTask); uiTaskExecutor.execute(exportTask); diff --git a/jabgui/src/main/java/org/jabref/gui/exporter/WriteMetadataToLinkedPdfsAction.java b/jabgui/src/main/java/org/jabref/gui/exporter/WriteMetadataToLinkedPdfsAction.java index 7d33c24caf4..eb5c8819a78 100644 --- a/jabgui/src/main/java/org/jabref/gui/exporter/WriteMetadataToLinkedPdfsAction.java +++ b/jabgui/src/main/java/org/jabref/gui/exporter/WriteMetadataToLinkedPdfsAction.java @@ -84,7 +84,7 @@ public void execute() { return; } else { boolean confirm = dialogService.showConfirmationDialogAndWait( - Localization.lang("Write metadata to PDF files"), + Localization.lang("Write metadata to PDF file(s)"), Localization.lang("Write metadata for all PDFs in current library?")); if (!confirm) { return; diff --git a/jabgui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java b/jabgui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java index 76a53ca33ff..1c3c2be8bfe 100644 --- a/jabgui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java +++ b/jabgui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java @@ -122,7 +122,7 @@ public enum KeyBinding { UNABBREVIATE("Unabbreviate", Localization.lang("Unabbreviate"), "ctrl+alt+shift+A", KeyBindingCategory.TOOLS), UNDO("Undo", Localization.lang("Undo"), "ctrl+Z", KeyBindingCategory.EDIT), WEB_SEARCH("Web search", Localization.lang("Web search"), "alt+4", KeyBindingCategory.SEARCH), - WRITE_METADATA_TO_PDF("Write metadata to PDF files", Localization.lang("Write metadata to PDF files"), "F6", KeyBindingCategory.TOOLS), + WRITE_METADATA_TO_PDF("Write metadata to PDF file(s)", Localization.lang("Write metadata to PDF file(s)"), "F6", KeyBindingCategory.TOOLS), CLEAR_SEARCH("Clear search", Localization.lang("Clear search"), "Esc", KeyBindingCategory.SEARCH), CLEAR_READ_STATUS("Clear read status", Localization.lang("Clear read status"), "", KeyBindingCategory.EDIT), READ("Set read status to read", Localization.lang("Set read status to read"), "", KeyBindingCategory.EDIT), diff --git a/jablib/src/main/resources/l10n/JabRef_en.properties b/jablib/src/main/resources/l10n/JabRef_en.properties index 2446dd46c7a..9242868d40b 100644 --- a/jablib/src/main/resources/l10n/JabRef_en.properties +++ b/jablib/src/main/resources/l10n/JabRef_en.properties @@ -345,7 +345,7 @@ Write\ metadata\ for\ all\ PDFs\ in\ current\ library?=Write metadata for all PD Writing\ metadata...=Writing metadata... Write\ BibTeX\ to\ PDF\ (XMP\ and\ embedded)=Write BibTeX to PDF (XMP and embedded) -Write\ metadata\ to\ PDF\ files=Write metadata to PDF files +Write\ metadata\ to\ PDF\ file(s)=Write metadata to PDF file(s) XMP-annotated\ PDF=XMP-annotated PDF XMP\ export\ privacy\ settings=XMP export privacy settings XMP\ metadata=XMP metadata @@ -2020,7 +2020,6 @@ Names\ are\ not\ in\ the\ standard\ %0\ format.=Names are not in the standard %0 Could\ not\ copy\ file\ to\ %0,\ maybe\ the\ file\ is\ already\ existing?=Could not copy file to %0, maybe the file is already existing? -Copy\ linked\ files\ to\ folder...=Copy linked files to folder... Copied\ file\ successfully=Copied file successfully Copying\ files...=Copying files... Copying\ file\ %0\ of\ entry\ %1=Copying file %0 of entry %1