diff --git a/app/Listeners/Menu/ShowInNotifications.php b/app/Listeners/Menu/ShowInNotifications.php index 49d499e47..6ba776b82 100644 --- a/app/Listeners/Menu/ShowInNotifications.php +++ b/app/Listeners/Menu/ShowInNotifications.php @@ -32,6 +32,7 @@ class ShowInNotifications foreach ($updates as $key => $update) { $prefix = ($key == 'core') ? 'core' : 'module'; + $name = ($prefix == 'core') ? 'Akaunting' : module($key)->getName(); $new = new DatabaseNotification(); $new->id = $key; @@ -39,8 +40,8 @@ class ShowInNotifications $new->notifiable_type = "users"; $new->notifiable_id = user()->id; $new->data = [ - 'title' => $key . ' (v' . $update . ')', - 'description' => '' . trans('install.update.' . $prefix) . '', + 'title' => $name . ' (v' . $update . ')', + 'description' => '' . trans('install.update.' . $prefix, ['module' => $name]) . '', ]; $new->created_at = \Carbon\Carbon::now();