diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index 06a35640..3248920b 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -377,7 +377,7 @@ function admin_active() ], ($goodie_tshirt ? ['shirt_size' => __('Size')] : []), [ - 'shift_count' => __('Shifts'), + 'shift_count' => __('general.shifts'), 'work_time' => __('Length'), ], ($goodie_enabled ? ['score' => ($goodie_tshirt diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index bd8d5478..24c20e5d 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -17,7 +17,7 @@ use Illuminate\Support\Collection; */ function shifts_title() { - return __('Shifts'); + return __('general.shifts'); } /** diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 3ca5a7a2..6d791bad 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -58,7 +58,7 @@ function make_navigation() $pages = [ 'news' => __('news.title'), 'meetings' => [__('news.title.meetings'), 'user_meetings'], - 'user_shifts' => __('Shifts'), + 'user_shifts' => __('general.shifts'), 'angeltypes' => __('angeltypes.angeltypes'), 'questions' => [__('Ask the Heaven'), 'question.add'], ]; diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php index 1c8afc25..a755a052 100644 --- a/includes/view/AngelTypes_view.php +++ b/includes/view/AngelTypes_view.php @@ -517,7 +517,7 @@ function AngelType_view( $admin_angeltypes, $supporter ), - __('Shifts') => AngelType_view_shifts( + __('general.shifts') => AngelType_view_shifts( $angeltype, $shiftsFilterRenderer, $shiftCalendarRenderer diff --git a/includes/view/Locations_view.php b/includes/view/Locations_view.php index 6e9b3536..96756843 100644 --- a/includes/view/Locations_view.php +++ b/includes/view/Locations_view.php @@ -62,7 +62,7 @@ function location_view(Location $location, ShiftsFilterRenderer $shiftsFilterRen ); } - $tabs[__('Shifts')] = div('first', [ + $tabs[__('general.shifts')] = div('first', [ $shiftsFilterRenderer->render(url('/locations', [ 'action' => 'view', 'location_id' => $location->id, diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 84e9f4b7..db9395b6 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -722,7 +722,7 @@ function User_view( User_groups_render($user_groups), $admin_user_privilege ? User_oauth_render($user_source) : '', ]), - ($its_me || $admin_user_privilege) ? '

' . __('Shifts') . '

' : '', + ($its_me || $admin_user_privilege) ? '

' . __('general.shifts') . '

' : '', $myshifts_table, ($its_me && $nightShiftsConfig['enabled'] && $goodie_enabled) ? info( sprintf( diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index bbfac6a1..d05249a7 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -533,7 +533,7 @@ msgstr "Größe" msgid "No." msgstr "Nr." -msgid "Shifts" +msgid "general.shifts" msgstr "Schichten" msgid "Length" diff --git a/resources/lang/en_US/default.po b/resources/lang/en_US/default.po index 9c1a8889..d5ae8b74 100644 --- a/resources/lang/en_US/default.po +++ b/resources/lang/en_US/default.po @@ -34,6 +34,9 @@ msgstr "DECT" msgid "general.name" msgstr "Name" +msgid "general.shifts" +msgstr "Shifts" + msgid "general.description" msgstr "Description"