mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 13:11:41 +02:00
Add lang attribute to more display labels (re: #7963)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user