diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index c66165d0..c5074a7e 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -414,15 +414,6 @@ function admin_shifts() $shift->createdBy()->associate(auth()->user()); $shift->save(); - engelsystem_log( - 'Shift created: ' . $shifttypes[$shift->shift_type_id] - . ' with title ' . $shift->title - . ' with description ' . $shift->description - . ' from ' . $shift->start->format('Y-m-d H:i') - . ' to ' . $shift->end->format('Y-m-d H:i') - . ', transaction: ' . $transactionId - ); - $needed_angel_types_info = []; foreach ($session->get('admin_shifts_types', []) as $type_id => $count) { $angel_type_source = AngelType::find($type_id); @@ -436,7 +427,13 @@ function admin_shifts() $needed_angel_types_info[] = $angel_type_source->name . ': ' . $count; } } - engelsystem_log('Shift needs following angel types: ' . join(', ', $needed_angel_types_info)); + engelsystem_log('Shift created: ' . $shifttypes[$shift->shift_type_id] + . ' with title ' . $shift->title + . ' with description ' . $shift->description + . ' from ' . $shift->start->format('Y-m-d H:i') + . ' to ' . $shift->end->format('Y-m-d H:i') + . ', transaction: ' . $transactionId + . '; needed angel types: ' . join(', ', $needed_angel_types_info)); } success('Shifts created.'); diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 5013a844..5a8e0a61 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -122,8 +122,9 @@ function Users_view( '/admin-user', ['id' => $user->id] ), - 'pencil', + icon('pencil'), 'btn-sm', + '', __('form.edit') ), ]); @@ -563,7 +564,10 @@ function User_view( 'actions' => __('general.actions'), ], $my_shifts)); } elseif ($user_source->state->force_active) { - $myshifts_table = success(__('You have done enough.'), true); + $myshifts_table = success(__( + 'myshifts.sucess', + [($its_me ? __('You have') : ($user_source->name . ' ' . __('has')))] + ), true); } } diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index a0a9f215..88b60718 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -1187,8 +1187,14 @@ msgstr "Dauer" msgid "Name & Workmates" msgstr "Name & Kollegen" -msgid "You have done enough." -msgstr "Du hast genug gemacht." +msgid "myshifts.sucess" +msgstr "%s genug gemacht." + +msgid "You have" +msgstr "Du hast" + +msgid "has" +msgstr "hat" msgid "Vouchers" msgstr "Gutscheine" diff --git a/resources/lang/en_US/default.po b/resources/lang/en_US/default.po index fd96a2ed..a070bad5 100644 --- a/resources/lang/en_US/default.po +++ b/resources/lang/en_US/default.po @@ -934,3 +934,6 @@ msgstr "Actions" msgid "general.back" msgstr "Back" + +msgid "myshifts.sucess" +msgstr "%s done enough."