Changeset 6625 in josm
- Timestamp:
- 2014-01-04T15:41:15+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
r6605 r6625 98 98 final Matcher m = Pattern.compile("(" + part + ")(;\\s*" + part + ")*").matcher(value); 99 99 if (!m.matches()) { 100 throw new ConditionalParsingException(tr("Does not match pattern '' {0}''", tr("restriction value") + " @ " + tr("condition")));100 throw new ConditionalParsingException(tr("Does not match pattern ''restriction value @ condition''")); 101 101 } else { 102 102 int i = 2; … … 117 117 // validate restriction value 118 118 if (isTransportationMode(key.split(":")[0]) && !isRestrictionValue(conditional.restrictionValue)) { 119 return tr("{0} is not a valid {1}", conditional.restrictionValue, tr("restriction value"));119 return tr("{0} is not a valid restriction value", conditional.restrictionValue); 120 120 } 121 121 // validate opening hour if the value contains an hour (heuristic)
Note:
See TracChangeset
for help on using the changeset viewer.