mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Update example for copy-contest-exchange, update state-regex, add translation
This commit is contained in:
@@ -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!';
|
||||
|
||||
@@ -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:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user