From c2cc5e19351e34f2131dca0e1da7324d271b8727 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 24 Jan 2024 04:10:50 -0500 Subject: [PATCH] Separate lines for extension-change confirmation into two strings --- chrome/content/zotero/elements/attachmentBox.js | 4 +++- chrome/locale/en-US/zotero/zotero.properties | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index edaf5b2dac..7d2af9320c 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -530,7 +530,9 @@ let index = Zotero.Prompt.confirm({ window, title: Zotero.getString('general.warning'), - text: Zotero.getString('pane.item.attachments.rename.confirmExtChange.text', [oldExt, newExt, Zotero.appName]), + text: Zotero.getString('pane.item.attachments.rename.confirmExtChange.text1', [oldExt, newExt]) + + "\n\n" + + Zotero.getString('pane.item.attachments.rename.confirmExtChange.text2', Zotero.appName), button0: Zotero.getString('pane.item.attachments.rename.confirmExtChange.keep', oldExt), button1: Zotero.getString('pane.item.attachments.rename.confirmExtChange.change', newExt), }); diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 5fd5e0225c..4a0ad1c0bd 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -418,7 +418,8 @@ pane.item.notes.ignoreMissingImage = Some note images are missing and cannot be pane.item.attachments.rename.title = New title: pane.item.attachments.rename.renameAssociatedFile = Rename associated file pane.item.attachments.rename.error = An error occurred while renaming the file. -pane.item.attachments.rename.confirmExtChange.text = Are you sure you want to change the file extension from “%S” to “%S”?\n\nIf you change the extension, the file may open with a different application outside of %S. +pane.item.attachments.rename.confirmExtChange.text1 = Are you sure you want to change the file extension from “%S” to “%S”? +pane.item.attachments.rename.confirmExtChange.text2 = If you change the extension, the file may open with a different application outside of %S. pane.item.attachments.rename.confirmExtChange.keep = Keep %S pane.item.attachments.rename.confirmExtChange.change = Use %S pane.item.attachments.fileNotFound.title = File Not Found