-
-
Notifications
You must be signed in to change notification settings - Fork 24
i18n Integration
Luis Majano edited this page Nov 30, 2015
·
3 revisions
If you are using i18n (Internationalization and Localization) in your ColdBox applications you can also localize your validation error messages from the ColdBox validators.
Info You do not need to install the
cbi18n
module. This module is already a dependency of thecbvalidation
module.
You will do this by our lovely conventions for you resource bundle keys:
Objects:
{ObjectName}.{Field}.{ConstraintType}}=Message
Forms with Shared Constraints Name
{SharedConstraintName}.{Field}.{ConstraintType}=Message
Forms with No Shared Constraints
GenericForm.{Field}.{ConstraintType}=Message
We also setup lots of global {Key} replacements for your messages and also several that the core constraint validators offer as well: