在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):halfbaked/grails-localizations开源软件地址(OpenSource Url):https://github.com/halfbaked/grails-localizations开源编程语言(OpenSource Language):Groovy 86.4%开源软件介绍(OpenSource Introduction):grails-localizationThe localizations plugin alters Grails to use the database as its means of internationalization rather than message bundles (property files) in the i18n directory of your application. All property files in the i18n directory of your application (but not subdirectories of i18n) are automatically loaded in to the database the first time a message is requested after the plugin is installed. ##Installation Add dependency to your build.gradle for > Grails 3.2.x:
Add dependency to your BuildConfig.groovy for Grails 2.x:
Source Code for Grails 2.x: https://github.com/vsachinv/grails-localizations/tree/Plugin_2.X ####Enhancement for > Grails 3.2.x You can enable/disable the localization value from DB using following configurations in
ImportingThere is also an import facility (at a URL similar to http://myServer/myApp/localization/imports) to load subsequently created property files - often the result of later installation of plugins. A 'message' method is added to all domain classes and service classes as a convenience. An 'errorMessage' method is added to all domain classes that can set an error message on either the domain as a whole or on a particular property of the domain. CRUDA localizations controller and CRUD screens are included with the plugin. The screens assume you are using a layout called main. Your database must be configured to allow the use of Unicode data for this plugin to work. CachingLocalizations are cached for speed. You can reset the cache by going to http://myServer/myApp/localization/cache |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论