|
static String | getLabel (String key) |
|
static String | getLabel (String key, String defaultValue) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 29 of file LabelBundle.java.
◆ getLabel() [1/2]
static String org.turro.zkoss.label.LabelBundle.getLabel |
( |
String |
key | ) |
|
|
static |
◆ getLabel() [2/2]
static String org.turro.zkoss.label.LabelBundle.getLabel |
( |
String |
key, |
|
|
String |
defaultValue |
|
) |
| |
|
static |
Definition at line 38 of file LabelBundle.java.
39 Locale curr = Application.getUsedLocale();
40 if(bundle ==
null || !curr.equals(current)) {
42 bundle = ResourceBundle.getBundle(
"label-site", current);
46 result = bundle.getString(key);
47 }
catch(Exception ex) {}
48 return (result ==
null ? defaultValue : result);
The documentation for this class was generated from the following file: