From ee39288541c1a9b0a6859570976dbe71a063f44f Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Tue, 21 Apr 2015 08:00:44 +0300 Subject: [PATCH] For #148 #141 - fixed incorrect 'default' locale processing in mobile UI --- src/main/webapp/m/js/traccar-mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/m/js/traccar-mobile.js b/src/main/webapp/m/js/traccar-mobile.js index 6287ed8f..9d9f1091 100644 --- a/src/main/webapp/m/js/traccar-mobile.js +++ b/src/main/webapp/m/js/traccar-mobile.js @@ -21,7 +21,7 @@ var locale = getParameterByName("locale"); if (locale === null) { locale = readCookie('GWT_LOCALE'); } -if (locale === null) { +if (locale === null || locale == 'default') { locale = 'en'; } i18n = i18n[locale];