From e24acfab77a1ca2eed86a38e6a73581a2e780f50 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 22 Apr 2016 22:32:41 -0400 Subject: [PATCH] Change Multiselect input placeholder text to translateable "Add" --- data/core.yaml | 1 + dist/locales/en.json | 1 + js/id/ui/preset/multiselect.js | 4 +--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index be85da56e..97c852e03 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -261,6 +261,7 @@ en: check: "yes": "Yes" "no": "No" + add: Add none: None node: Node way: Way diff --git a/dist/locales/en.json b/dist/locales/en.json index f12b6bb4e..cdca08f78 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -316,6 +316,7 @@ "yes": "Yes", "no": "No" }, + "add": "Add", "none": "None", "node": "Node", "way": "Way", diff --git a/js/id/ui/preset/multiselect.js b/js/id/ui/preset/multiselect.js index de1e21117..400e5efa2 100644 --- a/js/id/ui/preset/multiselect.js +++ b/js/id/ui/preset/multiselect.js @@ -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);