allow all valid timezones in server-side validation, to allow existing values and in future select arbitrary timezones via an ajax callback

This commit is contained in:
Ralf Becker 2015-10-12 14:18:54 +00:00
parent 414a3e675f
commit 4ec656d437
3 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,13 @@ class etemplate_widget_menupopup extends etemplate_widget
}
break;
case 'select-timezone':
if (!calendar_timezones::tz2id($val))
{
self::set_validation_error($form_name, lang("'%1' is NOT a valid timezone!", $val));
}
break;
default:
if(!in_array($val, $allowed))
{

View File

@ -19,6 +19,7 @@
'%1' is not a valid date !!! etemplate de '%1' ist ein ungültiges Datum !!!
'%1' is not a valid floatingpoint number !!! etemplate de '%1' ist keine gültige Gleitkommazahl !!!
'%1' is not a valid integer !!! etemplate de '%1' ist keine gültige Ganzzahl !!!
'%1' is not a valid timezone! etemplate de '%1' ist keine gültige Zeitzone!
'%1' is not allowed ('%2')! etemplate de '%1' ist NICHT erlaubt ('%2')!
'%1' is not allowed%2)! etemplate de '%1' ist NICHT erlaubt '%2'!
1 minute etemplate de 1 Minute

View File

@ -20,6 +20,7 @@
'%1' is not a valid date !!! etemplate en '%1' is not a valid date!
'%1' is not a valid floatingpoint number !!! etemplate en '%1' is not a valid floating point number!
'%1' is not a valid integer !!! etemplate en '%1' is not a valid integer!
'%1' is not a valid timezone! etemplate en '%1' is not a valid timezone!
'%1' is not allowed ('%2')! etemplate en '%1' is NOT allowed ('%2')!
'%1' is not allowed%2)! etemplate en '%1' is NOT allowed%2)!
1 minute etemplate en 1 Minute