使用Spring Boot Thymeleaf搭建TODOLIST應用程式範例。
2021/5/28
2021/5/20
2020/7/1
Spring Boot update message properties
Spring Boot ReloadableResourceBundleMessageSource 更新i18n訊息message.properties範例。
2020/6/30
2020/6/29
2020/6/28
Spring Boot MessageSource 自動配置
Spring Boot自動配置了MessageSource做i18n多國語言訊息,所以若無特殊需求不用自己配置MessageSource的bean。
2020/6/25
2018/6/17
ZK i18n 多語系設定
ZK i18n多語系的語言設定檔預設會抓取WEB-INF目錄下的zk-label_lang_CNTY.properties檔,例如使用WEB-INF/zk-label_zh_TW.properties作為繁體中文語系的來源。
2018/6/10
ZK 多語系 i18n zk-label.properties (i3-label.properties) 中文顯示Uncode編碼問題
ZK的多語系(i18n)的支援可透過在WEB-INF目錄下設定zk-label_lang_CNTY.properties檔(舊版的好像是叫做i3-labels.properties),並在zul直接透過EL及隱含物件labels來存取。(注意labels是全小寫,在Eclipse編輯器大寫"L"和小寫"l"的斜體長得很像,剛才因為這個小差異折騰了半天。)
<label value="${labels.app.login}"/>
但今天在Eclipse Properties Editor編輯好properties檔時,在zul的畫面上卻是顯示中文的Unicode。
訂閱:
文章 (Atom)