mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:29:29 +01:00
update translation when importing plugin
This commit is contained in:
parent
91f88daaa3
commit
244f77559e
@ -220,14 +220,14 @@ class PluginResource extends Resource
|
|||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->success()
|
->success()
|
||||||
->title(trans('admin/plugin.notifications.downloaded'))
|
->title(trans('admin/plugin.notifications.imported'))
|
||||||
->send();
|
->send();
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
report($exception);
|
report($exception);
|
||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->danger()
|
->danger()
|
||||||
->title(trans('admin/plugin.notifications.download_failed'))
|
->title(trans('admin/plugin.notifications.import_failed'))
|
||||||
->body($exception->getMessage())
|
->body($exception->getMessage())
|
||||||
->send();
|
->send();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@ return [
|
|||||||
'updated' => 'Plugin updated',
|
'updated' => 'Plugin updated',
|
||||||
'enabled' => 'Plugin enabled',
|
'enabled' => 'Plugin enabled',
|
||||||
'disabled' => 'Plugin disabled',
|
'disabled' => 'Plugin disabled',
|
||||||
'downloaded' => 'Plugin downloaded',
|
'imported' => 'Plugin imported',
|
||||||
'download_failed' => 'Could not download plugin',
|
'import_failed' => 'Could not import plugin',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user