The language-config Element"
From Documentation
m |
|||
Line 13: | Line 13: | ||
The use is the same as [[ZK Configuration Reference/zk.xml/The language-config Element]], except it is specified in a JAR file's <tt>config.xml</tt> rather than <tt>WEB-INF/zk.xml</tt>. | The use is the same as [[ZK Configuration Reference/zk.xml/The language-config Element]], except it is specified in a JAR file's <tt>config.xml</tt> rather than <tt>WEB-INF/zk.xml</tt>. | ||
− | Notice that the URI is related to the class path, such as <tt>/metainfo/zk/lang-fb.xml</tt>. In | + | Notice that the URI is related to the class path, such as <tt>/metainfo/zk/lang-fb.xml</tt>. In addition, <tt>/metainfo/zk/lang.xml</tt> and <tt>/metainfo/zk/lang-addon.xml</tt> are always loaded, no matter if this element is specified in <tt>config.xml</tt>. |
Since <tt>config.xml</tt> is parsed before a Web application has been initialized, you could specify the URI related to the resources of a Web application. | Since <tt>config.xml</tt> is parsed before a Web application has been initialized, you could specify the URI related to the resources of a Web application. |
Revision as of 02:30, 9 August 2011
Syntax:
<language-config> <addon-uri>a_uri</addon-uri> <language-uri>a_uri</language-uri> </language-config>
[Optional]
It specifies the additional language addons and/or definitions.
The use is the same as ZK Configuration Reference/zk.xml/The language-config Element, except it is specified in a JAR file's config.xml rather than WEB-INF/zk.xml.
Notice that the URI is related to the class path, such as /metainfo/zk/lang-fb.xml. In addition, /metainfo/zk/lang.xml and /metainfo/zk/lang-addon.xml are always loaded, no matter if this element is specified in config.xml.
Since config.xml is parsed before a Web application has been initialized, you could specify the URI related to the resources of a Web application.
Version History
Version | Date | Content |
---|---|---|
5.0.7 | May 2011 | The language-config element was allowed in config.xml. |