Add a localized error message for missing usernames. Fixes ticket #1266.

This commit is contained in:
Bharat Mediratta
2010-08-01 01:33:59 -07:00
parent 68f41c7061
commit a5f701951e

View File

@@ -282,6 +282,7 @@ class Admin_Users_Controller extends Admin_Controller {
"admin/users/edit_user/$user->id", "", "post", array("id" => "g-edit-user-form"));
$group = $form->group("edit_user")->label(t("Edit user"));
$group->input("name")->label(t("Username"))->id("g-username")->value($user->name)
->error_messages("required", t("A name is required"))
->error_messages("conflict", t("There is already a user with that username"))
->error_messages("length", t("This name is too long"));
$group->input("full_name")->label(t("Full name"))->id("g-fullname")->value($user->full_name)