Grails i18n From Database but Default Back To File

后端 未结 5 1294
抹茶落季
抹茶落季 2020-12-08 03:49

Following this blog article I enabled my application to load i18n messages from the database. It works great. However, I don\'t want to manage all messages in the database

5条回答
  •  醉梦人生
    2020-12-08 04:11

    Although it's not Grails specific, we at Griffon created CompositeResourceBundle and DelegatingResourceBundle as parts of our own i18n plugin (source found at http://svn.codehaus.org/griffon/plugins/griffon-i18n/trunk/src/main/griffon/plugins/i18n/).

    ExtendedResourceBundleMessageSource shows how these classes can be used.

提交回复
热议问题