diff --git a/bl-plugins/backup/languages/de_CH.json b/bl-plugins/backup/languages/de_CH.json index 4c72cd81..452c59be 100644 --- a/bl-plugins/backup/languages/de_CH.json +++ b/bl-plugins/backup/languages/de_CH.json @@ -3,5 +3,9 @@ { "name": "Backup", "description": "Einfach Backups erstellen und wiederherstellen." - } -} + }, + "create-backup": "Create Backup", + "download": "Download", + "restore-backup": "Restore Backup", + "delete-backup": "Delete Backup" +} \ No newline at end of file diff --git a/bl-plugins/backup/languages/de_DE.json b/bl-plugins/backup/languages/de_DE.json index 4c72cd81..452c59be 100644 --- a/bl-plugins/backup/languages/de_DE.json +++ b/bl-plugins/backup/languages/de_DE.json @@ -3,5 +3,9 @@ { "name": "Backup", "description": "Einfach Backups erstellen und wiederherstellen." - } -} + }, + "create-backup": "Create Backup", + "download": "Download", + "restore-backup": "Restore Backup", + "delete-backup": "Delete Backup" +} \ No newline at end of file diff --git a/bl-plugins/backup/languages/en.json b/bl-plugins/backup/languages/en.json index 6e1a4db5..0453ba3b 100644 --- a/bl-plugins/backup/languages/en.json +++ b/bl-plugins/backup/languages/en.json @@ -4,7 +4,8 @@ "name": "Backup", "description": "The simple way to backup your Bludit." }, - "create-backup": "Create Backup", - "download": "Download", - "restore-backup": "Restore Backup" -} + "create-backup": "Create Backup", + "download": "Download", + "restore-backup": "Restore Backup", + "delete-backup": "Delete Backup" +} \ No newline at end of file diff --git a/bl-plugins/backup/languages/es.json b/bl-plugins/backup/languages/es.json new file mode 100644 index 00000000..fed6c356 --- /dev/null +++ b/bl-plugins/backup/languages/es.json @@ -0,0 +1,11 @@ +{ + "plugin-data": + { + "name": "Backup", + "description": "La forma mas fácil de hacer un backup." + }, + "create-backup": "Crear Backup", + "download": "Descargar", + "restore-backup": "Recuperar Backup", + "delete-backup": "Eliminar Backup" +} \ No newline at end of file diff --git a/bl-plugins/backup/languages/tr_TR.json b/bl-plugins/backup/languages/tr_TR.json index 75172ec1..193002a7 100644 --- a/bl-plugins/backup/languages/tr_TR.json +++ b/bl-plugins/backup/languages/tr_TR.json @@ -4,7 +4,8 @@ "name": "Yedekleme", "description": "Yedek almak için en kolay yol." }, - "create-backup": "Yedek Al", - "download": "İndir", - "restore-backup": "Geri Yükle" -} + "create-backup": "Yedek Al", + "download": "İndir", + "restore-backup": "Geri Yükle", + "delete-backup": "Delete Backup" +} \ No newline at end of file diff --git a/bl-plugins/backup/plugin.php b/bl-plugins/backup/plugin.php index 502111e6..56f5ca42 100644 --- a/bl-plugins/backup/plugin.php +++ b/bl-plugins/backup/plugin.php @@ -47,10 +47,10 @@ class pluginBackup extends Plugin { { if (isset($_POST['createBackup'])) { return $this->createBackup(); - } - - if (isset($_POST['restoreBackup'])) { + } elseif (isset($_POST['restoreBackup'])) { return $this->restoreBackup($_POST['restoreBackup']); + } elseif (isset($_POST['deleteBackup'])) { + return $this->deleteBackup($_POST['deleteBackup']); } return false; @@ -76,8 +76,12 @@ class pluginBackup extends Plugin { $html .= '