wiki
wiki copied to clipboard
Multiple language support of login page
See Also: #4480. findBestLocale function in this PR is very similar to findBestLocaleFor in #4480. If both is going to be merged, They may be merged.
In this implementation,
- For
/login- If locale namespaces are enabled
- If client sends
accept-languagewhich has installed locale- Redirected to
/<locale by accept-language>/login
- Redirected to
- Otherwice
- Redirected to
/<default locale>/login
- Redirected to
- If client sends
- Otherwice
- Login form will with default locale be rendered as before
- If locale namespaces are enabled
- For
/<locale>/login- Login form with specified local will be rendered.