unify T-shirt wording

This commit is contained in:
Xu 2023-11-16 16:11:45 +01:00 committed by Igor Scheller
parent 66738298a9
commit 7fda1fc14b
7 changed files with 31 additions and 31 deletions

View File

@ -133,7 +133,7 @@ function admin_active()
$user_source->state->got_shirt = true; $user_source->state->got_shirt = true;
$user_source->state->save(); $user_source->state->save();
engelsystem_log('User ' . User_Nick_render($user_source, true) . ' has tshirt now.'); engelsystem_log('User ' . User_Nick_render($user_source, true) . ' has tshirt now.');
$msg = success(($goodie_tshirt ? __('Angel has got a t-shirt.') : __('Angel has got a goodie.')), true); $msg = success(($goodie_tshirt ? __('Angel has got a T-shirt.') : __('Angel has got a goodie.')), true);
} else { } else {
$msg = error('Angel not found.', true); $msg = error('Angel not found.', true);
} }
@ -144,7 +144,7 @@ function admin_active()
$user_source->state->got_shirt = false; $user_source->state->got_shirt = false;
$user_source->state->save(); $user_source->state->save();
engelsystem_log('User ' . User_Nick_render($user_source, true) . ' has NO tshirt.'); engelsystem_log('User ' . User_Nick_render($user_source, true) . ' has NO tshirt.');
$msg = success(($goodie_tshirt ? __('Angel has got no t-shirt.') : __('Angel has got no goodie.')), true); $msg = success(($goodie_tshirt ? __('Angel has got no T-shirt.') : __('Angel has got no goodie.')), true);
} else { } else {
$msg = error(__('Angel not found.'), true); $msg = error(__('Angel not found.'), true);
} }
@ -268,7 +268,7 @@ function admin_active()
if ($goodie_enabled) { if ($goodie_enabled) {
$actions[] = form( $actions[] = form(
[form_submit('submit', ($goodie_tshirt ? __('got t-shirt') : __('got goodie')), 'btn-sm', false, 'secondary')], [form_submit('submit', ($goodie_tshirt ? __('got T-shirt') : __('got goodie')), 'btn-sm', false, 'secondary')],
url('/admin-active', $parametersShirt), url('/admin-active', $parametersShirt),
false, false,
true true
@ -286,7 +286,7 @@ function admin_active()
if ($goodie_enabled) { if ($goodie_enabled) {
$actions[] = form( $actions[] = form(
[form_submit('submit', ($goodie_tshirt ? __('remove t-shirt') : __('remove goodie')), 'btn-sm', false, 'secondary')], [form_submit('submit', ($goodie_tshirt ? __('remove T-shirt') : __('remove goodie')), 'btn-sm', false, 'secondary')],
url('/admin-active', $parameters), url('/admin-active', $parameters),
false, false,
true true
@ -355,10 +355,10 @@ function admin_active()
), ),
$matched_users $matched_users
), ),
$goodie_enabled ? '<h2>' . ($goodie_tshirt ? __('Shirt statistic') : __('Goodie statistic')) . '</h2>' : '', $goodie_enabled ? '<h2>' . ($goodie_tshirt ? __('T-shirt statistic') : __('Goodie statistic')) . '</h2>' : '',
$goodie_enabled ? table(array_merge( $goodie_enabled ? table(array_merge(
($goodie_tshirt ? ['size' => __('Size')] : []), ($goodie_tshirt ? ['size' => __('Size')] : []),
['given' => $goodie_tshirt ? __('Given shirts') : __('Given goodies') ] ['given' => $goodie_tshirt ? __('Given T-shirts') : __('Given goodies') ]
), $goodie_statistics) : '', ), $goodie_statistics) : '',
]); ]);
} }

View File

@ -111,7 +111,7 @@ function admin_user()
if ($goodie_enabled) { if ($goodie_enabled) {
// T-Shirt bekommen? // T-Shirt bekommen?
if ($goodie_tshirt) { if ($goodie_tshirt) {
$html .= ' <tr><td>' . __('T-Shirt') . '</td><td>' . "\n"; $html .= ' <tr><td>' . __('T-shirt') . '</td><td>' . "\n";
} else { } else {
$html .= ' <tr><td>' . __('Goodie') . '</td><td>' . "\n"; $html .= ' <tr><td>' . __('Goodie') . '</td><td>' . "\n";
} }

View File

@ -411,7 +411,7 @@ function User_view_myshifts(
]; ];
if ($goodie_enabled && ($its_me || $tshirt_admin)) { if ($goodie_enabled && ($its_me || $tshirt_admin)) {
$myshifts_table[] = [ $myshifts_table[] = [
'date' => '<b>' . ($goodie_tshirt ? __('Your t-shirt score') : __('Your goodie score')) . '&trade;:</b>', 'date' => '<b>' . ($goodie_tshirt ? __('Your T-shirt score') : __('Your goodie score')) . '&trade;:</b>',
'duration' => '<b>' . $tshirt_score . '</b>', 'duration' => '<b>' . $tshirt_score . '</b>',
'location' => '', 'location' => '',
'shift_info' => '', 'shift_info' => '',
@ -734,7 +734,7 @@ function User_view_state_admin($freeloader, $user_source)
$state[] = '<span class="text-success">' . __('user.active') . '</span>'; $state[] = '<span class="text-success">' . __('user.active') . '</span>';
} }
if ($user_source->state->got_shirt && $goodie_enabled) { if ($user_source->state->got_shirt && $goodie_enabled) {
$state[] = '<span class="text-success">' . ($goodie_tshirt ? __('T-Shirt') : __('Goodie')) . '</span>'; $state[] = '<span class="text-success">' . ($goodie_tshirt ? __('T-shirt') : __('Goodie')) . '</span>';
} }
} else { } else {
$arrivalDate = $user_source->personalData->planned_arrival_date; $arrivalDate = $user_source->personalData->planned_arrival_date;

View File

@ -544,10 +544,10 @@ msgstr "Engel nicht gefunden."
msgid "Angel has been marked as not active." msgid "Angel has been marked as not active."
msgstr "Engel wurde als nicht aktiv markiert." msgstr "Engel wurde als nicht aktiv markiert."
msgid "Angel has got a t-shirt." msgid "Angel has got a T-shirt."
msgstr "Engel hat ein T-Shirt bekommen." msgstr "Engel hat ein T-Shirt bekommen."
msgid "Angel has got no t-shirt." msgid "Angel has got no T-shirt."
msgstr "Engel hat kein T-Shirt bekommen." msgstr "Engel hat kein T-Shirt bekommen."
msgid "set active" msgid "set active"
@ -556,10 +556,10 @@ msgstr "setze aktiv"
msgid "remove active" msgid "remove active"
msgstr "entferne aktiv" msgstr "entferne aktiv"
msgid "got t-shirt" msgid "got T-shirt"
msgstr "T-Shirt bekommen" msgstr "T-Shirt bekommen"
msgid "remove t-shirt" msgid "remove T-shirt"
msgstr "entferne T-Shirt" msgstr "entferne T-Shirt"
msgid "Sum" msgid "Sum"
@ -595,10 +595,10 @@ msgstr "Erzwungen"
msgid "T-shirt?" msgid "T-shirt?"
msgstr "T-Shirt?" msgstr "T-Shirt?"
msgid "Shirt statistic" msgid "T-shirt statistic"
msgstr "T-Shirt Statistik" msgstr "T-Shirt Statistik"
msgid "Given shirts" msgid "Given T-shirts"
msgstr "Ausgegebene T-Shirts" msgstr "Ausgegebene T-Shirts"
msgid "Arrive angels" msgid "Arrive angels"
@ -1228,7 +1228,7 @@ msgstr "Gutschein"
msgid "Freeloads" msgid "Freeloads"
msgstr "Schwänzereien" msgstr "Schwänzereien"
msgid "T-Shirt" msgid "T-shirt"
msgstr "T-Shirt" msgstr "T-Shirt"
msgid "Last login" msgid "Last login"
@ -1252,7 +1252,7 @@ msgstr "austragen"
msgid "Sum:" msgid "Sum:"
msgstr "Summe:" msgstr "Summe:"
msgid "Your t-shirt score" msgid "Your T-shirt score"
msgstr "Dein T-Shirt Score" msgstr "Dein T-Shirt Score"
msgid "Work log entry" msgid "Work log entry"
@ -1676,7 +1676,7 @@ msgstr "Erlaube Himmel-Engeln mich per E-Mail zu kontaktieren."
msgid "settings.profile.email_goody" msgid "settings.profile.email_goody"
msgstr "Um gegebenenfalls Voucher für das nächste gleichartige Event zu erhalten stimme ich zu, " msgstr "Um gegebenenfalls Voucher für das nächste gleichartige Event zu erhalten stimme ich zu, "
"dass mein Nick, E-Mail-Adresse, geleistete Arbeit und Shirt-Größe solange gespeichert werden." "dass mein Nick, E-Mail-Adresse, geleistete Arbeit und T-Shirt-Größe solange gespeichert werden."
msgid "settings.profile.privacy" msgid "settings.profile.privacy"
msgstr "Dies kann jederzeit durch eine E-Mail an <a href=\"mailto:%s\">%1$s</a> widerrufen werden." msgstr "Dies kann jederzeit durch eine E-Mail an <a href=\"mailto:%s\">%1$s</a> widerrufen werden."
@ -1875,16 +1875,16 @@ msgid "question.delete.title"
msgstr "Frage \"%s\" löschen" msgstr "Frage \"%s\" löschen"
msgid "user.edit.shirt" msgid "user.edit.shirt"
msgstr "Shirt bearbeiten" msgstr "T-Shirt bearbeiten"
msgid "user.edit.goodie" msgid "user.edit.goodie"
msgstr "Goodie bearbeiten" msgstr "Goodie bearbeiten"
msgid "form.shirt" msgid "form.shirt"
msgstr "Shirt" msgstr "T-Shirt"
msgid "user.shirt_size" msgid "user.shirt_size"
msgstr "Shirt größe" msgstr "T-Shirt größe"
msgid "user.active" msgid "user.active"
msgstr "Aktiv" msgstr "Aktiv"
@ -1896,7 +1896,7 @@ msgid "user.arrived"
msgstr "Angekommen" msgstr "Angekommen"
msgid "user.got_shirt" msgid "user.got_shirt"
msgstr "Shirt bekommen" msgstr "T-Shirt bekommen"
msgid "user.got_goodie" msgid "user.got_goodie"
msgstr "Goodie bekommen" msgstr "Goodie bekommen"

View File

@ -63,10 +63,10 @@ msgid "validation.password_confirmation.required"
msgstr "You have to confirm your password." msgstr "You have to confirm your password."
msgid "validation.tshirt_size.required" msgid "validation.tshirt_size.required"
msgstr "Please choose your t-shirt size." msgstr "Please choose your T-shirt size."
msgid "validation.tshirt_size.shirtSize" msgid "validation.tshirt_size.shirtSize"
msgstr "Please choose a valid t-shirt size." msgstr "Please choose a valid T-shirt size."
msgid "validation.planned_arrival_date.required" msgid "validation.planned_arrival_date.required"
msgstr "Please enter your planned date of arrival." msgstr "Please enter your planned date of arrival."

View File

@ -291,13 +291,13 @@ msgstr "Allow heaven angels to contact me by e-mail."
msgid "settings.profile.email_goody" msgid "settings.profile.email_goody"
msgstr "To possibly receive vouchers for the next similar event, I consent " msgstr "To possibly receive vouchers for the next similar event, I consent "
"that my nick, e-mail address, worked hours and shirt size will be stored until then." "that my nick, e-mail address, worked hours and T-shirt size will be stored until then."
msgid "settings.profile.privacy" msgid "settings.profile.privacy"
msgstr "To withdraw your approval, send an e-mail to <a href=\"mailto:%s\">%1$s</a>." msgstr "To withdraw your approval, send an e-mail to <a href=\"mailto:%s\">%1$s</a>."
msgid "settings.profile.shirt_size" msgid "settings.profile.shirt_size"
msgstr "Shirt size" msgstr "T-shirt size"
msgid "settings.profile.angeltypes.info" msgid "settings.profile.angeltypes.info"
msgstr "You can manage your Angeltypes <a href=\"%s\">on the Angeltypes page</a>." msgstr "You can manage your Angeltypes <a href=\"%s\">on the Angeltypes page</a>."
@ -490,16 +490,16 @@ msgid "question.delete.title"
msgstr "Delete question \"%s\"" msgstr "Delete question \"%s\""
msgid "user.edit.shirt" msgid "user.edit.shirt"
msgstr "Edit shirt" msgstr "Edit T-shirt"
msgid "user.edit.goodie" msgid "user.edit.goodie"
msgstr "Edit goodie" msgstr "Edit goodie"
msgid "form.shirt" msgid "form.shirt"
msgstr "Shirt" msgstr "T-shirt"
msgid "user.shirt_size" msgid "user.shirt_size"
msgstr "Shirt size" msgstr "T-shirt size"
msgid "user.active" msgid "user.active"
msgstr "Active" msgstr "Active"
@ -511,7 +511,7 @@ msgid "user.arrived"
msgstr "Arrived" msgstr "Arrived"
msgid "user.got_shirt" msgid "user.got_shirt"
msgstr "Got shirt" msgstr "Got T-shirt"
msgid "user.got_goodie" msgid "user.got_goodie"
msgstr "Got goodie" msgstr "Got goodie"
@ -641,7 +641,7 @@ msgid "registration.register"
msgstr "Register" msgstr "Register"
msgid "tshirt.required.hint" msgid "tshirt.required.hint"
msgstr "Please specify a tshirt size in your settings!" msgstr "Please specify a T-shirt size in your settings!"
msgid "dect.required.hint" msgid "dect.required.hint"
msgstr "" msgstr ""