Internationalise the Telemetry port dropdown option for 'Disabled'.
parent
1dbf77c777
commit
67c8cdcaac
|
@ -521,6 +521,9 @@
|
||||||
"portsButtonSave": {
|
"portsButtonSave": {
|
||||||
"message": "Save and Reboot"
|
"message": "Save and Reboot"
|
||||||
},
|
},
|
||||||
|
"portsTelemetryDisabled": {
|
||||||
|
"message": "Disabled"
|
||||||
|
},
|
||||||
"portsFunction_MSP": {
|
"portsFunction_MSP": {
|
||||||
"message": "MSP"
|
"message": "MSP"
|
||||||
},
|
},
|
||||||
|
|
|
@ -167,7 +167,8 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
||||||
if (select_e.size() == 0) {
|
if (select_e.size() == 0) {
|
||||||
functions_e.prepend('<span class="function"><select name="' + selectElementName + '" /></span>');
|
functions_e.prepend('<span class="function"><select name="' + selectElementName + '" /></span>');
|
||||||
select_e = functions_e.find(selectElementSelector);
|
select_e = functions_e.find(selectElementSelector);
|
||||||
select_e.append('<option value="">-- Select --</option>');
|
var disabledText = chrome.i18n.getMessage('portsTelemetryDisabled');
|
||||||
|
select_e.append('<option value="">' + disabledText + '</option>');
|
||||||
}
|
}
|
||||||
select_e.append('<option value="' + functionName + '">' + functionRule.displayName + '</option>');
|
select_e.append('<option value="' + functionName + '">' + functionRule.displayName + '</option>');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue