mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Move file renaming strings to fileRenaming.ftl
Move file-renaming-* and rename-files-preview-* strings from zotero.ftl to a dedicated fileRenaming.ftl. Rename rename-files-preview-* keys to file-renaming-preview-window-* for consistency.
This commit is contained in:
parent
c2ce0af87a
commit
0ff3ec6a1b
6 changed files with 58 additions and 52 deletions
|
|
@ -49,6 +49,7 @@
|
|||
<linkset>
|
||||
<html:link rel="localization" href="branding/brand.ftl" />
|
||||
<html:link rel="localization" href="zotero.ftl" />
|
||||
<html:link rel="localization" href="fileRenaming.ftl" />
|
||||
</linkset>
|
||||
|
||||
<hbox align="center" id="library-picker-row">
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
id="rename-files-preview"
|
||||
data-l10n-id="rename-files-preview-window"
|
||||
data-l10n-id="file-renaming-preview-window"
|
||||
width="800"
|
||||
height="500"
|
||||
onload="RenameFilesPreview.init()"
|
||||
|
|
@ -47,6 +47,7 @@
|
|||
<linkset>
|
||||
<html:link rel="localization" href="branding/brand.ftl" />
|
||||
<html:link rel="localization" href="zotero.ftl" />
|
||||
<html:link rel="localization" href="fileRenaming.ftl" />
|
||||
</linkset>
|
||||
|
||||
<vbox>
|
||||
|
|
@ -55,7 +56,7 @@
|
|||
<vbox class="virtualized-table-container">
|
||||
<html:div id="preview-files-list" class="virtualized-table-wrapper">
|
||||
<html:div class="virtualized-table-loading" id="preview-loading">
|
||||
<html:span data-l10n-id="rename-files-preview-loading" />
|
||||
<html:span data-l10n-id="file-renaming-preview-window-loading" />
|
||||
</html:div>
|
||||
</html:div>
|
||||
<html:progress id="preview-progress" max="1" value="0" />
|
||||
|
|
|
|||
49
chrome/locale/en-US/zotero/fileRenaming.ftl
Normal file
49
chrome/locale/en-US/zotero/fileRenaming.ftl
Normal file
|
|
@ -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 <label data-l10n-name="file-renaming-format-help-link">documentation</label> 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.
|
||||
|
|
@ -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 <label data-l10n-name="file-renaming-format-help-link">documentation</label> 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
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ const ftlFileBaseNames = [
|
|||
'integration',
|
||||
'note-editor',
|
||||
'schema',
|
||||
'fileRenaming',
|
||||
];
|
||||
|
||||
const buildsURL = 'https://zotero-download.s3.amazonaws.com/ci/';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue