Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login error messages localization #72

Merged

Conversation

fyrbach
Copy link
Member

@fyrbach fyrbach commented Jan 23, 2023

The AMLoginContext currently loads and returns localized as well as non-localized error messages (and templates). The localization just depends on where the resource is loaded from.

Non-localized messages comes from AuthClientUtils that loads only single resource bundle.

This PR updates AuthClientUtils by overloading of method getErrorVal with Locale parameter and uses resources from AMResourceBundleCache. AMLoginContext calls this method where possible.

@fyrbach fyrbach requested a review from pavelhoral January 23, 2023 09:46
@fyrbach fyrbach linked an issue Jan 23, 2023 that may be closed by this pull request
Copy link
Member

@pavelhoral pavelhoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pavelhoral pavelhoral merged commit 238e455 into WrenSecurity:main Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login error messages ignore locales
2 participants