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

Adds LocaleProvider for Custom Localization #70

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

v-antech
Copy link

Introduces the ability to bind a custom LocaleProvider that is used to localize the pages according to custom requirements, not only based on the Http request data.

The new LocaleProvider can be bound to a custom implementation that
does not necessarily use the browser locale. This is useful if the
Locale should be mapped to a specific value for a custom domain name
for example.
The new LocaleProvider can be bound to a custom implementation that
does not necessarily use the browser locale. This is useful if the
Locale should be mapped to a specific value for a custom domain name
for example.
… localeProvider

Conflicts:
	sitebricks/src/main/java/com/google/sitebricks/SitebricksModule.java
	sitebricks/src/main/java/com/google/sitebricks/locale/LocaleProvider.java
	sitebricks/src/main/java/com/google/sitebricks/locale/LocaleProviderImpl.java
Exchanged the HttpServletRequest with the new LocaleProvider.
@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #197 SUCCESS
This pull request looks good
(what's this?)

In case of a missing localization for the full Locale (language and
country) a fallback Locale consisting of the language only was used.
This change fixes the behavior so that it works as expected.
@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #206 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #207 FAILURE
Looks like there's a problem with this pull request
(what's this?)

In case of a missing localization for the full Locale (language and
country) a fallback Locale consisting of the language only was used.
This change fixes the behavior so that it works as expected.
Conflicts:
	sitebricks/src/test/java/com/google/sitebricks/LocalizationTest.java
@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #208 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #209 FAILURE
Looks like there's a problem with this pull request
(what's this?)

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.

2 participants