Internationalise the Telemetry port dropdown option for 'Disabled'.

10.3.x-maintenance
Dominic Clifton 2015-03-05 15:57:23 +00:00
parent 1dbf77c777
commit 67c8cdcaac
2 changed files with 5 additions and 1 deletions

View File

@ -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"
}, },

View File

@ -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>');