-
-
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
cbi18nmodule. This module is already a dependency of thecbvalidationmodule.
You will do this by our lovely conventions for you resource bundle keys:
Objects:
{ObjectName}.{Field}.{ConstraintType}}=MessageForms with Shared Constraints Name
{SharedConstraintName}.{Field}.{ConstraintType}=MessageForms with No Shared Constraints
GenericForm.{Field}.{ConstraintType}=MessageWe also setup lots of global {Key} replacements for your messages and also several that the core constraint validators offer as well: