load day config from env, fixed multiple texts

This commit is contained in:
Xu 2024-05-09 19:38:16 +02:00 committed by Igor Scheller
parent 40bd61fd32
commit 6f8dad070c
5 changed files with 12 additions and 18 deletions

View File

@ -409,9 +409,9 @@ return [
// Whether to show the current day of the event (-2, -1, 0, 1, 2…) in footer and on the dashboard. // Whether to show the current day of the event (-2, -1, 0, 1, 2…) in footer and on the dashboard.
// The event start date has to be set for it to appear. // The event start date has to be set for it to appear.
'enable_show_day_of_event' => false, 'enable_show_day_of_event' => (bool) env('ENABLE_SHOW_DAY_OF_EVENT', false),
// If true there will be a day 0 (-1, 0, 1…). If false there won't (-1, 1…) // If true there will be a day 0 (-1, 0, 1…). If false there won't (-1, 1…)
'event_has_day0' => true, 'event_has_day0' => (bool) env('EVENT_HAS_DAY0', true),
'metrics' => [ 'metrics' => [
// User work buckets in seconds // User work buckets in seconds

View File

@ -385,10 +385,10 @@ function admin_active()
: __('Goodie score') : __('Goodie score')
)] : []), )] : []),
[ [
'active' => __('Active?'), 'active' => __('Active'),
], ],
(config('enable_force_active') ? ['force_active' => __('Forced'),] : []), (config('enable_force_active') ? ['force_active' => __('Forced'),] : []),
($goodie_enabled ? ['tshirt' => ($goodie_tshirt ? __('T-shirt?') : __('Goodie?'))] : []), ($goodie_enabled ? ['tshirt' => ($goodie_tshirt ? __('T-shirt') : __('Goodie'))] : []),
[ [
'actions' => __('general.actions'), 'actions' => __('general.actions'),
] ]

View File

@ -306,7 +306,7 @@ function AngelType_view_members(AngelType $angeltype, $members, $admin_user_ange
$member->name = User_Nick_render($member) . User_Pronoun_render($member); $member->name = User_Nick_render($member) . User_Pronoun_render($member);
if (config('enable_dect')) { if (config('enable_dect')) {
$member['dect'] = $member['dect'] =
sprintf('<a href="tel:%s">%1$s</a>', htmlspecialchars($member->contact->dect)); sprintf('<a href="tel:%s">%1$s</a>', htmlspecialchars((string) $member->contact->dect));
} }
if (config('driving_license_enabled') && $angeltype->requires_driver_license) { if (config('driving_license_enabled') && $angeltype->requires_driver_license) {
$drive_confirmed = $member->license->drive_confirmed; $drive_confirmed = $member->license->drive_confirmed;

View File

@ -545,14 +545,14 @@ msgstr "Länge"
msgid "Length (in minutes)" msgid "Length (in minutes)"
msgstr "Länge (in Minuten)" msgstr "Länge (in Minuten)"
msgid "Active?" msgid "Active"
msgstr "Aktiv?" msgstr "Aktiv"
msgid "Forced" msgid "Forced"
msgstr "Erzwungen" msgstr "Erzwungen"
msgid "T-shirt?" msgid "T-shirt"
msgstr "T-Shirt?" msgstr "T-Shirt"
msgid "T-shirt statistic" msgid "T-shirt statistic"
msgstr "T-Shirt Statistik" msgstr "T-Shirt Statistik"
@ -1170,9 +1170,6 @@ msgstr "Gutschein"
msgid "Freeloads" msgid "Freeloads"
msgstr "Schwänzereien" msgstr "Schwänzereien"
msgid "T-shirt"
msgstr "T-Shirt"
msgid "Last login" msgid "Last login"
msgstr "Letzter Login" msgstr "Letzter Login"
@ -1366,9 +1363,6 @@ msgstr "Goodie entfernen"
msgid "Got goodie" msgid "Got goodie"
msgstr "Goodie bekommen" msgstr "Goodie bekommen"
msgid "Goodie?"
msgstr "Goodie?"
msgid "Angel has got a goodie." msgid "Angel has got a goodie."
msgstr "Engel hat ein Goodie bekommen." msgstr "Engel hat ein Goodie bekommen."
@ -1805,7 +1799,7 @@ msgid "settings.api.about"
msgstr "" msgstr ""
"Die API erlaubt es dir, über externe Programme, mit dem %s zu interagieren. " "Die API erlaubt es dir, über externe Programme, mit dem %s zu interagieren. "
"Sie ist noch nicht vollständig, wir arbeiten aber daran sie zu erweitern.\n" "Sie ist noch nicht vollständig, wir arbeiten aber daran sie zu erweitern.\n"
"Der Einstiegspunkt der API befindet sich unter `%s` und ist in der [OpenAPI Spezifikation](%s) beschrieben.\n" "Der Einstiegspunkt der API befindet sich unter `%s` und ist in der [OpenAPI Spezifikation](%s) beschrieben."
msgid "settings.api.about.warning" msgid "settings.api.about.warning"
msgstr "" msgstr ""

View File

@ -524,7 +524,7 @@ msgid "settings.api.about"
msgstr "" msgstr ""
"The API allows you to interact with the %s by using external programs. " "The API allows you to interact with the %s by using external programs. "
"It's not complete but we are working on extending it.\n" "It's not complete but we are working on extending it.\n"
"The endpoint of the API is located at `%s` and described in the [OpenAPI specification](%s).\n" "The endpoint of the API is located at `%s` and described in the [OpenAPI specification](%s)."
msgid "settings.api.about.warning" msgid "settings.api.about.warning"
msgstr "" msgstr ""
@ -820,7 +820,7 @@ msgid "general.created_at"
msgstr "Created at" msgstr "Created at"
msgid "shifts.random" msgid "shifts.random"
msgstr "Zufällige Schicht" msgstr "Random shift"
msgid "shifts.history" msgid "shifts.history"
msgstr "Shifts history" msgstr "Shifts history"