Merge pull request #1529 from marcelklehr/fix/i18n/two-part-locale-specs

Fixes #1498: Two-part locale specs in lang cookie wouldn't be read corre...
pull/1532/merge
John McLear 2013-02-17 12:37:12 -08:00
commit 26699618ac
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
(function(document) { (function(document) {
// Set language for l10n // Set language for l10n
var language = document.cookie.match(/language=((\w{2,3})(-w+)?)/); var language = document.cookie.match(/language=((\w{2,3})(-\w+)?)/);
if(language) language = language[1]; if(language) language = language[1];
html10n.bind('indexed', function() { html10n.bind('indexed', function() {