protected Locale resolveDefaultLocale ( Translet translet ) { Locale defaultLocale = getDefaultLocale ( ) ; if ( defaultLocale != null ) { translet . getRequestAdapter ( ) . setLocale ( defaultLocale ) ; return defaultLocale ; } else { return translet . getRequestAdapter ( ) . getLocale ( ) ; } }
Resolve the default locale for the given translet Called if can not find specified Locale .