KEYCLOAK-1816
LocaleHelper prints info 'Locale en is not supported'
This commit is contained in:
parent
931102ff26
commit
3d2acbe780
1 changed files with 0 additions and 14 deletions
|
@ -18,8 +18,6 @@ public class LocaleHelper {
|
|||
public static final String UI_LOCALES_PARAM = "ui_locales";
|
||||
public static final String KC_LOCALE_PARAM = "kc_locale";
|
||||
|
||||
private final static Logger LOGGER = Logger.getLogger(LocaleHelper.class);
|
||||
|
||||
public static Locale getLocale(RealmModel realm, UserModel user) {
|
||||
return getLocale(realm, user, null, null);
|
||||
}
|
||||
|
@ -38,8 +36,6 @@ public class LocaleHelper {
|
|||
user.setSingleAttribute(UserModel.LOCALE, locale.toLanguageTag());
|
||||
}
|
||||
return locale;
|
||||
}else{
|
||||
LOGGER.infof("Locale %s is not supported.", localeString);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -52,8 +48,6 @@ public class LocaleHelper {
|
|||
user.setSingleAttribute(UserModel.LOCALE, locale.toLanguageTag());
|
||||
}
|
||||
return locale;
|
||||
}else{
|
||||
LOGGER.infof("Locale %s is not supported.", localeString);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,8 +58,6 @@ public class LocaleHelper {
|
|||
if(locale != null){
|
||||
|
||||
return locale;
|
||||
}else{
|
||||
LOGGER.infof("Locale %s is not supported.", localeString);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,8 +67,6 @@ public class LocaleHelper {
|
|||
Locale locale = findLocale(realm.getSupportedLocales(), localeString.split(" "));
|
||||
if(locale != null){
|
||||
return locale;
|
||||
}else{
|
||||
LOGGER.infof("Locale %s is not supported.", localeString);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,8 +77,6 @@ public class LocaleHelper {
|
|||
Locale locale = findLocale(realm.getSupportedLocales(), localeString);
|
||||
if(locale != null){
|
||||
return locale;
|
||||
}else{
|
||||
LOGGER.infof("Locale %s is not supported.", localeString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -109,8 +97,6 @@ public class LocaleHelper {
|
|||
builder.cookie(new NewCookie(LocaleHelper.LOCALE_COOKIE, locale.toLanguageTag(), path, null, null, 31536000, secure));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static Locale findLocale(Set<String> supportedLocales, String ... localeStrings) {
|
||||
for(String localeString : localeStrings){
|
||||
Locale result = null;
|
||||
|
|
Loading…
Reference in a new issue