diff --git a/chrome/content/zotero/fileRenamingDialog.xhtml b/chrome/content/zotero/fileRenamingDialog.xhtml
index 9d5b3103a8..422743b31a 100644
--- a/chrome/content/zotero/fileRenamingDialog.xhtml
+++ b/chrome/content/zotero/fileRenamingDialog.xhtml
@@ -49,6 +49,7 @@
+
diff --git a/chrome/content/zotero/renameFilesPreview.js b/chrome/content/zotero/renameFilesPreview.js
index 46d5f228cc..9f0cbbb383 100644
--- a/chrome/content/zotero/renameFilesPreview.js
+++ b/chrome/content/zotero/renameFilesPreview.js
@@ -52,11 +52,11 @@ var RenameFilesPreview = { // eslint-disable-line no-unused-vars
this.acceptBtn.addEventListener('command', this.handleAccept.bind(this));
if (this.libraryID === Zotero.Libraries.userLibraryID) {
- document.l10n.setAttributes(this.introEl, 'rename-files-preview-intro');
+ document.l10n.setAttributes(this.introEl, 'file-renaming-preview-window-intro');
}
else {
let libraryName = Zotero.Libraries.get(this.libraryID).name;
- document.l10n.setAttributes(this.introEl, 'rename-files-preview-intro-library', { library: libraryName });
+ document.l10n.setAttributes(this.introEl, 'file-renaming-preview-window-intro-library', { library: libraryName });
}
this._rowRenderer = VirtualizedTable.makeRowRenderer(this._getRowData.bind(this));
@@ -71,7 +71,7 @@ var RenameFilesPreview = { // eslint-disable-line no-unused-vars
if (results.length === 0) {
this._noFiles = true;
- this.introEl.dataset.l10nId = 'rename-files-preview-no-files';
+ this.introEl.dataset.l10nId = 'file-renaming-preview-window-no-files';
this.cancelBtn.hidden = true;
document.l10n.setAttributes(this.acceptBtn, 'file-renaming-done-button');
@@ -99,7 +99,7 @@ var RenameFilesPreview = { // eslint-disable-line no-unused-vars
this.filesListEl.hidden = true;
this.progressEl.classList.remove('hidden');
- this.introEl.dataset.l10nId = 'rename-files-preview-renaming';
+ this.introEl.dataset.l10nId = 'file-renaming-preview-window-renaming';
this.cancelBtn.hidden = true;
this.acceptBtn.hidden = true;
diff --git a/chrome/content/zotero/renameFilesPreview.xhtml b/chrome/content/zotero/renameFilesPreview.xhtml
index e46150e440..df8412f8db 100644
--- a/chrome/content/zotero/renameFilesPreview.xhtml
+++ b/chrome/content/zotero/renameFilesPreview.xhtml
@@ -33,7 +33,7 @@
+
@@ -55,7 +56,7 @@
-
+
diff --git a/chrome/locale/en-US/zotero/fileRenaming.ftl b/chrome/locale/en-US/zotero/fileRenaming.ftl
new file mode 100644
index 0000000000..24f6c99eb4
--- /dev/null
+++ b/chrome/locale/en-US/zotero/fileRenaming.ftl
@@ -0,0 +1,49 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+file-renaming-settings-window =
+ .title = Configure File Renaming
+file-renaming-settings-library-label = Library:
+file-renaming-auto-rename-files =
+ .label = Automatically rename files
+file-renaming-file-types = Rename files of these types:
+file-renaming-file-type-pdf =
+ .label = { file-type-pdf }
+file-renaming-file-type-epub =
+ .label = { file-type-ebook }
+file-renaming-file-type-image =
+ .label = { file-type-image }
+file-renaming-file-type-audio =
+ .label = { file-type-audio }
+file-renaming-file-type-video =
+ .label = { file-type-video }
+file-renaming-rename-now =
+ .label = Rename Files…
+file-renaming-rename-linked =
+ .label = Rename linked files
+file-renaming-format-title = Filename Format
+file-renaming-format-instructions = You can customize the filename pattern { -app-name } uses to rename attachment files from parent metadata.
+file-renaming-format-instructions-example = For example, "{ $example }" in this template will be replaced with the title of the parent item, truncated at 50 characters.
+file-renaming-format-instructions-more = See the for more information.
+file-renaming-format-template = Filename Template:
+file-renaming-format-preview = Preview:
+file-renaming-preview-changes = Preview Changes…
+file-renaming-rename-files =
+ .label = Rename Files
+file-renaming-done-button =
+ .label = { general-done }
+file-renaming-cancel-button =
+ .label = { general-cancel }
+file-renaming-auto-rename-prompt-title = Renaming Settings Changed
+file-renaming-auto-rename-prompt-body = Would you like to rename existing files in your library to match the new settings?
+file-renaming-auto-rename-prompt-body-library = Would you like to rename existing files in library "{ $library }" to match the new settings?
+file-renaming-auto-rename-prompt-yes = { file-renaming-preview-changes }
+file-renaming-auto-rename-prompt-no = Keep Existing Filenames
+file-renaming-preview-window =
+ .title = Rename Files
+file-renaming-preview-window-loading = Loading…
+file-renaming-preview-window-intro = { -app-name } will rename the following files in your library to match their parent items:
+file-renaming-preview-window-intro-library = { -app-name } will rename the following files in "{ $library }" to match their parent items:
+file-renaming-preview-window-renaming = Renaming…
+file-renaming-preview-window-no-files = All filenames already match parent items. No changes are required.
diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl
index 44f1af3659..2dab80efec 100644
--- a/chrome/locale/en-US/zotero/zotero.ftl
+++ b/chrome/locale/en-US/zotero/zotero.ftl
@@ -654,52 +654,6 @@ new-collection-create-in = Create in:
show-publications-menuitem =
.label = Show My Publications
-file-renaming-settings-window =
- .title = Configure File Renaming
-file-renaming-settings-library-label = Library:
-file-renaming-auto-rename-files =
- .label = Automatically rename files
-file-renaming-file-types = Rename files of these types:
-file-renaming-file-type-pdf =
- .label = { file-type-pdf }
-file-renaming-file-type-epub =
- .label = { file-type-ebook }
-file-renaming-file-type-image =
- .label = { file-type-image }
-file-renaming-file-type-audio =
- .label = { file-type-audio }
-file-renaming-file-type-video =
- .label = { file-type-video }
-file-renaming-rename-now =
- .label = Rename Files…
-file-renaming-rename-linked =
- .label = Rename linked files
-file-renaming-format-title = Filename Format
-file-renaming-format-instructions = You can customize the filename pattern { -app-name } uses to rename attachment files from parent metadata.
-file-renaming-format-instructions-example = For example, "{ $example }" in this template will be replaced with the title of the parent item, truncated at 50 characters.
-file-renaming-format-instructions-more = See the for more information.
-file-renaming-format-template = Filename Template:
-file-renaming-format-preview = Preview:
-file-renaming-preview-changes = Preview Changes…
-file-renaming-rename-files =
- .label = Rename Files
-file-renaming-done-button =
- .label = { general-done }
-file-renaming-cancel-button =
- .label = { general-cancel }
-file-renaming-auto-rename-prompt-title = Renaming Settings Changed
-file-renaming-auto-rename-prompt-body = Would you like to rename existing files in your library to match the new settings?
-file-renaming-auto-rename-prompt-body-library = Would you like to rename existing files in library "{ $library }" to match the new settings?
-file-renaming-auto-rename-prompt-yes = { file-renaming-preview-changes }
-file-renaming-auto-rename-prompt-no = Keep Existing Filenames
-rename-files-preview-window =
- .title = Rename Files
-rename-files-preview-loading = Loading…
-rename-files-preview-intro = { -app-name } will rename the following files in your library to match their parent items:
-rename-files-preview-intro-library = { -app-name } will rename the following files in "{ $library }" to match their parent items:
-rename-files-preview-renaming = Renaming…
-rename-files-preview-no-files = All filenames already match parent items. No changes are required.
-
attachment-info-title = Title
attachment-info-filename = Filename
attachment-info-accessed = Accessed
diff --git a/js-build/config.js b/js-build/config.js
index 5b9d1aec88..bff9dde52a 100644
--- a/js-build/config.js
+++ b/js-build/config.js
@@ -123,6 +123,7 @@ const ftlFileBaseNames = [
'integration',
'note-editor',
'schema',
+ 'fileRenaming',
];
const buildsURL = 'https://zotero-download.s3.amazonaws.com/ci/';