Changeset 3268 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-05-22T19:02:48+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r3083 r3268 18 18 import org.openstreetmap.josm.data.osm.Node; 19 19 import org.openstreetmap.josm.data.osm.OsmPrimitive; 20 import org.openstreetmap.josm.data.osm.OsmUtils; 20 21 import org.openstreetmap.josm.data.osm.Relation; 21 22 import org.openstreetmap.josm.data.osm.RelationMember; … … 48 49 49 50 /** the default list of tags which are used as naming tags in relations */ 50 static public final String[] DEFAULT_NAMING_TAGS_FOR_RELATIONS = {"name", "ref", "restriction", "public_transport", ":LocationCode", "note"}; 51 static public final String[] DEFAULT_NAMING_TAGS_FOR_RELATIONS = {"name", "ref", "restriction", "landuse", "natural", 52 "public_transport", ":LocationCode", "note"}; 51 53 52 54 /** the current list of tags used as naming tags in relations */ … … 166 168 if (name == null) { 167 169 name = (relation.get("public_transport") != null) ? tr("public transport") : ""; 170 } 171 if (name == null) { 172 String building = relation.get("building"); 173 if(OsmUtils.isTrue(building)) 174 name = tr("building"); 175 else if(building != null) 176 name = tr(building); // translate tag! 168 177 } 169 178 if (name == null) {
Note:
See TracChangeset
for help on using the changeset viewer.