Change Multiselect input placeholder text to translateable "Add"

This commit is contained in:
Bryan Housel
2016-04-22 22:32:41 -04:00
parent 1b73ce9339
commit e24acfab77
3 changed files with 3 additions and 3 deletions

View File

@@ -261,6 +261,7 @@ en:
check:
"yes": "Yes"
"no": "No"
add: Add
none: None
node: Node
way: Way

View File

@@ -316,6 +316,7 @@
"yes": "Yes",
"no": "No"
},
"add": "Add",
"none": "None",
"node": "Node",
"way": "Way",

View File

@@ -106,11 +106,9 @@ iD.ui.preset.multiselect = function(field, context) {
function updateStrings(tagsData) {
comboboxData = objectDifference(strings, tagsData);
combobox.data(comboboxData.map(comboValues));
input.attr('placeholder', field.placeholder() ||
( 'Type here'));
input.attr('placeholder', (field.placeholder() || t('inspector.add')) + '…');
}
function update(data) {
var chips = multiselectContainer.selectAll('.chips').data(data);