Kleine Korrekturen

This commit is contained in:
Jürgen Meyer
2026-02-24 18:49:29 +01:00
parent 84d07aecb1
commit 57c158a770
3 changed files with 12 additions and 9 deletions
@@ -5581,7 +5581,8 @@ function updateDatabase(): void
$db->setQuery( $query );
if (!$db->execute()) { die($db->stderr(true)); }
$query = "ALTER TABLE #__sportsmanager_veranstaltung ADD explizite_strafen tinyint(4) DEFAULT '0' AFTER elo_wertung";
$query = "ALTER TABLE #__sportsmanager_veranstaltung"
. "\n ADD IF NOT EXISTS explizite_strafen tinyint(4) DEFAULT '0' AFTER elo_wertung";
$db->setQuery($query);
if (!$db->execute()) { die($db->stderr(true)); }
@@ -8613,11 +8613,12 @@ class HTML_sportsmanager_admin
</td>
</tr>
<tr>
<td nowrap style="width: 20%; text-align: right; vertical-align: top">
<?php echo JText::_('COM_SPORTSMANAGER_EXPLICIT_PENALTIES'); ?>:
<td nowrap style="width: 20%; text-align: right">
<label for="explicit_penalties"><?php echo Text::_('COM_SPORTSMANAGER_EXPLICIT_PENALTIES'); ?>
:</label>
</td>
<td nowrap>
<select class="uk-select uk-form-width-medium" name="explizite_strafen" id="status" size="1">
<select class="uk-select uk-form-width-medium" name="explizite_strafen" id="explicit_penalties" size="1">
<?php
$explizite_strafen = array(Text::_('COM_SPORTSMANAGER_NO'), Text::_('COM_SPORTSMANAGER_YES'));
for ($i = 0; $i <= 1; $i++) {
@@ -9354,10 +9355,10 @@ class HTML_sportsmanager_admin
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
<table style="width: 100%" class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
<th nowrap><strong><?php echo JText::_('COM_SPORTSMANAGER_DATE'); ?></strong></th>
<th nowrap><strong><?php echo JText::_('COM_SPORTSMANAGER_MODERATOR'); ?></strong></th>
<th nowrap><strong><?php echo JText::_('COM_SPORTSMANAGER_PENALTY'); ?></strong></th>
<th nowrap><strong><?php echo JText::_('COM_SPORTSMANAGER_DESCRIPTION'); ?></strong></th>
<th nowrap style="text-align: center"><strong><?php echo JText::_('COM_SPORTSMANAGER_DATE'); ?></strong></th>
<th nowrap style="text-align: left"><strong><?php echo JText::_('COM_SPORTSMANAGER_MODERATOR'); ?></strong></th>
<th nowrap style="text-align: center"><strong><?php echo JText::_('COM_SPORTSMANAGER_PENALTY'); ?></strong></th>
<th nowrap style="text-align: left"><strong><?php echo JText::_('COM_SPORTSMANAGER_DESCRIPTION'); ?></strong></th>
</tr>
<?php
@@ -9376,6 +9377,7 @@ class HTML_sportsmanager_admin
<td nowrap style="text-align: center">
<input type="submit" name="add" value="<?php echo JText::_('COM_SPORTSMANAGER_ADD'); ?>" class="button" />
</td>
<td></td>
<td nowrap style="text-align: center">
<select class="uk-select uk-form-width-medium" name="strafe" style="width: 70px;" id="penality_points" size="1">
<?php for ($i = 4.0; $i >= -4.0; $i -= 0.5) {
@@ -902,7 +902,7 @@ COM_SPORTSMANAGER_LABEL_GAME_NUMBER="Spiel Nr"
COM_SPORTSMANAGER_LABEL_GAME_TITLE="Spieltag Titel"
COM_SPORTSMANAGER_EXPLICIT_PENALTIES="Explizite Strafen"
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_SUBJECT="%s: Strafpunkte erhalten"
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_BODY="%s wurden %f Strafpunkte zugeteilt mit der Begr&uuml;ndung: %s"
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_BODY="%s wurden %f Strafpunkte zugeteilt mit der Begründung: %s"
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_SUBJECT="%s vs %s: Spieltermin verlegen"
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nAlternative Termine:\n\n"
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_REQUESTED_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nBitte alternative Termine vorschlagen unter %s"