Alberto Ruffo Tue Aug 03 19:00:52 -0400 2010

Subject: Add options to Errors::full_messages

Hello,
i propose to allow developers not to put attributes inside model error messages(for internationalization).

    
public function full_messages()
    {
        $full_messages = array();

        if ($this->errors)
        {
            foreach ($this->errors as $attribute => $messages)
            {
                foreach ($messages as $msg)
                {
                    if (is_null($msg))
                        continue;
                    $full_messages[] = /*Utils::human_attribute($attribute) . ' ' . */$msg;
                }
            }
        }
        return $full_messages;
    }

Regards

Alberto


Kien La Thu Aug 05 21:09:12 -0400 2010

I will definitely be working on some internationalization support in an upcoming version and will keep this in mind. Thanks.

(1-1/1)