public static Locale getEffectiveLocale() {
		Locale effectiveLocale = null;
		UIContext uic = UIContextHolder.getCurrent();

		if (uic != null) {
			effectiveLocale = uic.getLocale();
		}

		if (effectiveLocale == null) {
			String defaultLocale = ConfigurationProperties.getDefaultLocale();
			effectiveLocale = new Locale(defaultLocale);
		}

		// Don't use Locale.getDefault() because it is too nebulous (depends on host environment)

		return effectiveLocale;
	}
public static Locale getEffectiveLocale ( ) { Locale effectiveLocale = null ; UIContext uic = UIContextHolder . getCurrent ( ) ; if ( uic != null ) { effectiveLocale = uic . getLocale ( ) ; } if ( effectiveLocale == null ) { String defaultLocale = ConfigurationProperties . getDefaultLocale ( ) ; effectiveLocale = new Locale ( defaultLocale ) ; } return effectiveLocale ; }
Get the locale currently in use.
@return The currently active locale.