mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Use localized placeholder for expected date filter format
This commit is contained in:
@@ -2312,6 +2312,8 @@ en:
|
||||
west: "W"
|
||||
coordinate: "{coordinate}{direction}"
|
||||
coordinate_pair: "{latitude}, {longitude}"
|
||||
# translate the letters but leave the format the same
|
||||
year_month_day: "YYYY-MM-DD"
|
||||
wikidata:
|
||||
identifier: "Identifier"
|
||||
label: "Label"
|
||||
|
||||
3
dist/locales/en.json
vendored
3
dist/locales/en.json
vendored
@@ -2858,7 +2858,8 @@
|
||||
"east": "E",
|
||||
"west": "W",
|
||||
"coordinate": "{coordinate}{direction}",
|
||||
"coordinate_pair": "{latitude}, {longitude}"
|
||||
"coordinate_pair": "{latitude}, {longitude}",
|
||||
"year_month_day": "YYYY-MM-DD"
|
||||
},
|
||||
"wikidata": {
|
||||
"identifier": "Identifier",
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
import { t } from '../../core/localizer';
|
||||
import { uiTooltip } from '../tooltip';
|
||||
import { uiSection } from '../section';
|
||||
import { utilGetSetValue } from '../../util';
|
||||
|
||||
export function uiSectionPhotoOverlays(context) {
|
||||
|
||||
@@ -214,9 +215,9 @@ export function uiSectionPhotoOverlays(context) {
|
||||
.append('input')
|
||||
.attr('type', 'date')
|
||||
.attr('class', 'list-item-input')
|
||||
.attr('placeholder', 'dd/mm/yyyy')
|
||||
.property('value', function(d) {
|
||||
return context.photos().dateFilterValue(d);
|
||||
.attr('placeholder', t('units.year_month_day'))
|
||||
.each(function(d) {
|
||||
utilGetSetValue(d3_select(this), context.photos().dateFilterValue(d) || '');
|
||||
})
|
||||
.on('change', function(d3_event, d) {
|
||||
var value = d3_select(this).property('value');
|
||||
|
||||
Reference in New Issue
Block a user