/** * Returns a formatted message given a label identifier. Recognizes line continuation with * backslash characters. * * @param id A label identifier. * @param locale The locale. * @param args Optional replaceable parameters. * @return The formatted label. */ public static String getLabel(String id, Locale locale, Object... args) { if (id.startsWith("@")) { id = id.substring(1); } return Localizer.getMessage(id, locale, args); }
@Override public String resolveMessage(ITemplateContext context, Class<?> origin, String key, Object[] messageParameters) { return Localizer.getMessage(key, context.getLocale(), messageParameters); }
@Override protected Object handleGetObject(String key) { return Localizer.getMessage(key, getLocale()); }