@Test public void testGetResourceLabel() { String actual = LabelUtil.getResourceLabel("my-key"); Assert.assertEquals("Ma clé traduite", actual); }
public static String getResourceLabel(String key) { try { ResourceBundle res = ResourceBundle.getBundle("labels", new EncodedControl("UTF-8")); return res.getString(key); } catch (MissingResourceException me) { logger.warn("Unable to find ResourceBUndle", me); return key; } }
LabelUtil { public static String getResourceLabel(String key) { try { ResourceBundle res = ResourceBundle.getBundle("labels", new EncodedControl("UTF-8")); return res.getString(key); } catch (MissingResourceException me) { logger.warn("Unable to find ResourceBUndle", me); return key; } } }
LabelUtil { public static String getResourceLabel(String key) { try { ResourceBundle res = ResourceBundle.getBundle("labels", new EncodedControl("UTF-8")); return res.getString(key); } catch (MissingResourceException me) { logger.warn("Unable to find ResourceBUndle", me); return key; } } private  LabelUtil(); }
LabelUtil { public static String getResourceLabel(String key) { try { ResourceBundle res = ResourceBundle.getBundle("labels", new EncodedControl("UTF-8")); return res.getString(key); } catch (MissingResourceException me) { logger.warn("Unable to find ResourceBUndle", me); return key; } } private  LabelUtil(); static String getLocalizedLabel(String lexicalValue,
	                                       Language language, String defaultLang); static String getResourceLabel(String key); static String getDefaultLabel(String key); }
LabelUtil { public static String getResourceLabel(String key) { try { ResourceBundle res = ResourceBundle.getBundle("labels", new EncodedControl("UTF-8")); return res.getString(key); } catch (MissingResourceException me) { logger.warn("Unable to find ResourceBUndle", me); return key; } } private  LabelUtil(); static String getLocalizedLabel(String lexicalValue,
	                                       Language language, String defaultLang); static String getResourceLabel(String key); static String getDefaultLabel(String key);  }