The language-config Element"
From Documentation
m (correct highlight (via JWB)) |
|||
Line 11: | Line 11: | ||
It specifies the additional [[ZK Client-side Reference/Language Definition|language addons and/or definitions]]. | It specifies the additional [[ZK Client-side Reference/Language Definition|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 < | + | The use is the same as [[ZK Configuration Reference/zk.xml/The language-config Element]], except it is specified in a JAR file's <code>config.xml</code> rather than <code>WEB-INF/zk.xml</code>. |
− | Notice that the URI is related to the class path, such as < | + | Notice that the URI is related to the class path, such as <code>/metainfo/zk/lang-fb.xml</code>. In addition, <code>/metainfo/zk/lang.xml</code> and <code>/metainfo/zk/lang-addon.xml</code> are always loaded, no matter if this element is specified in <code>config.xml</code>. |
− | Since < | + | Since <code>config.xml</code> 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 History= | ||
Line 24: | Line 24: | ||
| 5.0.7 | | 5.0.7 | ||
| May 2011 | | May 2011 | ||
− | | The language-config element was allowed in < | + | | The language-config element was allowed in <code>config.xml</code>. |
|} | |} | ||
{{ZKConfigurationReferencePageFooter}} | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 08:51, 19 January 2022
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 .
|