Add translatable value category to suggestion preset names

This commit is contained in:
Aaron Lidman
2013-11-21 13:36:13 -08:00
parent 471a710f39
commit d034370cdb

View File

@@ -36,6 +36,11 @@ iD.presets.Preset = function(id, preset, fields) {
var name = preset.name;
preset.name = function() {
if (preset.suggestion) {
id = id.split('/');
id = id[0] + '/' + id[1];
return name + ' - ' + t('presets.presets.' + id + '.name');
}
return preset.t('name', {'default': name});
};