Changeset 15706 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2020-01-13T23:51:06+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r15702 r15706 122 122 public static void getLinksForTag(String key, String value, LinkConsumer linkConsumer) { 123 123 124 if (value == null || value.isEmpty()) { 125 return; 126 } 127 124 128 // Search 125 129 if (key.matches("^(.+[:_])?name([:_].+)?$")) { … … 151 155 if (key.matches("(.*:)?wikidata")) { 152 156 OsmUtils.splitMultipleValues(value) 153 .forEach(q -> linkConsumer.acceptLink(tr("View Wikidata item {0}", q), "https://www.wikidata.org/wiki/" + q));157 .forEach(q -> linkConsumer.acceptLink(tr("View Wikidata item"), "https://www.wikidata.org/wiki/" + q)); 154 158 } 155 159 if (key.matches("(.*:)?species")) {
Note:
See TracChangeset
for help on using the changeset viewer.