Separate lines for extension-change confirmation into two strings

This commit is contained in:
Dan Stillman 2024-01-24 04:10:50 -05:00
parent 4f73ea0cfa
commit c2cc5e1935
2 changed files with 5 additions and 2 deletions

View file

@ -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),
});

View file

@ -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