use of com.sun.faces.util.Util.getLocaleFromString in project mojarra by eclipse-ee4j.
the class ApplicationConfigProcessor method addSupportedLocale.
private void addSupportedLocale(Application application, Node supportedLocale) {
if (supportedLocale != null) {
Set<Locale> sLocales = getCurrentLocales(application);
String locString = getNodeText(supportedLocale);
if (locString != null) {
Locale loc = Util.getLocaleFromString(locString);
if (loc != null) {
LOGGER.log(Level.FINE, () -> format("Adding supported Locale ''{0}''", locString));
sLocales.add(loc);
}
application.setSupportedLocales(sLocales);
}
}
}
Aggregations