From 0fe2b6f699afc8960ddc3ce61ecb1129b6d8d192 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 9 Apr 2022 12:22:35 +1000 Subject: [PATCH] Garbage-collect unused FTL strings Two strings related to scheduler upgrade have been manually excluded, as we may be able to reuse them for a future V3 update. --- ftl/core/custom-study.ftl | 2 -- ftl/core/deck-config.ftl | 16 ---------------- ftl/core/editing.ftl | 2 -- ftl/core/preferences.ftl | 4 ---- ftl/qt/errors.ftl | 1 - ftl/qt/qt-accel.ftl | 2 -- ftl/qt/qt-misc.ftl | 1 - 7 files changed, 28 deletions(-) diff --git a/ftl/core/custom-study.ftl b/ftl/core/custom-study.ftl index 254338546..06b61ff30 100644 --- a/ftl/core/custom-study.ftl +++ b/ftl/core/custom-study.ftl @@ -29,5 +29,3 @@ custom-study-available-review-cards = Available review cards: { $count } ## DEPRECATED - you do not need to translate these. -custom-study-new-cards-in-deck-over-today = New cards in deck over today limit: { $val } -custom-study-reviews-due-in-deck-over-today = Reviews due in deck over today limit: { $val } diff --git a/ftl/core/deck-config.ftl b/ftl/core/deck-config.ftl index de342a2ae..e97166fe1 100644 --- a/ftl/core/deck-config.ftl +++ b/ftl/core/deck-config.ftl @@ -139,12 +139,8 @@ deck-config-new-card-sort-order-tooltip-2 = in order. `Random`: Fully shuffles the gathered cards. -deck-config-sort-order-card-template-then-lowest-position = Card type, then ascending position -deck-config-sort-order-card-template-then-highest-position = Card type, then descending position deck-config-sort-order-card-template-then-random = Card type, then random deck-config-sort-order-random-note-then-template = Random note, then card type -deck-config-sort-order-lowest-position = Ascending position -deck-config-sort-order-highest-position = Descending position deck-config-sort-order-random = Random deck-config-sort-order-template-then-gather = Card type deck-config-sort-order-gather = Order gathered @@ -276,15 +272,3 @@ deck-config-which-deck = Which deck would you like? ## NO NEED TO TRANSLATE. These strings have been replaced with new versions, and will be removed in the future. -deck-config-new-card-sort-order-tooltip = - How cards are sorted after they have been gathered. By default, Anki sorts - by card template first, to avoid multiple cards of the same note from being - shown in succession. -deck-config-new-gather-priority-tooltip = - `Deck`: gathers cards from each subdeck in order, and stops when the - limit of the selected deck has been exceeded. This is faster, and allows you - to prioritize subdecks that are closer to the top. - - `Position`: gathers cards from all decks before they are sorted. This - ensures cards appear in strict position (due #) order, even if the parent limit is - not high enough to see cards from all decks. diff --git a/ftl/core/editing.ftl b/ftl/core/editing.ftl index f91dface4..df5d391db 100644 --- a/ftl/core/editing.ftl +++ b/ftl/core/editing.ftl @@ -60,5 +60,3 @@ editing-warning-cloze-deletions-will-not-work = Warning, cloze deletions will no ## You don't need to translate these strings, as they will be replaced with different ones soon. editing-html-editor = HTML Editor -editing-set-text-color = Set text color -editing-set-text-highlight-color = Set text highlight color diff --git a/ftl/core/preferences.ftl b/ftl/core/preferences.ftl index 2d4523204..76e3132a0 100644 --- a/ftl/core/preferences.ftl +++ b/ftl/core/preferences.ftl @@ -1,19 +1,15 @@ preferences-automatically-sync-on-profile-openclose = Automatically sync on profile open/close preferences-backups = Backups -preferences-backups2 = backups -preferences-backupsanki-will-create-a-backup-of =

Backups
Anki will create a backup of your collection each time it is closed.

preferences-basic = Basic preferences-change-deck-depending-on-note-type = Change deck depending on note type preferences-changes-will-take-effect-when-you = Changes will take effect when you restart Anki. preferences-hours-past-midnight = hours past midnight preferences-interface-language = Interface language: preferences-interrupt-current-audio-when-answering = Interrupt current audio when answering -preferences-keep = Keep preferences-learn-ahead-limit = Learn ahead limit preferences-mins = mins preferences-network = Network preferences-next-day-starts-at = Next day starts at -preferences-night-mode = Night mode preferences-note-media-is-not-backed-up = Note: Media is not backed up. Please create a periodic backup of your Anki folder to be safe. preferences-on-next-sync-force-changes-in = On next sync, force changes in one direction preferences-paste-clipboard-images-as-png = Paste clipboard images as PNG diff --git a/ftl/qt/errors.ftl b/ftl/qt/errors.ftl index 8990a65fc..5e88d4fea 100644 --- a/ftl/qt/errors.ftl +++ b/ftl/qt/errors.ftl @@ -43,4 +43,3 @@ errors-windows-tts-runtime-error = The TTS service failed. Please ensure Windows ## OBSOLETE; you do not need to translate this --errors-addon-support-site = [add-on support site](https://help.ankiweb.net/discussions/add-ons/) diff --git a/ftl/qt/qt-accel.ftl b/ftl/qt/qt-accel.ftl index 27d421f99..e6fc8022f 100644 --- a/ftl/qt/qt-accel.ftl +++ b/ftl/qt/qt-accel.ftl @@ -1,5 +1,4 @@ qt-accel-about = &About -qt-accel-browse-and-install = &Browse and Install... qt-accel-cards = &Cards qt-accel-check-database = &Check Database qt-accel-check-media = Check &Media @@ -21,7 +20,6 @@ qt-accel-invert-selection = &Invert Selection qt-accel-next-card = &Next Card qt-accel-note = N&ote qt-accel-notes = &Notes -qt-accel-open-addons-folder = &Open Add-ons Folder qt-accel-preferences = &Preferences qt-accel-previous-card = &Previous Card qt-accel-select-all = Select &All diff --git a/ftl/qt/qt-misc.ftl b/ftl/qt/qt-misc.ftl index e91c9290e..17afa95d2 100644 --- a/ftl/qt/qt-misc.ftl +++ b/ftl/qt/qt-misc.ftl @@ -53,7 +53,6 @@ qt-misc-the-requested-change-will-require-a = The requested change will require qt-misc-there-must-be-at-least-one = There must be at least one profile. qt-misc-this-file-exists-are-you-sure = This file exists. Are you sure you want to overwrite it? qt-misc-unable-to-access-anki-media-folder = Unable to access Anki media folder. The permissions on your system's temporary folder may be incorrect. -qt-misc-unable-to-move-existing-file-to = Unable to move existing file to trash - please try restarting your computer. qt-misc-unexpected-response-code = Unexpected response code: { $val } qt-misc-would-you-like-to-download-it = Would you like to download it now? qt-misc-your-collection-file-appears-to-be = Your collection file appears to be corrupt. This can happen when the file is copied or moved while Anki is open, or when the collection is stored on a network or cloud drive. If problems persist after restarting your computer, please open an automatic backup from the profile screen.