From 7ba9f41b8797aa6cb6171edbab29f48e78f82438 Mon Sep 17 00:00:00 2001 From: Nicola De Pasquale Date: Sun, 22 Mar 2020 11:09:24 +0100 Subject: [PATCH 1/3] added none to gps sbas --- src/js/tabs/configuration.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/tabs/configuration.js b/src/js/tabs/configuration.js index c791b946..8b74f019 100644 --- a/src/js/tabs/configuration.js +++ b/src/js/tabs/configuration.js @@ -708,6 +708,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) { 'Japanese MSAS', 'Indian GAGAN' ]; + if (semver.gte(CONFIG.apiVersion, "1.43.0")) { + gpsSbas.push('NONE'); + } var gps_protocol_e = $('select.gps_protocol'); for (var i = 0; i < gpsProtocols.length; i++) { From ad91e656994f0d8fccfb2028b223af5a17a5ae98 Mon Sep 17 00:00:00 2001 From: Nicola De Pasquale Date: Mon, 23 Mar 2020 09:27:55 +0100 Subject: [PATCH 2/3] add i18n --- locales/en/messages.json | 18 ++++++++++++++++++ src/js/tabs/configuration.js | 12 ++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 9a944f53..2aac2966 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -5656,5 +5656,23 @@ }, "dialogRatesTypeConfirm": { "message": "Change" + }, + "gpsSbasAutoDetect": { + "message": "Auto-detect" + }, + "gpsSbasEuropeanEGNOS": { + "message": "European EGNOS" + }, + "gpsSbasNorthAmericanWAAS": { + "message": "North American WAAS" + }, + "gpsSbasJapaneseMSAS": { + "message": "Japanese MSAS" + }, + "gpsSbasIndianGAGAN": { + "message": "Indian GAGAN" + }, + "gpsSbasNone": { + "message": "None" } } diff --git a/src/js/tabs/configuration.js b/src/js/tabs/configuration.js index 8b74f019..6c22c361 100644 --- a/src/js/tabs/configuration.js +++ b/src/js/tabs/configuration.js @@ -702,14 +702,14 @@ TABS.configuration.initialize = function (callback, scrollPosition) { ]; var gpsSbas = [ - 'Auto-detect', - 'European EGNOS', - 'North American WAAS', - 'Japanese MSAS', - 'Indian GAGAN' + i18n.getMessage('gpsSbasAutoDetect'), + i18n.getMessage('gpsSbasEuropeanEGNOS'), + i18n.getMessage('gpsSbasNorthAmericanWAAS'), + i18n.getMessage('gpsSbasJapaneseMSAS'), + i18n.getMessage('gpsSbasIndianGAGAN') ]; if (semver.gte(CONFIG.apiVersion, "1.43.0")) { - gpsSbas.push('NONE'); + gpsSbas.push(i18n.getMessage('gpsSbasNone')); } var gps_protocol_e = $('select.gps_protocol'); From 687ff4ccc95c7bade1a37b53af09219b9b29db4c Mon Sep 17 00:00:00 2001 From: Nicola De Pasquale Date: Mon, 23 Mar 2020 09:55:18 +0100 Subject: [PATCH 3/3] added descriptions --- locales/en/messages.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 2aac2966..d78f69b6 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -5658,21 +5658,27 @@ "message": "Change" }, "gpsSbasAutoDetect": { - "message": "Auto-detect" + "message": "Auto-detect", + "description": "One of the options selectable for the GPS SBAS system" }, "gpsSbasEuropeanEGNOS": { - "message": "European EGNOS" + "message": "European EGNOS", + "description": "One of the options selectable for the GPS SBAS system" }, "gpsSbasNorthAmericanWAAS": { - "message": "North American WAAS" + "message": "North American WAAS", + "description": "One of the options selectable for the GPS SBAS system" }, "gpsSbasJapaneseMSAS": { - "message": "Japanese MSAS" + "message": "Japanese MSAS", + "description": "One of the options selectable for the GPS SBAS system" }, "gpsSbasIndianGAGAN": { - "message": "Indian GAGAN" + "message": "Indian GAGAN", + "description": "One of the options selectable for the GPS SBAS system" }, "gpsSbasNone": { - "message": "None" + "message": "None", + "description": "One of the options selectable for the GPS SBAS system" } }