From 706877d72e6d64fd1093aa538cebad2311cbeca9 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Tue, 22 Dec 2015 14:12:50 +0000 Subject: [PATCH] FIX: Get locale from element for i18n.js (fixes #4854) --- javascript/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/i18n.js b/javascript/i18n.js index d1426e2ca..4dd2113b2 100644 --- a/javascript/i18n.js +++ b/javascript/i18n.js @@ -198,8 +198,8 @@ ss.i18n = { var detectedLocale; // get by container tag - rawLocale = jQuery('body').attr('lang'); - + rawLocale = jQuery('html').attr('lang') || jQuery('body').attr('lang'); + // get by meta if(!rawLocale) { var metas = document.getElementsByTagName('meta');