fixed legacy gettext typos

This commit is contained in:
HB9HIL
2025-11-12 08:17:31 +01:00
parent 7f38a0c7e8
commit 771d98e783
2 changed files with 3 additions and 3 deletions

View File

@@ -27,10 +27,10 @@ foreach ($result as $mode => $value) {
}
echo '</tbody></table>';
echo strtoupper($callsign) . ' ' . sprintf(
ngettext('has %d band slot', 'has %d band slots', intval($count)),
_ngettext('has %d band slot', 'has %d band slots', intval($count)),
intval($count)
) . ' ' . sprintf(
ngettext('and has %d QSO in the log', 'and has %d QSOs in the log', intval($qsocount)),
_ngettext('and has %d QSO in the log', 'and has %d QSOs in the log', intval($qsocount)),
intval($qsocount)
) . '.<br /><br />';
?>

View File

@@ -72,7 +72,7 @@ if ($dxcc_list->result() > 0) {
<label for="stationDXCCInput"><?= __("Station DXCC"); ?></label>
<?php if ($dxcc_list->num_rows() > 0) { ?>
<select class="form-control" id="dxcc_id" name="dxcc" aria-describedby="stationCallsignInputHelp" required>
<option value="" <?php if (!isset($dxcc) || $dxcc == "") { echo "selected"; } ?>><?= _("Please select one"); ?></option>
<option value="" <?php if (!isset($dxcc) || $dxcc == "") { echo "selected"; } ?>><?= __("Please select one"); ?></option>
<?php foreach ($dxcc_list->result() as $dxcc_item) { ?>
<option value="<?php echo $dxcc_item->adif; ?>" <?php if(isset($dxcc) && $dxcc_item->adif == $dxcc) { echo "selected='selected'"; } ?>><?php echo ucwords(strtolower($dxcc_item->name)) . ' - ' . $dxcc_item->prefix; if ($dxcc_item->end != NULL) echo ' ('.__("Deleted DXCC").')';?>
</option>