- Timestamp:
- 2016-03-04T19:37:40+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/AbstractValidator.java
r9855 r9921 18 18 19 19 /** 20 * Returns the name of this validator 21 * @return the name of this validator 22 */ 23 public abstract String getValidatorName(); 24 25 /** 20 26 * Replies the error message. 21 27 * @return the errorMessage -
trunk/src/org/openstreetmap/josm/data/validation/routines/EmailValidator.java
r9853 r9921 187 187 } 188 188 189 @Override 190 public String getValidatorName() { 191 return tr("Email validator"); 192 } 193 189 194 /** 190 195 * Returns true if the domain component of an email address is valid. -
trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
r9853 r9921 349 349 350 350 return true; 351 } 352 353 @Override 354 public String getValidatorName() { 355 return tr("URL validator"); 351 356 } 352 357 -
trunk/src/org/openstreetmap/josm/data/validation/tests/InternetTags.java
r9855 r9921 135 135 } 136 136 String msg = tr("''{0}'': {1}", k, errMsg); 137 error = new TestError(this, Severity.WARNING, msg, code, p); 137 // todo obtain English message for ignore functionality 138 error = new TestError(this, Severity.WARNING, validator.getValidatorName(), msg, msg, code, p); 138 139 } 139 140 return error;
Note:
See TracChangeset
for help on using the changeset viewer.