teamcfadvance / ValidateThis

An object oriented validation framework for ColdFusion objects
http://www.validatethis.org
44 stars 32 forks source link

Allow for translations of field names in error messages #83

Open sebduggan opened 12 years ago

sebduggan commented 12 years ago

I've been working with the i18n features of ValidateThis, and have run into a roadblock.

I have locale-specific error messages, but the field name is still fixed to the one language defined in the rules file. So, for instance, I have a Chinese language file; the error comes out as:

Price需要 (price is required)

I'm not sure what the best way to handle translations for the field description; I'll update if I come up with a good idea...

guillaume-boivin commented 9 years ago

:+1: