Changeset 11466 in josm
- Timestamp:
- 2017-01-16T17:00:33+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r11129 r11466 29 29 import org.openstreetmap.josm.gui.tagging.presets.items.Roles; 30 30 import org.openstreetmap.josm.gui.tagging.presets.items.Roles.Role; 31 import org.openstreetmap.josm.tools.I18n;32 31 import org.openstreetmap.josm.tools.Utils; 33 32 … … 76 75 } 77 76 78 private static Collection<TaggingPreset> relationpresets = new LinkedList<>();77 private static final Collection<TaggingPreset> relationpresets = new LinkedList<>(); 79 78 80 79 /** … … 238 237 possibleMatchError = TestError.builder(this, Severity.WARNING, WRONG_TYPE) 239 238 .message(ROLE_VERIF_PROBLEM_MSG, 240 marktr("Role member does not match expression {0}in template {1}"),239 marktr("Role member does not match expression ''{0}'' in template {1}"), 241 240 r.memberExpression, rolePreset.name) 242 241 .primitives(member.getMember().isUsable() ? member.getMember() : n) … … 272 271 errors.add(TestError.builder(this, Severity.WARNING, WRONG_TYPE) 273 272 .message(ROLE_VERIF_PROBLEM_MSG, 274 marktr("Role member type {0} does not match accepted list of {1}in template {2}"),273 marktr("Role member type ''{0}'' does not match accepted list of ''{1}'' in template {2}"), 275 274 member.getType(), typesStr, rolePreset.name) 276 275 .primitives(member.getMember().isUsable() ? member.getMember() : n) … … 308 307 for (String key : map.keySet()) { 309 308 if (!allroles.containsKey(key)) { 310 String templates = allroles.keySet().stream(). map(I18n::tr).collect(Collectors.joining("/"));309 String templates = allroles.keySet().stream().collect(Collectors.joining("/")); 311 310 312 311 if (!key.isEmpty()) { 313 312 314 313 errors.add(TestError.builder(this, Severity.WARNING, ROLE_UNKNOWN) 315 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role {0} unknown in templates {1}"), key, templates)314 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role ''{0}'' unknown in templates ''{1}''"), key, templates) 316 315 .primitives(n) 317 316 .build()); 318 317 } else { 319 318 errors.add(TestError.builder(this, Severity.WARNING, ROLE_EMPTY) 320 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Empty role type found when expecting one of {0}"), templates)319 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Empty role type found when expecting one of ''{0}''"), templates) 321 320 .primitives(n) 322 321 .build()); … … 332 331 if (count == 0) { 333 332 errors.add(TestError.builder(this, Severity.WARNING, ROLE_MISSING) 334 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role {0}missing"), keyname)333 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Role ''{0}'' missing"), keyname) 335 334 .primitives(n) 336 335 .build()); 337 336 } else if (vc > count) { 338 337 errors.add(TestError.builder(this, Severity.WARNING, LOW_COUNT) 339 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Number of {0}roles too low ({1})"), keyname, count)338 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Number of ''{0}'' roles too low ({1})"), keyname, count) 340 339 .primitives(n) 341 340 .build()); 342 341 } else { 343 342 errors.add(TestError.builder(this, Severity.WARNING, HIGH_COUNT) 344 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Number of {0}roles too high ({1})"), keyname, count)343 .message(ROLE_VERIF_PROBLEM_MSG, marktr("Number of ''{0}'' roles too high ({1})"), keyname, count) 345 344 .primitives(n) 346 345 .build()); -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r11452 r11466 325 325 * Changes the projection settings used for this map view. 326 326 * <p> 327 * Made public temporar ely, will be made private later.327 * Made public temporarily, will be made private later. 328 328 */ 329 329 public void fixProjection() {
Note:
See TracChangeset
for help on using the changeset viewer.