From f3cd8b8a9ad5c866768f6f5c7e1f53697e54c3f0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 1 Aug 2015 21:21:21 +1200 Subject: Update web project structure --- web/app.js | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'web/app.js') diff --git a/web/app.js b/web/app.js index c1fe8b0a6..597cce492 100644 --- a/web/app.js +++ b/web/app.js @@ -14,37 +14,6 @@ * limitations under the License. */ -Ext.Loader.setConfig({ - disableCaching: false -}); - -{ - var availableLanguages = { - 'de': 'Deutsch', - 'en': 'English', - 'es': 'Español', - 'fr': 'Français', - 'pl': 'Polski', - 'pt': 'Português', - 'ru': 'Русский', - 'th': 'ไทย', - 'zh': '中文' - }; - - var language = Ext.Object.fromQueryString(window.location.search.substring(1)).locale; - if (language === undefined) { - language = window.navigator.userLanguage || window.navigator.language; - language = language.substr(0, 2); - } - - if (!(language in availableLanguages)) { - language = 'en'; // default - } - - Ext.Loader.loadScript('/l10n/' + language + '.js'); - Ext.Loader.loadScript('http://cdn.sencha.com/ext/gpl/5.1.0/build/packages/ext-locale/build/ext-locale-' + language + '.js'); -} - Ext.application({ name: 'Traccar', extend: 'Traccar.Application' -- cgit v1.2.3