ลักษณะ |
ตัวอย่างโค้ด |
import org.joget.commons.util.ResourceBundleUtil; String label = ResourceBundleUtil.getMessage("general.method.label.ok"); |
กระบวนการ |
public static org.springframework.context.ApplicationContext getApplicationContext()
Utility method to retrieve the ApplicationContext of the system |
วิธีการ Utility เพื่อดึง ApplicationContext ของระบบ |
public static java.lang.String getMessage(java.lang.String code)
Gets the i18n message based on code
รับข้อความ i18n ตามโค้ด |
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args)
Gets the i18n message with arguments based on code
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ด |
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage)
Gets the i18n message with arguments based on code
Return default message if i18n message not found
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
public static java.lang.String getMessage(java.lang.String code, java.lang.String defaultMessage)
Gets the i18n message based on code
Return default message if i18n message not found
รับข้อความ i18n ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
public static java.lang.String getMessage(java.lang.String code, java.util.Locale locale)
Gets the i18n message based on code and locale
รับข้อความ i18n ตามโค้ดและโลแคล |
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.util.Locale locale)
Gets the i18n message with arguments based on code and locale
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ดและโลแคล |
public static java.lang.String getMessage(java.lang.String code, java.lang.String defaultMessage, java.util.Locale locale)
Gets the i18n message based on code
Return default message if i18n message not found
รับข้อความ i18n ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
Gets the i18n message with arguments based on code and locale
Return default message if i18n message not found
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ดและโลแคล ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
public static org.springframework.context.support.MessageSourceAccessor getMessageSource()
Gets the message source
รับแหล่งข้อความ |
public static org.joget.commons.spring.model.ResourceBundleMessageDao getResourceBundleMessageDao()
Method used by the system to get resource bundle message dao
วิธีการที่ใช้โดยระบบเพื่อรับข้อความกลุ่มทรัพยากร dao |
public static org.springframework.context.ApplicationContext getSetupApplicationContext()
Utility method to retrieve the Setup ApplicationContext of the system
วิธีการยูทิลิตี้เพื่อดึงการติดตั้ง ApplicationContext ของระบบ |
public static void POFileImport(org.springframework.web.multipart.MultipartFile multipartFile, java.lang.String locale) throws java.io.IOException
Method used to import message from PO file
วิธีที่ใช้ในการนำเข้าข้อความจากไฟล์ PO |