Skip to content

Conversation

@zploskey
Copy link
Contributor

A bug introduced in 1c7b373 (see issue #4 ) set a 2 character locale
when the browser requested a 4 character locale that had
translations available. This resulted in translations failing
to be displayed. This change makes us only fall back to trying
to match the first two characters of the locale if the 4 char
locale was not found. Furthermore, it sets the locale to whatever
the application calls that locale, and not the two character
locale which may not have a translation available.

A bug introduced in 1c7b373 set a 2 character locale
when the browser requested a 4 character locale that had
translations available. This resulted in translations failing
to be displayed. This change makes us only fall back to trying
to match the first two characters of the locale if the 4 char
locale was not found. Furthermore, it sets the locale to whatever
the application calls that locale, and not the two character
locale which may not have a translation available.
@zploskey zploskey changed the title Fix two locale code matching / 2 char locales Fix locale code matching / 2 char locales Aug 16, 2016
@patrickmj patrickmj merged commit 15d5c8e into patrickmj:master Aug 16, 2016
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