ValidateThis! 0.75 - Now Supports Internationalization (i18n)
Posted At : June 1, 2009 9:49 PM | Posted By : Bob Silverberg
Related Categories: OO Design, ColdFusion, i18n, ValidateThis
A developer named Mischa Sameli asked a question about supporting internationalization (i18n) in ValidateThis!, my validation framework for ColdFusion objects, on the ValidateThis Google Group a few weeks ago. His questions got me thinking about how I might do that, and those thoughts turned into design ideas, which turned into code. So I'm happy to announce that the latest version of VT, just released to RIAForge, has full support for i18n. I have created a new i18n demo which shows off this new feature in all of its glory. If you visit that demo page you'll see that you can switch languages between English and French.
So, what does i18n support in VT mean? In a nutshell, it means that all validation failure messages, both on the client side and on the server side, can now appear in multiple languages within a single application. A developer still only has to specify the metadata for each validation rule once (which is the primary objective of the framework), with the translations being performed by a translation layer.