Skip to content

Commit cb7b62e

Browse files
committed
disable translation of fields/placeholders so they are loaded directing from dynamic MapHubs presets
1 parent 996b30c commit cb7b62e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

js/id/presets/field.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)