@ Nonnull public static String getLocaleDisplayName ( @ Nullable final Locale aLocale , @ Nonnull final Locale aContentLocale ) { ValueEnforcer . notNull ( aContentLocale , "ContentLocale" ) ; if ( aLocale == null || aLocale . equals ( LOCALE_INDEPENDENT ) ) return ELocaleName . ID_LANGUAGE_INDEPENDENT . getDisplayText ( aContentLocale ) ; if ( aLocale . equals ( LOCALE_ALL ) ) return ELocaleName . ID_LANGUAGE_ALL . getDisplayText ( aContentLocale ) ; return aLocale . getDisplayName ( aContentLocale ) ; }
Get the display name of the passed language in the currently selected UI language .