- } else {
- // Pull in 118n names for node/way
- var featureNameHistoryTypeTranslations = new Array();
- featureNameHistoryTypeTranslations['node'] = "#{I18n.t('browse.start_rjs.object_list.history.type.node')}"
- featureNameHistoryTypeTranslations['way'] = "#{I18n.t('browse.start_rjs.object_list.history.type.way')}"
- return featureNameHistoryTypeTranslations[featureType(feature)] + " " + feature.osm_id;
+ } else if (featureType(feature) == "node") {
+ return i18n("#{I18n.t('browse.start_rjs.object_list.history.type.node')}", { id: feature.osm_id });
+ } else if (featureType(feature) == "way") {
+ return i18n("#{I18n.t('browse.start_rjs.object_list.history.type.way')}", { id: feature.osm_id });