-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I'm implementing i3-label to internationalize my application. I create some .properties files in WEB-INF and declare its path in a custom configuration file that is indicated in zk.xml this way:
<library-property> <name>org.zkoss.zk.config.path</name> <value>/WEB-INF/config/i18n.xml</value> </library-property>
<zk> <system-config> <label-location>/WEB-INF/i18n/Generales/i3-label.properties</label-location> ... </system-config> </zk>
Thank you!
Hi Neus,
I do not think label-location element of system config can handle loading properties files from jar.
I think you can refer here and implement a LabelLocator based on url to these custom properties files in jar (you still need to figure out url to your properties file though). The idea is to load them from jar file yourself and register through the LabelLocator listener.
Feel free to post a feature request
I put zk-label.properties in metainfo package and Zk find this file in jar.
Can you show us some code on how you access the files and the structure of the separated jar file.
Thanks Stephan
Asked: 2012-11-13 11:07:16 +0800
Seen: 92 times
Last updated: May 21 '14