BrightSide Workbench Full Report + Source Code
org.turro.zkoss.label.LabelBundle Class Reference

Static Public Member Functions

static String getLabel (String key)
 
static String getLabel (String key, String defaultValue)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file LabelBundle.java.

Member Function Documentation

◆ getLabel() [1/2]

static String org.turro.zkoss.label.LabelBundle.getLabel ( String  key)
static

Definition at line 34 of file LabelBundle.java.

34  {
35  return getLabel(key, key);
36  }
static String getLabel(String key)

◆ getLabel() [2/2]

static String org.turro.zkoss.label.LabelBundle.getLabel ( String  key,
String  defaultValue 
)
static

Definition at line 38 of file LabelBundle.java.

38  {
39  Locale curr = Application.getUsedLocale();
40  if(bundle == null || !curr.equals(current)) {
41  current = curr;
42  bundle = ResourceBundle.getBundle("label-site", current);
43  }
44  String result = null;
45  try {
46  result = bundle.getString(key);
47  } catch(Exception ex) {}
48  return (result == null ? defaultValue : result);
49  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: