Skip to content

Conversation

@v-antech
Copy link

Extends the current implementation to allow bindings of custom LocaleProviders that may behave differently and not rely (entirely) on the locale provided from the browser. A use case could be to disable some languages for custom domains.

For this to work one has only to override the SitebricksModule#bindLocaleProvider() method with a custom binding.

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
@buildhive
Copy link

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

Exchanged the HttpServletRequest with the new LocaleProvider.
@buildhive
Copy link

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

@v-antech
Copy link
Author

Is there any progress on this? Some feedback would be really cool. Thank you!

@v-antech v-antech closed this May 13, 2014
@v-antech v-antech reopened this Sep 16, 2014
@buildhive
Copy link

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

@buildhive
Copy link

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

@buildhive
Copy link

Dhanji R. Prasanna » sitebricks #196 SUCCESS
This pull request looks good
(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.

3 participants