Changeset 8239 in josm for trunk/src


Ignore:
Timestamp:
2015-04-19T23:11:40+02:00 (5 years ago)
Author:
simon04
Message:

fix #9242 - Validator: reword "A name:* translation is missing" test result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/NameMismatch.java

    r7005 r8239  
    4646     *
    4747     * @param p The primitive whose translation is missing
     48     * @param name The name whose translation is missing
    4849     */
    49     private void missingTranslation(OsmPrimitive p) {
     50    private void missingTranslation(OsmPrimitive p, String name) {
    5051        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));
    5353    }
    5454
     
    9090        if (splitNames.length == 1) {
    9191            /* The name is not composed of multiple parts. Complain. */
    92             missingTranslation(p);
     92            missingTranslation(p, splitNames[0]);
    9393            return;
    9494        }
     
    9797        for (String n : splitNames) {
    9898            if (!names.contains(n)) {
    99                 missingTranslation(p);
    100                 return;
     99                missingTranslation(p, n);
    101100            }
    102101        }
Note: See TracChangeset for help on using the changeset viewer.