3334353637383940414243
* * @param exposed */ public I18nPlugin(SlingHttpServletRequest request) { super(request); this.i18n = new I18n(request); if (this.i18n != null) { this.enable(); } else { this.disable();
63646566676869
Locale locale = new Locale(language, country, variant); this.setI18n(locale); } public void setI18n(Locale locale) { this.i18n = new I18n(this.request.getResourceBundle(locale)); }
72737475767778
* Set i18n resource bundle; by default set to the Request * * @param request */ public void setI18n(SlingHttpServletRequest request) { this.i18n = new I18n(request); }