Update example for copy-contest-exchange, update state-regex, add translation

This commit is contained in:
DJ3CE
2024-04-01 13:24:06 +02:00
parent 4645fb3dcf
commit 13aed8d94b
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ $lang['contesting_title_callsign_suggestions'] = 'Rufzeichenvorschläge';
$lang['contesting_title_contest_logbook'] = 'Contest-Logbuch';
$lang['contesting_copy_exch_to_dok'] = 'Kopiere den erhaltenen Exchange in das DOK Feld der Datenbank!';
$lang['contesting_copy_exch_notice'] = 'Exchange is only copied if it is matching rules for the selected field!';
$lang['contesting_copy_exch_notice'] = 'Exchange wird nur kopiert, wenn der Wert Regeln für das Zielfeld erfüllt!';
$lang['contesting_copy_exch_to_none'] = 'Kopiere den erhaltenen Exchange in kein weiteres Feld der Datenbank!';
$lang['contesting_copy_exch_to_power'] = 'Kopiere den erhaltenen Exchange in das RX-Power Feld der Datenbank!';
$lang['contesting_copy_exch_to_state'] = 'Kopiere den erhaltenen Exchange in das US-State Feld der Datenbank!';

View File

@@ -182,7 +182,7 @@ class Logbook_model extends CI_Model {
$qso_age = intval($srx_string);
break;
case 'state':
if ( preg_match('/^[A-Z]{2}/', $srx_string) && $srx_string != "DX" ) {
if ( preg_match('/^[A-Za-z]*$/', $srx_string) && $srx_string != "DX" ) {
$qso_state = $srx_string;
}
break;
@@ -192,9 +192,9 @@ class Logbook_model extends CI_Model {
// Example for more sophisticated exchanges and their split into the db:
//case 'name/power':
// if (strlen($srx_string) == 0) break;
// $exch_pt = explode(" ",$srx_string);
// $exch_pt = explode("/",$srx_string);
// $qso_name = $exch_pt[0];
// if (count($exch_pt)>1) $qso_power = $exch_pt[1];
// if (count($exch_pt)>1) $qso_rx_power = intval($exch_pt[1]);
// break;
default:
}