1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 22:26:55 +02:00

Fix Translates

This commit is contained in:
Awilum
2014-04-27 14:00:20 +04:00
parent fe4caf0802
commit 48b7be3ecc
11 changed files with 65 additions and 51 deletions

View File

@@ -51,9 +51,9 @@ class BackupAdmin extends Backend
if (Security::check(Request::get('token'))) {
if (File::delete($backups_path . DS . Request::get('delete_file'))) {
Notification::set('success', __('Backup was deleted', 'system'));
Notification::set('success', __('Backup was deleted', 'backup'));
} else {
Notification::set('error', __('Backup was not deleted', 'system'));
Notification::set('error', __('Backup was not deleted', 'backup'));
}
Request::redirect(Option::get('siteurl').'/admin/index.php?id=backup');
@@ -81,12 +81,12 @@ class BackupAdmin extends Backend
$file_locations = Zip::factory()->extract($backups_path . DS . Request::get('restore'), $tmp_dir);
if (!empty($file_locations)) {
Dir::copy($tmp_dir, ROOT . DS);
Notification::set('success', __('Backup was restored', 'system'));
Notification::set('success', __('Backup was restored', 'backup'));
} else {
Notification::set('error', __('Unzip error', 'system'));
Notification::set('error', __('Unzip error', 'backup'));
}
} else {
Notification::set('error', __('Backup was not restored', 'system'));
Notification::set('error', __('Backup was not restored', 'backup'));
}
Request::redirect(Option::get('siteurl').'/admin/index.php?id=backup');

View File

@@ -13,5 +13,9 @@
'Actions' => 'Действия',
'Delete backup: :backup' => 'Удалить бекап: :backup',
'Creating...' => 'Создание...',
'Backup was deleted' => 'Бекап не был создан',
'Backup was created' => 'Бекап был создан',
'Backup was not restored' => 'Бекап не был восстановлен',
'Backup was restored' => 'Бекап был восстановлен',
)
);