add language for text error

This commit is contained in:
abarrau 2023-12-04 21:56:04 +01:00
parent ee33736e83
commit b3e9832291
17 changed files with 52 additions and 2 deletions

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Нулирай';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = '此笔记内容被导出到QSL服务如 eqsl.c
$lang['qso_eqsl_qslmsg_helptext'] = "获取该站的 eQSL 默认消息。";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = '重置';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Vymazat';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Wis QSO';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Tämä viestisi siirtyy myös QSL-palveluihin, ku
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Tyhjennä';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Récupérer le message par défaut pour ce lieu de station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "Heure de fin inférieure à celle de début";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Réinitialiser';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Dieser Notizeninhalt wird an QSL Services wie eqs
$lang['qso_eqsl_qslmsg_helptext'] = "Setze die eQSL Nachricht auf den Standardtext zurück.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Zurücksetzen';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Αυτό το περιεχόμενο σημείω
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Επαναφορά';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Il contenuto di questa nota è esportato a serviz
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Resetuj';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'СОдержимое этой заметки эк
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Сброс';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'This note content is exported to QSL services lik
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Resetear';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Detta innehåll exporteras till QSL-services som
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';

View File

@ -28,6 +28,9 @@ $lang['qsl_notes_helptext'] = 'Bu not içeriği eqsl.cc gibi QSL servislere akta
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// error text //
$lang['qso_error_timeoff_less_timeon'] = "TimeOff is less than TimeOn";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Baştan başla';

View File

@ -1,5 +1,8 @@
<div class="container qso_panel">
<script language="javascript">var qso_manual = "<?php echo $_GET['manual']; ?>";</script>
<script language="javascript">
var qso_manual = "<?php echo $_GET['manual']; ?>";
var text_error_timeoff_less_timeon = "<?php echo lang('qso_error_timeoff_less_timeon'); ?>";
</script>
<div class="row qsopane">
@ -549,7 +552,7 @@
<button type="reset" class="btn btn-secondary" onclick="reset_fields()"><?php echo lang('qso_btn_reset_qso'); ?></button>
<button type="submit" class="btn btn-primary"><i class="fas fa-save"></i> <?php echo lang('qso_btn_save_qso'); ?></button>
<div class="alert alert-danger warningOnSubmit" style="display:none;"><span><i class="fas fa-times-circle"></i></span> <span class="warningOnSubmit_txt">TimeOff lest than TimeOn</span></div>
<div class="alert alert-danger warningOnSubmit" style="display:none;"><span><i class="fas fa-times-circle"></i></span> <span class="warningOnSubmit_txt">Error</span></div>
</div>
</form>
</div>

View File

@ -1068,9 +1068,11 @@ function testTimeOffConsistency() {
var _end_time = $('#qso_input input[name="end_time"]').val();
$('#qso_input input[name="end_time"]').removeClass('inputError');
$('#qso_input .warningOnSubmit').hide();
$('#qso_input .warningOnSubmit_txt').empty();
if ( !( (parseInt(_start_time.replaceAll(':','')) <= parseInt(_end_time.replaceAll(':','')))
|| ((_start_time.substring(0,2)=="23")&&(_end_time.substring(0,2)=="00")) ) ) {
$('#qso_input input[name="end_time"]').addClass('inputError');
$('#qso_input .warningOnSubmit_txt').html(text_error_timeoff_less_timeon);
$('#qso_input .warningOnSubmit').show();
$('#qso_input input[name="end_time"]').off('change').on('change',function(){ testTimeOffConsistency(); });
return false;