FIX: Get locale from <html> element for i18n.js (fixes #4854)

This commit is contained in:
Loz Calver 2015-12-22 14:12:50 +00:00
parent ea5f72c176
commit 706877d72e

View File

@ -198,8 +198,8 @@ 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) {
var metas = document.getElementsByTagName('meta'); var metas = document.getElementsByTagName('meta');