From d6091bc13b500bd3a4e8751ccf0d96f75cee1f91 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 30 Sep 2024 04:14:23 +0000 Subject: [PATCH] One string for "wrong station"-message --- application/models/Logbook_model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 5be85ffed..b0552fe3b 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3539,8 +3539,9 @@ class Logbook_model extends CI_Model { $record['station_callsign'] = $station_profile_call; } if ((!$skipStationCheck) && ($station_id != 0) && (strtoupper($record['station_callsign']) != strtoupper($station_profile_call))) { // Check if station_call from import matches profile ONLY when submitting via GUI. - $returner['error'] = __("Wrong station callsign")." \"" . htmlentities($record['station_callsign'] ?? '') . "\" ".__("while importing QSO with "). $record['call'] ?? '' . " ".__("for")." " . $station_profile_call ?? '' . " : ".__("SKIPPED") . - "
".__("Check ")." Wavelog Wiki"." ".__("for hints about errors in ADIF files."); + $returner['error'] =sprintf(__("Wrong station callsign %s while importing QSO with %s for %s: SKIPPED") . + "
".__("Check %s for hints about errors in ADIF files."), + ''.htmlentities($record['station_callsign'] ?? '').'',($record['call'] ?? ''),''.($station_profile_call ?? '').''," Wavelog Wiki"); return ($returner); }