mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Add more translations, opacity to brightness YOU WIN @ansis
This commit is contained in:
@@ -45,7 +45,7 @@ iD.ui.geocoder = function() {
|
||||
|
||||
var button = selection.append('button')
|
||||
.attr('tabindex', -1)
|
||||
.attr('title', 'Find A Location')
|
||||
.attr('title', t('geocoder.find_location'))
|
||||
.html('<span class=\'geocode icon\'></span>')
|
||||
.on('click', toggle);
|
||||
|
||||
@@ -53,7 +53,7 @@ iD.ui.geocoder = function() {
|
||||
|
||||
gcForm.attr('class','content fillD map-overlay hide')
|
||||
.append('input')
|
||||
.attr({ type: 'text', placeholder: 'find a place' })
|
||||
.attr({ type: 'text', placeholder: t('geocoder.find_a_place') })
|
||||
.on('keydown', keydown);
|
||||
|
||||
selection.call(clickoutside);
|
||||
|
||||
@@ -35,7 +35,7 @@ iD.ui.inspector = function() {
|
||||
});
|
||||
|
||||
newTag.append('span').attr('class', 'icon icon-pre-text plus');
|
||||
newTag.append('span').attr('class','label').text('New tag')
|
||||
newTag.append('span').attr('class','label').text(t('inspector.new_tag'));
|
||||
|
||||
drawTags(entity.tags);
|
||||
|
||||
@@ -63,7 +63,7 @@ iD.ui.inspector = function() {
|
||||
.attr('class', 'apply action')
|
||||
.on('click', apply);
|
||||
|
||||
inspectorButton.append('span').attr('class','label').text('Okay');
|
||||
inspectorButton.append('span').attr('class','label').text(t('okay'));
|
||||
|
||||
var minorButtons = selection.append('div').attr('class','minor-buttons fl');
|
||||
|
||||
@@ -148,7 +148,7 @@ iD.ui.inspector = function() {
|
||||
iD.ui.flash()
|
||||
.select('.content')
|
||||
.append('h3')
|
||||
.text(t('no_documentation_combination'));
|
||||
.text(t('inspector.no_documentation_combination'));
|
||||
}
|
||||
});
|
||||
} else if (d.key) {
|
||||
@@ -166,7 +166,7 @@ iD.ui.inspector = function() {
|
||||
iD.ui.flash()
|
||||
.select('.content')
|
||||
.append('h3')
|
||||
.text(t('no_documentation_key'));
|
||||
.text(t('inspector.no_documentation_key'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ iD.ui.layerswitcher = function(context) {
|
||||
.append('div')
|
||||
.attr('class', 'opacity-options-wrapper');
|
||||
|
||||
opa.append('h4').text(t('layers'));
|
||||
opa.append('h4').text(t('layerswitcher.layers'));
|
||||
|
||||
opa.append('ul')
|
||||
.attr('class', 'opacity-options')
|
||||
@@ -68,7 +68,7 @@ iD.ui.layerswitcher = function(context) {
|
||||
.enter()
|
||||
.append('li')
|
||||
.attr('data-original-title', function(d) {
|
||||
return t('percent_opacity', { opacity: (d * 100) });
|
||||
return t('layerswitcher.percent_brightness', { opacity: (d * 100) });
|
||||
})
|
||||
.on('click.set-opacity', function(d) {
|
||||
d3.select('#tile-g')
|
||||
|
||||
+13
-7
@@ -136,8 +136,11 @@ locale.en = {
|
||||
|
||||
"layer_settings": "Layer Settings",
|
||||
|
||||
"no_documentation_combination": "This is no documentation available for this tag combination",
|
||||
"no_documentation_key": "This is no documentation available for this key",
|
||||
inspector: {
|
||||
no_documentation_combination: "This is no documentation available for this tag combination",
|
||||
no_documentation_key: "This is no documentation available for this key",
|
||||
new_tag: "New Tag"
|
||||
},
|
||||
|
||||
"view_on_osm": "View on OSM",
|
||||
|
||||
@@ -145,13 +148,16 @@ locale.en = {
|
||||
|
||||
"edit_tags": "Edit tags",
|
||||
|
||||
"find_location": "Find A Location",
|
||||
"find_placeholder": "find a place",
|
||||
geocoder: {
|
||||
"find_location": "Find A Location",
|
||||
"find_a_place": "find a place"
|
||||
},
|
||||
|
||||
"description": "Description",
|
||||
|
||||
"logout": "logout",
|
||||
|
||||
"layers": "Layers",
|
||||
"percent_opacity": "{opacity}% opacity"
|
||||
layerswitcher: {
|
||||
layers: "Layers",
|
||||
percent_brightness: "{opacity}% brightness"
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user