mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
feat(storage): show running checks, confirmations and the nightly result in Admin > Storage
The panels follow the reworked reclaim state: Check now starts a check in the background and the panel polls until it is done, a category with an unusually large share of unused files offers Confirm, Freed comes from the last run that deleted, a stopped check says why and no longer reads as nothing found, the switch waits for its answer and a poll that was in flight cannot flip it back, and refusals name their reason in the operator's language. Strings updated in all 28 languages.
This commit is contained in:
@@ -156,20 +156,32 @@ const storage: TranslationStrings = {
|
||||
'storage.reclaim.hint':
|
||||
'Every night TREK looks for uploaded files that no trip, place, journal, collection or user uses any more, for example after a trip was deleted.',
|
||||
'storage.reclaim.check': 'Check now',
|
||||
'storage.reclaim.checked': 'Checked {age}',
|
||||
'storage.reclaim.checked': 'Last check: {age}',
|
||||
'storage.reclaim.never': 'Not checked yet',
|
||||
'storage.reclaim.delete': 'Delete unreferenced files',
|
||||
'storage.reclaim.deleteHint':
|
||||
'Off, the nightly check only reports. On, a file nothing has used for a week is deleted. Leave it off if several installations share one storage bucket.',
|
||||
'Off, the nightly check only reports. On, a file nothing has used for a week is deleted. Files you delete in TREK are removed right away either way.',
|
||||
'storage.reclaim.freeable': 'Can be freed',
|
||||
'storage.reclaim.waiting': 'Unused for less than a week',
|
||||
'storage.reclaim.deleted': 'Freed on the last check',
|
||||
'storage.reclaim.deleted': 'Freed by the last nightly cleanup',
|
||||
'storage.reclaim.nothing': 'No unreferenced files found.',
|
||||
'storage.reclaim.stopped': 'The last check stopped early because the database was restored while it ran.',
|
||||
'storage.reclaim.skip.sources_missing': 'Skipped: not every part of TREK could be asked',
|
||||
'storage.reclaim.skip.shared_location': 'Skipped: shares its location with another category',
|
||||
'storage.reclaim.skip.too_many_unreferenced': 'Skipped: too many files look unused, possibly a shared bucket',
|
||||
'storage.reclaim.skip.list_failed': 'Skipped: the files could not be listed',
|
||||
'storage.reclaim.skip.source_failed': 'Skipped: a lookup failed',
|
||||
'storage.reclaim.running': 'Checking…',
|
||||
'storage.reclaim.stoppedFailed': 'The last check stopped after an error. It runs again tonight.',
|
||||
'storage.reclaim.skip.foreign_install': 'Skipped: another TREK installation uses this storage',
|
||||
'storage.reclaim.skip.owner_unknown': 'Skipped: TREK could not mark this storage as its own',
|
||||
'storage.reclaim.skip.delete_failed': 'Stopped: the storage refused a delete',
|
||||
'storage.reclaim.skip.interrupted': 'Stopped before it finished, the figures are partial',
|
||||
'storage.reclaim.confirmNeeded':
|
||||
'More than a fifth of these files look unused. Nothing here is deleted until you confirm that this is expected.',
|
||||
'storage.reclaim.confirm': 'Confirm',
|
||||
'storage.reclaim.confirmed': 'Confirmed. The nightly cleanup may delete these files now.',
|
||||
'storage.reclaim.error.reclaim_busy': 'Another storage task is running. Try again in a moment.',
|
||||
'storage.reclaim.error.reclaim_demo': 'Not available on a demo instance.',
|
||||
'storage.reclaim.error.reclaim_nothing_to_confirm': 'There is nothing to confirm any more. Run a check first.',
|
||||
};
|
||||
export default storage;
|
||||
|
||||
Reference in New Issue
Block a user