rename "Shifts" translation

This commit is contained in:
Xu 2024-03-24 15:05:24 +01:00 committed by Igor Scheller
parent 49cc935ceb
commit 865ffe5e5a
8 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -17,7 +17,7 @@ use Illuminate\Support\Collection;
*/
function shifts_title()
{
return __('Shifts');
return __('general.shifts');
}
/**

View File

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

View File

@ -517,7 +517,7 @@ function AngelType_view(
$admin_angeltypes,
$supporter
),
__('Shifts') => AngelType_view_shifts(
__('general.shifts') => AngelType_view_shifts(
$angeltype,
$shiftsFilterRenderer,
$shiftCalendarRenderer

View File

@ -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,

View File

@ -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) ? '<h2>' . __('Shifts') . '</h2>' : '',
($its_me || $admin_user_privilege) ? '<h2>' . __('general.shifts') . '</h2>' : '',
$myshifts_table,
($its_me && $nightShiftsConfig['enabled'] && $goodie_enabled) ? info(
sprintf(

View File

@ -533,7 +533,7 @@ msgstr "Größe"
msgid "No."
msgstr "Nr."
msgid "Shifts"
msgid "general.shifts"
msgstr "Schichten"
msgid "Length"

View File

@ -34,6 +34,9 @@ msgstr "DECT"
msgid "general.name"
msgstr "Name"
msgid "general.shifts"
msgstr "Shifts"
msgid "general.description"
msgstr "Description"