Merge pull request #4868 from kinglozzer/4854-i18n-meta

FIX: Get locale from <html> element for i18n.js (fixes #4854)
This commit is contained in:
Damian Mooyman 2015-12-23 10:27:32 +13:00
commit 4d2340a392

View File

@ -198,7 +198,7 @@ ss.i18n = {
var detectedLocale; var detectedLocale;
// get by container tag // get by container tag
rawLocale = jQuery('body').attr('lang'); rawLocale = jQuery('html').attr('lang') || jQuery('body').attr('lang');
// get by meta // get by meta
if(!rawLocale) { if(!rawLocale) {