l"

From Documentation
(Created page with '{{ZUMLReferencePageHeader}} =Version History= Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}} {| border='1px' | width="100%" ! Version !! Date !! Content |- | &…')
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ZUMLReferencePageHeader}}
 
{{ZUMLReferencePageHeader}}
 +
 +
<source lang="java">
 +
String l(String key);
 +
</source>
 +
 +
:i.e., <javadoc method="getLabel(java.lang.String)">org.zkoss.xel.fn.CommonFns</javadoc>
 +
 +
Returns the label of the given key defined in [[ZK Developer's Reference/Internationalization/Labels|the internationalization labels]].
 +
 +
The label is based on the current Locale (<javadoc method="getCurrent()">org.zkoss.util.Locales</javadoc>).
 +
 +
<blockquote>
 +
 +
{{versionSince| 5.0.7}}
 +
For 5.0.7 and later, an implicit object called [[ZUML Reference/EL Expressions/Implicit Objects/labels|labels]] was introduced, and it is more convenient to use.
 +
</blockquote>
 +
 +
For example,
 +
 +
<source lang="xml" >
 +
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
 +
 +
<window title="${c:l('app.title')}">
 +
...
 +
</window>
 +
</source>
  
 
=Version History=
 
=Version History=
Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
+
{{LastUpdated}}
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content

Latest revision as of 01:29, 22 July 2022

String l(String key);
i.e., CommonFns.getLabel(String)

Returns the label of the given key defined in the internationalization labels.

The label is based on the current Locale (Locales.getCurrent()).

Since 5.0.7 For 5.0.7 and later, an implicit object called labels was introduced, and it is more convenient to use.

For example,

<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<window title="${c:l('app.title')}">
 ...
</window>

Version History

Last Update : 2022/07/22


Version Date Content
     



Last Update : 2022/07/22

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