Added RUS messages for validation errors.

This commit is contained in:
Boris Gulay
2016-05-27 23:42:46 +03:00
parent b10f3625c2
commit 6cfbeab7f0
2 changed files with 27 additions and 6 deletions

View File

@@ -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;
}