The label-location Element"

From Documentation
m
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
  <label-location>''a_uri''</label-location>
 
  <label-location>''a_uri''</label-location>
  
  [Default: '''/WEB-INF/i3-label.properties''']
+
  [Default: '''/WEB-INF/zk-label.properties''']
[Since 5.0.7]
+
{{versionSince| 5.0.7}}
  
 
It specifies the location of the properties file for [[ZK Developer's Reference/Internationalization/Labels|the internationalization labels]]. If you have multiple properties files, you could specify them one by one. For example,
 
It specifies the location of the properties file for [[ZK Developer's Reference/Internationalization/Labels|the internationalization labels]]. If you have multiple properties files, you could specify them one by one. For example,
Line 16: Line 16:
 
</source>
 
</source>
  
Notice that, once specified, <tt>WEB-INF/i3-labels.properties</tt> is ignored. In other words, ZK loads only the files specified in the label-location element. If you still want to load it, you have to specify it in <tt>WEB-INF/zk.xml</tt> too.
+
Notice that, once specified, <code>WEB-INF/zk-labels.properties</code> is ignored. In other words, ZK loads only the files specified in the label-location element. If you still want to load it, you have to specify it in <code>WEB-INF/zk.xml</code> too.
  
 
<source lang="xml">
 
<source lang="xml">
 
<system-config>
 
<system-config>
     <label-location>/WEB-INF/i3-label.properties</label-location><!-- if you still need i3-label.properties -->
+
     <label-location>/WEB-INF/zk-label.properties</label-location><!-- if you still need zk-label.properties -->
 
     <label-location>/WEB-INF/labels/order.properties</label-location>
 
     <label-location>/WEB-INF/labels/order.properties</label-location>
 
     <label-location>/WEB-INF/labels/invoice.properties</label-location>
 
     <label-location>/WEB-INF/labels/invoice.properties</label-location>
Line 27: Line 27:
  
  
=Version History=
 
 
{{LastUpdated}}
 
{{LastUpdated}}
{| border='1px' | width="100%"
+
 
! Version !! Date !! Content
 
|-
 
| 5.0.7
 
| March 2011
 
| This feature was introduced.
 
|}
 
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 04:02, 15 August 2022


The label-location Element


Syntax:

<label-location>a_uri</label-location>
[Default: /WEB-INF/zk-label.properties]

Since 5.0.7

It specifies the location of the properties file for the internationalization labels. If you have multiple properties files, you could specify them one by one. For example,

<system-config>
    <label-location>/WEB-INF/labels/order.properties</label-location>
    <label-location>/WEB-INF/labels/invoice.properties</label-location>
</system-config>

Notice that, once specified, WEB-INF/zk-labels.properties is ignored. In other words, ZK loads only the files specified in the label-location element. If you still want to load it, you have to specify it in WEB-INF/zk.xml too.

<system-config>
    <label-location>/WEB-INF/zk-label.properties</label-location><!-- if you still need zk-label.properties -->
    <label-location>/WEB-INF/labels/order.properties</label-location>
    <label-location>/WEB-INF/labels/invoice.properties</label-location>
</system-config>


Last Update : 2022/08/15




Last Update : 2022/08/15

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