update translation when importing plugin

This commit is contained in:
Boy132 2025-10-30 10:55:33 +01:00
parent 91f88daaa3
commit 244f77559e
2 changed files with 4 additions and 4 deletions

View File

@ -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();
} }

View File

@ -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',
], ],
]; ];