18 package org.turro.zkoss.label;
20 import java.util.Locale;
21 import java.util.ResourceBundle;
22 import org.turro.elephant.context.Application;
31 private static ResourceBundle bundle;
32 private static Locale current;
38 public static String
getLabel(String key, String defaultValue) {
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);
static Locale getUsedLocale()
static String getLabel(String key)
static String getLabel(String key, String defaultValue)