diff --git a/adminstuds.php b/adminstuds.php index e613d51723a4bdf3fc98dee3c199875c9612a811..0ce296103e3fd81628130cc3e181975f816e85d8 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -374,6 +374,5 @@ $smarty->assign('editingVoteId', $editingVoteId); $smarty->assign('message', $message); $smarty->assign('admin', true); $smarty->assign('parameter_name_regex', NAME_REGEX); -$smarty->assign('parameter_name_error', _('Name is incorrect.')); $smarty->display('studs.tpl'); \ No newline at end of file diff --git a/studs.php b/studs.php index 1bfbb525bd99c0a569bd980c2626353376a407f1..461d86d92c310233014c0e5a2792179865d9aac3 100644 --- a/studs.php +++ b/studs.php @@ -203,6 +203,5 @@ $smarty->assign('editingVoteId', $editingVoteId); $smarty->assign('message', $message); $smarty->assign('admin', false); $smarty->assign('parameter_name_regex', NAME_REGEX); -$smarty->assign('parameter_name_error', _('Name is incorrect.')); $smarty->display('studs.tpl'); diff --git a/tpl/studs.tpl b/tpl/studs.tpl index 44a7ce842e3e3ef3b36c72ca8de7e1094f6156e6..b83f36ade6924782a106af06210f3feed65fd067 100644 --- a/tpl/studs.tpl +++ b/tpl/studs.tpl @@ -45,7 +45,7 @@ <div class="hidden"> <p id="parameter_name_regex">{$parameter_name_regex}</p> - <p id="parameter_name_error">{$parameter_name_error}</p> + <p id="parameter_name_error">{__('Error','Name is incorrect.')|var_dump}</p> </div>