public static void setLocale ( Locale locale ) { if ( RepositoryUtils . locale == null ) { RepositoryUtils . locale = locale ; } else { if ( RepositoryUtils . locale != locale ) { RepositoryUtils . locale = locale ; messages = null ; installMessages = null ; } } }
This method sets the Locale value for the repository based on input .