Internationalization
Message and surface in intra-mart Accel Kaiden! can be obtained by using jp.co.slcs.kaiden2.base.foundation.helper.PropertyHelper class./** PropertyHelper. */ @Resource public PropertyHelper propertyHelper; public void xxx() { // obtain message by specifying locale propertyHelper.getMessage(Locale.JAPANESE, "message key", "replacement character string"); // obtain message by specifying locale propertyHelper.getMessage("message key", "replacement character string"); // obtain surface by specifying locale propertyHelper.getSurface(Locale.JAPANESE, "surface key", "replacement character string"); // obtain surface by specifying locale propertyHelper.getSurface("surface key", "replacement character string"); }Notes
Message setting file name will be [module ID_messages_language ID.xml], surface setting file name will be [module ID_surfaces_language ID.xml]File is located is [WEB-INF/classes/jp/co/slcs/kaiden2/]Warning
In the setting of message setting file or surface setting file, key should not be duplicated even if the files are different.Notes
It obtains the surface by [Let's create Master Maintenance Function] of this document/tutorial, so please refer it.Notes
Please refer to JavaDoc for details of PropertyHelper class.