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 <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 <code>config.xml</code> rather than <code>WEB-INF/zk.xml</code>.
  
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>.
+
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 <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 <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 <tt>config.xml</tt>.
+
| The language-config element was allowed in <code>config.xml</code>.
 
|}
 
|}
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 08:51, 19 January 2022


The language-config Element


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

Last Update : 2022/01/19


Version Date Content
5.0.7 May 2011 The language-config element was allowed in config.xml.



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.