Changeset 8239 in josm for trunk/src/org
- Timestamp:
- 2015-04-19T23:11:40+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/NameMismatch.java
r7005 r8239 46 46 * 47 47 * @param p The primitive whose translation is missing 48 * @param name The name whose translation is missing 48 49 */ 49 private void missingTranslation(OsmPrimitive p) { 50 private void missingTranslation(OsmPrimitive p, String name) { 50 51 errors.add(new TestError(this, Severity.OTHER, 51 tr("A name:* translation is missing."), 52 NAME_TRANSLATION_MISSING, p)); 52 tr("Missing name:*={0}. Add tag with correct language key.", name), NAME_TRANSLATION_MISSING, p)); 53 53 } 54 54 … … 90 90 if (splitNames.length == 1) { 91 91 /* The name is not composed of multiple parts. Complain. */ 92 missingTranslation(p); 92 missingTranslation(p, splitNames[0]); 93 93 return; 94 94 } … … 97 97 for (String n : splitNames) { 98 98 if (!names.contains(n)) { 99 missingTranslation(p); 100 return; 99 missingTranslation(p, n); 101 100 } 102 101 }
Note:
See TracChangeset
for help on using the changeset viewer.