Add lang attribute to more display labels (re: #7963)

This commit is contained in:
Quincy Morgan
2020-09-23 10:10:24 -04:00
parent 7b5df1bc40
commit 4600ab596f
15 changed files with 58 additions and 43 deletions
+15
View File
@@ -72,6 +72,12 @@ export function rendererBackgroundSource(data) {
};
source.label = function() {
var id_safe = source.id.replace(/\./g, '<TX_DOT>');
return t.html('imagery.' + id_safe + '.name', { default: _name });
};
source.description = function() {
var id_safe = source.id.replace(/\./g, '<TX_DOT>');
return t('imagery.' + id_safe + '.description', { default: _description });
@@ -538,6 +544,11 @@ rendererBackgroundSource.None = function() {
};
source.label = function() {
return t.html('background.none');
};
source.imageryUsed = function() {
return null;
};
@@ -560,6 +571,10 @@ rendererBackgroundSource.Custom = function(template) {
return t('background.custom');
};
source.label = function() {
return t.html('background.custom');
};
source.imageryUsed = function() {
// sanitize personal connection tokens - #6801