#9242 closed defect (fixed)
confusing "A name:* translation is missing"
Reported by: | mkoniecz | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 15.04 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
http://www.openstreetmap.org/browse/relation/3071561 is reported by Validator with this message, in category "Other".
I have no idea what is reported here (there are some not empty name:*, what is wrong here?), it would be benefit from better name.
Attachments (0)
Change History (9)
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Replying to skyper:
Replying to Bulwersator:
http://www.openstreetmap.org/browse/relation/3071561 is reported by Validator with this message, in category "Other".
I have no idea what is reported here (there are some not empty name:*, what is wrong here?), it would be benefit from better name.
name:en is missing and name:* is present.
Is it always about name:en? In this case "A name:en translation is missing" would be preferable.
comment:3 by , 11 years ago
It's a bit more complicated:
/** * Check for missing name:* translations. * <p> * This test finds multilingual objects whose 'name' attribute is not * equal to any 'name:*' attribute and not a composition of some * 'name:*' attributes separated by ' - '. * <p> * For example, a node with name=Europe, name:de=Europa should have * name:en=Europe to avoid triggering this test. An object with * name='Suomi - Finland' should have at least name:fi=Suomi and * name:sv=Finland to avoid a warning (name:et=Soome would not * matter). Also, complain if an object has some name:* attribute but * no name. * * @author Skela */
See source:/trunk/src/org/openstreetmap/josm/data/validation/tests/NameMismatch.java
comment:4 by , 11 years ago
So it something like "value of field name is not used in any of name:* translations".
And sometimes "there are name:* values, but there is no value for field name"
comment:5 by , 10 years ago
+1 on the confusion. Even after reading this ticket, I'm murky on what this message wants of me.
comment:6 by , 10 years ago
Milestone: | → 15.04 |
---|
comment:8 by , 10 years ago
OK, but this test is only triggered if there is any name:* existing? And only then it checks if any name:* matches name ?
Replying to Bulwersator:
name:en is missing and name:* is present.