(Quick Reference)

24 Internationalization - Reference Documentation

Authors: Burt Beckwith, Beverley Talbott

Version: 2.0.0

24 Internationalization

Spring Security Core plugin is provided with i18n messages in several languages.

If you want to customize or translate the texts then add messages for the following keys to your i18n resource bundle(s) for each exception:

MessageDefault ValueException
springSecurity.errors.login.expired"Sorry, your account has expired."AccountExpiredException
springSecurity.errors.login.passwordExpired"Sorry, your password has expired."CredentialsExpiredException
springSecurity.errors.login.disabled"Sorry, your account is disabled."DisabledException
springSecurity.errors.login.locked"Sorry, your account is locked."LockedException
springSecurity.errors.login.fail"Sorry, we were not able to find a user with that username and password."Other exceptions

You can customize all messages in auth.gsp and denied.gsp:

MessageDefault Value
springSecurity.login.titleLogin
springSecurity.login.headerPlease Login
springSecurity.login.buttonLogin
springSecurity.login.username.labelUsername
springSecurity.login.password.labelPassword
springSecurity.login.remember.me.labelRemember me
springSecurity.denied.titleDenied
springSecurity.denied.messageSorry, you're not authorized to view this page.