mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1741 from mh4ckt3mh4ckt1c4s/fix-backup-warning-message
Fix backup error message if archive already exists
This commit is contained in:
commit
50c00c60bc
3 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@
|
|||
"backup_archive_broken_link": "Could not access the backup archive (broken link to {path})",
|
||||
"backup_archive_cant_retrieve_info_json": "Could not load info for archive '{archive}'... The info.json file cannot be retrieved (or is not a valid json).",
|
||||
"backup_archive_corrupted": "It looks like the backup archive '{archive}' is corrupted : {error}",
|
||||
"backup_archive_name_exists": "A backup archive with this name already exists.",
|
||||
"backup_archive_name_exists": "A backup archive with the name '{name}' already exists.",
|
||||
"backup_archive_name_unknown": "Unknown local backup archive named '{name}'",
|
||||
"backup_archive_open_failed": "Could not open the backup archive",
|
||||
"backup_archive_system_part_not_available": "System part '{part}' unavailable in this backup",
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"ask_password": "Mot de passe",
|
||||
"backup_app_failed": "Impossible de sauvegarder {app}",
|
||||
"backup_archive_app_not_found": "{app} n'a pas été trouvée dans l'archive de la sauvegarde",
|
||||
"backup_archive_name_exists": "Une archive de sauvegarde avec ce nom existe déjà.",
|
||||
"backup_archive_name_exists": "Une archive de sauvegarde avec le nom '{name}' existe déjà.",
|
||||
"backup_archive_name_unknown": "L'archive locale de sauvegarde nommée '{name}' est inconnue",
|
||||
"backup_archive_open_failed": "Impossible d'ouvrir l'archive de la sauvegarde",
|
||||
"backup_cleaning_failed": "Impossible de nettoyer le dossier temporaire de sauvegarde",
|
||||
|
|
|
@ -2208,7 +2208,7 @@ def backup_create(
|
|||
|
||||
# Validate there is no archive with the same name
|
||||
if name and name in backup_list()["archives"]:
|
||||
raise YunohostValidationError("backup_archive_name_exists")
|
||||
raise YunohostValidationError("backup_archive_name_exists", name=name)
|
||||
|
||||
# By default we backup using the tar method
|
||||
if not methods:
|
||||
|
|
Loading…
Add table
Reference in a new issue