| Table of Contents |
|---|
Description
| Thai |
|---|
ลักษณะ |
- org.joget.commons.util.ResourceBundleUtil
- Under wflow-core module
- Utility class to retrieve plugin propertise value and i18n message
Code Sample
| Thai |
|---|
ตัวอย่างโค้ด |
| Code Block | ||
|---|---|---|
| ||
import org.joget.commons.util.ResourceBundleUtil;
String label = ResourceBundleUtil.getMessage("general.method.label.ok"); |
Methods
| Thai |
|---|
กระบวนการ |
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
Utility method to retrieve the ApplicationContext of the system
| Thai |
|---|
วิธีการ Utility เพื่อดึง ApplicationContext ของระบบ |
getMessage
public static java.lang.String getMessage(java.lang.String code)
Gets the i18n message based on code
| Thai |
|---|
รับข้อความ i18n ตามโค้ด |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args)
Gets the i18n message with arguments based on code
| Thai |
|---|
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ด |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage)
...
Return default message if i18n message not found
| Thai |
|---|
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.lang.String defaultMessage)
...
Return default message if i18n message not found
| Thai |
|---|
รับข้อความ i18n ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.util.Locale locale)
Gets the i18n message based on code and locale
| Thai |
|---|
รับข้อความ i18n ตามโค้ดและโลแคล |
getMessage
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
| Thai |
|---|
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ดและโลแคล |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.lang.String defaultMessage, java.util.Locale locale)
...
Return default message if i18n message not found
| Thai |
|---|
รับข้อความ i18n ตามโค้ด ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
getMessage
public static java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
...
Return default message if i18n message not found
| Thai |
|---|
รับข้อความ i18n พร้อมอาร์กิวเมนต์ตามโค้ดและโลแคล ส่งคืนข้อความเริ่มต้นหากไม่พบข้อความ i18n |
getMessageSource
public static org.springframework.context.support.MessageSourceAccessor getMessageSource()
Gets the message source
| Thai |
|---|
รับแหล่งข้อความ |
getResourceBundleMessageDao
...
Method used by the system to get resource bundle message dao
| Thai |
|---|
วิธีการที่ใช้โดยระบบเพื่อรับข้อความกลุ่มทรัพยากร dao |
getSetupApplicationContext
...
Utility method to retrieve the Setup ApplicationContext of the system
| Thai |
|---|
วิธีการยูทิลิตี้เพื่อดึงการติดตั้ง ApplicationContext ของระบบ |
POFileImport
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
| Thai |
|---|
...
วิธีที่ใช้ในการนำเข้าข้อความจากไฟล์ PO |