Ian Docherty wrote:
This is pretty much what I do via the FormValidator. I convert the 'missing' or the 'invalid' messages that it produces into the flags

[% missing.user_username %]
and
[% invalid.user_username.length %]
which then result in the error messages being produced.

I still need to give some thought to internationalisation, but that is another question. :)

Since C::P::I18N relies on stuff that expects a dictionary per thing, I've rather enjoyed

$c->localize("Created [_quant,...]", $created);

and similar for use in Reaction

--
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to