File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,19 @@ iD.presets.Field = function(id, field) {
1111 return t ( 'presets.fields.' + id + '.' + scope , options ) ;
1212 } ;
1313
14+ //disabling translation of field labels for now,
15+ //otherwise this ignores the label from the field definition
16+ var label = field . label ;
1417 field . label = function ( ) {
15- return field . t ( 'label' , { 'default' : id } ) ;
18+ //return field.t('label', {'default': id});
19+ return label ;
1620 } ;
1721
22+ //disabling translation of placeholder labels for now,
1823 var placeholder = field . placeholder ;
1924 field . placeholder = function ( ) {
20- return field . t ( 'placeholder' , { 'default' : placeholder } ) ;
25+ //return field.t('placeholder', {'default': placeholder});
26+ return placeholder ;
2127 } ;
2228
2329 return field ;
You can’t perform that action at this time.
0 commit comments