Added RUS messages for validation errors.
This commit is contained in:
@@ -189,26 +189,26 @@ class ident_switch extends rcube_plugin
|
||||
|
||||
$fLabel = self::ntrim(get_input_value('_ident_switch_form_label', RCUBE_INPUT_POST));
|
||||
if (strlen($fLabel) > 32)
|
||||
$rc->output->show_message('err.label.long', 'error');
|
||||
$rc->output->show_message('ident_switch.err.label.long', 'error');
|
||||
else
|
||||
{
|
||||
$fHost = self::ntrim(get_input_value('_ident_switch_form_host', RCUBE_INPUT_POST));
|
||||
if (strlen($fHost) > 64)
|
||||
$rc->output->show_message('err.host.long', 'error');
|
||||
$rc->output->show_message('ident_switch.err.host.long', 'error');
|
||||
else
|
||||
{
|
||||
$fPort = self::ntrim(get_input_value('_ident_switch_form_port', RCUBE_INPUT_POST));
|
||||
if ($fPort && !ctype_digit($fPort))
|
||||
$rc->output->show_message('err.port.num', 'error');
|
||||
$rc->output->show_message('ident_switch.err.port.num', 'error');
|
||||
else
|
||||
{
|
||||
if ($fPort && ($fPort <= 0 || $fPort > 65535))
|
||||
$rc->output->show_message('err.port.range', 'error');
|
||||
$rc->output->show_message('ident_switch.err.port.range', 'error');
|
||||
else
|
||||
{
|
||||
$fUser = self::ntrim(get_input_value('_ident_switch_form_username', RCUBE_INPUT_POST));
|
||||
if (strlen($fUser) > 64)
|
||||
$rc->output->show_message('err.user.long', 'error');
|
||||
$rc->output->show_message('ident_switch.err.user.long', 'error');
|
||||
else
|
||||
{
|
||||
if (!$fUser)
|
||||
@@ -217,7 +217,7 @@ class ident_switch extends rcube_plugin
|
||||
{
|
||||
$fDelim = self::ntrim(get_input_value('_ident_switch_form_delimiter', RCUBE_INPUT_POST));
|
||||
if (strlen($fDelim) > 1)
|
||||
$rc->output->show_message('err.delim.long', 'error');
|
||||
$rc->output->show_message('ident_switch.err.delim.long', 'error');
|
||||
else
|
||||
$noErrors = true;
|
||||
}
|
||||
|
||||
@@ -30,3 +30,24 @@ $labels['form.password'] = 'Пароль';
|
||||
|
||||
// Folder hierarchy delimiter
|
||||
$labels['form.delimiter'] = 'Разделитель в иерархии папок';
|
||||
|
||||
// \'Username\' field in IMAP section cannot be empty.
|
||||
$labels['err.user.empty'] = '\'Имя пользователя\' в разделе IMAP не может быть пустым.';
|
||||
|
||||
// Value in \'Label\' field of IMAP section is too long (32 chars max).
|
||||
$labels['err.label.long'] = '\'Название\' в разделе IMAP должно быть не длинее 32 символов.';
|
||||
|
||||
// Value in \'Server host name\' field of IMAP section is too long (64 chars max).
|
||||
$labels['err.host.long'] = '\'Адрес сервера\' в разделе IMAP должен быть не длинее 64 символов.';
|
||||
|
||||
// Value in \'Username\' field of IMAP section is too long (64 chars max).
|
||||
$labels['err.user.long'] = '\'Имя пользователя\' в секции IMAP должно быть не длинее 64 символов.';
|
||||
|
||||
// Value in \'Folder hierarchy delimiter\' field of IMAP section is too long (1 char max).
|
||||
$labels['err.delim.long'] = '\'Разделитель в иерархии папок\' в секции IMAP должен быть не длинее 1 символа.';
|
||||
|
||||
// Value in \'Port\' field of IMAP section must be a number.
|
||||
$labels['err.port.num'] = '\'Порт\' в секции IMAP должен быть числом.';
|
||||
|
||||
// Value in \'Port\' field of IMAP section must be between 1 and 65535.
|
||||
$labels['err.port.rtange'] = '\'Порт\' в секции IMAP должен быть в диапазоне от 1 до 65535.';
|
||||
|
||||
Reference in New Issue
Block a user