i18n

用途

i18n 为 Grails 提供了 Internationalization 的支持.

示例

messages.propertiesgrails-app/i18n 目录中:

default.doesnt.match.message=Property [{0}] of class [{1}] with value [{2}] does not match the required pattern [{3}]
default.invalid.url.message=Property [{0}] of class [{1}] with value [{2}] is not a valid URL
default.invalid.creditCard.message=Property [{0}] of class [{1}] with value [{2}] is not a valid credit card number

描述

在用户指南中,查看 Internationalization 章节,了解 Grails i18n的具体使用.

Spring Beans的配置: