add media check window title, use consistent formatting in template

This commit is contained in:
Damien Elmes 2020-03-12 17:56:36 +10:00
parent 5e676db4a0
commit f0be553e09
2 changed files with 30 additions and 29 deletions

View File

@ -72,7 +72,7 @@ class MediaChecker:
# show report and offer to delete # show report and offer to delete
diag = QDialog(self.mw) diag = QDialog(self.mw)
diag.setWindowTitle("Anki") diag.setWindowTitle(tr(TR.MEDIA_CHECK_WINDOW_TITLE))
layout = QVBoxLayout(diag) layout = QVBoxLayout(diag)
diag.setLayout(layout) diag.setLayout(layout)
text = QTextEdit() text = QTextEdit()

View File

@ -3,50 +3,50 @@
# the number of files, and the total space used by files # the number of files, and the total space used by files
# that have been moved to the trash folder. eg, # that have been moved to the trash folder. eg,
# "Trash folder: 3 files, 3.47MB" # "Trash folder: 3 files, 3.47MB"
media-check-trash-count = Trash folder: { $count -> media-check-trash-count =
[one] 1 file, {$megs}MB Trash folder: { $count ->
*[other] {$count} files, {$megs}MB [one] 1 file, { $megs }MB
} *[other] { $count } files, { $megs }MB
media-check-missing-count = Missing files: {$count} }
media-check-unused-count = Unused files: {$count} media-check-missing-count = Missing files: { $count }
media-check-renamed-count = Renamed files: {$count} media-check-unused-count = Unused files: { $count }
media-check-oversize-count = Over 100MB: {$count} media-check-renamed-count = Renamed files: { $count }
media-check-subfolder-count = Subfolders: {$count} media-check-oversize-count = Over 100MB: { $count }
media-check-subfolder-count = Subfolders: { $count }
## Shown at the top of each section ## Shown at the top of each section
media-check-renamed-header = Some files have been renamed for compatibility: media-check-renamed-header = Some files have been renamed for compatibility:
media-check-oversize-header = Files over 100MB can not be synced with AnkiWeb. media-check-oversize-header = Files over 100MB can not be synced with AnkiWeb.
media-check-subfolder-header = Folders inside the media folder are not supported. media-check-subfolder-header = Folders inside the media folder are not supported.
media-check-missing-header = media-check-missing-header = The following files are referenced by cards, but were not found in the media folder:
The following files are referenced by cards, but were not found in the media folder: media-check-unused-header = The following files were found in the media folder, but do not appear to be used on any cards:
media-check-unused-header =
The following files were found in the media folder, but do not appear to be used on any cards:
## Shown once for each file ## Shown once for each file
media-check-renamed-file = Renamed: {$old} -> {$new} media-check-renamed-file = Renamed: { $old } -> { $new }
media-check-oversize-file = Over 100MB: {$filename} media-check-oversize-file = Over 100MB: { $filename }
media-check-subfolder-file = Folder: {$filename} media-check-subfolder-file = Folder: { $filename }
media-check-missing-file = Missing: {$filename} media-check-missing-file = Missing: { $filename }
media-check-unused-file = Unused: {$filename} media-check-unused-file = Unused: { $filename }
## Progress ## Progress
media-check-checked = Checked {$count}... media-check-checked = Checked { $count }...
## Deleting unused media ## Deleting unused media
media-check-delete-unused-confirm = Delete unused media? media-check-delete-unused-confirm = Delete unused media?
media-check-files-remaining = {$count -> media-check-files-remaining =
[one] 1 file { $count ->
*[other] {$count} files [one] 1 file
} remaining. *[other] { $count } files
media-check-delete-unused-complete = {$count -> } remaining.
[one] 1 file media-check-delete-unused-complete =
*[other] {$count} files { $count ->
} moved to the trash. [one] 1 file
*[other] { $count } files
} moved to the trash.
media-check-trash-emptied = The trash folder is now empty. media-check-trash-emptied = The trash folder is now empty.
media-check-trash-restored = Restored deleted files to the media folder. media-check-trash-restored = Restored deleted files to the media folder.
@ -62,3 +62,4 @@ media-check-render-latex = Render LaTeX
media-check-empty-trash = Empty Trash media-check-empty-trash = Empty Trash
# button to move deleted files from the trash back into the media folder # button to move deleted files from the trash back into the media folder
media-check-restore-trash = Restore Deleted media-check-restore-trash = Restore Deleted
media-check-window-title = Check Media