Skip to content

Improved version of Translatable::choose_site_locale with setlocale() and HTTP_USER_AGENT detection #14

Open
chillu opened this Issue May 15, 2012 · 0 comments

1 participant

@chillu
SilverStripe Ltd. member
chillu commented May 15, 2012

Migrated from http://open.silverstripe.org/ticket/5122, see for patch file and further comments.

I've created an improved version of Translatable::choose_site_locale with session support, browser language detection and member locale detection. Locale will be assigned in order with following priority:

?Locale= URL
--2. "Locale" Session--

Member->Locale
Browser detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.