mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Localize preset work
This commit is contained in:
@@ -9,7 +9,7 @@ iD.ui.PresetGrid = function() {
|
||||
selection.html('');
|
||||
|
||||
var viable = presetData.match(entity);
|
||||
event.message('What kind of ' + entity.geometry(context.graph()) + ' are you adding?');
|
||||
event.message(t('inspector.choose'));
|
||||
|
||||
var searchwrap = selection.append('div')
|
||||
.attr('class', 'preset-grid-search-wrap inspector-inner');
|
||||
|
||||
@@ -74,15 +74,15 @@ iD.ui.TagEditor = function() {
|
||||
|
||||
typelabel.append('span')
|
||||
.attr('class','label')
|
||||
.text(presetMatch ? presetMatch.name : 'Other');
|
||||
.text(presetMatch.name);
|
||||
|
||||
namewrap.append('h4').text('Name');
|
||||
namewrap.append('h4').text(t('inspector.name'));
|
||||
|
||||
name = namewrap.append('input')
|
||||
.attr('placeholder', 'unknown')
|
||||
.attr('class', 'major')
|
||||
.attr('type', 'text')
|
||||
.property('value', entity.tags.name || 'this')
|
||||
.property('value', entity.tags.name)
|
||||
.on('blur', function() {
|
||||
event.change();
|
||||
});
|
||||
@@ -108,7 +108,7 @@ iD.ui.TagEditor = function() {
|
||||
.preset(presetMatch));
|
||||
}
|
||||
|
||||
event.message('Edit ' + (presetMatch && presetMatch.name || ''));
|
||||
event.message(t('inspector.editing', { type: presetMatch.name }));
|
||||
|
||||
var taglistwrap = editorwrap.append('div')
|
||||
.attr('class','inspector-inner col12 fillL2').call(tagList);
|
||||
|
||||
@@ -11,7 +11,7 @@ iD.ui.Taglist = function() {
|
||||
collapsebutton = selection.append('a')
|
||||
.attr('href','#')
|
||||
.attr('class','hide-toggle')
|
||||
.text('Additional tags')
|
||||
.text(t('inspector.additional'))
|
||||
.on('click', function() {
|
||||
collapsebutton.classed('expanded', wrap.classed('hide'));
|
||||
wrap.call(iD.ui.Toggle(wrap.classed('hide')));
|
||||
@@ -43,7 +43,7 @@ iD.ui.Taglist = function() {
|
||||
function drawTags(tags) {
|
||||
var entity = list.datum();
|
||||
|
||||
collapsebutton.text('Additional tags (' + Object.keys(tags).length + ')');
|
||||
collapsebutton.text(t('inspector.additional') + ' (' + Object.keys(tags).length + ')');
|
||||
|
||||
tags = d3.entries(tags);
|
||||
|
||||
|
||||
@@ -172,7 +172,11 @@ locale.en = {
|
||||
new_tag: "New Tag",
|
||||
edit_tags: "Edit tags",
|
||||
okay: "Okay",
|
||||
view_on_osm: "View on OSM"
|
||||
view_on_osm: "View on OSM",
|
||||
name: "Name",
|
||||
editing: "Editing {type}",
|
||||
additional: "Additional tags",
|
||||
choose: "What are you adding?"
|
||||
},
|
||||
|
||||
layerswitcher: {
|
||||
|
||||
Reference in New Issue
Block a user