Changeset 16774 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-07-15T21:00:18+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r16434 r16774 156 156 if (keyMatcher.matches() && valueMatcher.matches()) { 157 157 final String lang = Utils.firstNotEmptyString("en", keyMatcher.group("lang"), valueMatcher.group("lang")); 158 linkConsumer.acceptLink(tr("View Wikipedia article"), "https://" + lang + ".wikipedia.org/wiki/" + valueMatcher.group("article")); 158 final String url = "https://" + lang + ".wikipedia.org/wiki/" + valueMatcher.group("article").replace(' ', '_'); 159 linkConsumer.acceptLink(tr("View Wikipedia article"), url); 159 160 } 160 161 if (key.matches("(.*:)?wikidata")) {
Note:
See TracChangeset
for help on using the changeset viewer.
