l"
From Documentation
m |
|||
Line 7: | Line 7: | ||
:i.e., <javadoc method="getLabel(java.lang.String)">org.zkoss.xel.fn.CommonFns</javadoc> | :i.e., <javadoc method="getLabel(java.lang.String)">org.zkoss.xel.fn.CommonFns</javadoc> | ||
− | Returns the label of the given key defined in | + | 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="currentLocale">org.zkoss.util.Locales</javadoc>). | ||
+ | |||
+ | <blockquote> | ||
+ | ---- | ||
+ | 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= |
Revision as of 02:41, 28 March 2011
String l(String key);
Returns the label of the given key defined in the internationalization labels.
The label is based on the current Locale (Locales.currentLocale).
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
Version | Date | Content |
---|---|---|